ozone core API

org.ozoneDB.core.storage.gammaStore
Class FileStreamStorageFactory

java.lang.Object
  extended byorg.ozoneDB.core.storage.gammaStore.FileStorageFactory
      extended byorg.ozoneDB.core.storage.gammaStore.FileStreamStorageFactory
All Implemented Interfaces:
PropertyConfigurable, StorageFactory

public class FileStreamStorageFactory
extends FileStorageFactory

Version:
$Id$
Author:
Leo Mekenkamp (mind the anti sp@m)

Field Summary
 
Fields inherited from class org.ozoneDB.core.storage.gammaStore.FileStorageFactory
DIRECTORY, SUBDIRECTORYCOUNT, SUBDIRECTORYDEPTH
 
Constructor Summary
FileStreamStorageFactory(java.util.Properties properties, java.lang.String prefix)
           
 
Method Summary
 Storage createStorage(java.lang.String name)
          Creates an input stream that is uniquely identified by the specified name.
 
Methods inherited from class org.ozoneDB.core.storage.gammaStore.FileStorageFactory
delete, deleteAll, ensureParentsExist, getDirectory, getPrefix, getPropertyInfos, nameToFile, nameToFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStreamStorageFactory

public FileStreamStorageFactory(java.util.Properties properties,
                                java.lang.String prefix)
Method Detail

createStorage

public Storage createStorage(java.lang.String name)
                      throws java.io.IOException
Description copied from interface: StorageFactory

Creates an input stream that is uniquely identified by the specified name. Implementing classes typically have a separate namespace (subdirectory in case of files) for each instance. The name parameter uniquely and inambiguously specifies the exact location to read/write data: this method returns a Storage to the same location if and only if the name is equal.

Note: because it is impossible to know what characters are supported by the specific implementation, one is advised to be conservative in the use of the name parameter; keep it short, use either lowercase or uppercase characters, do not use '+', '-', '&', '>', etc.

Parameters:
name - name of the Storage instance
Throws:
java.io.IOException

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.