|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.data.store.permanent.LocalFileStorage
| Field Summary | |
static java.lang.String |
LOCAL_FILE_STORAGE_ROOT_KEY
|
| Fields inherited from interface org.nees.data.store.permanent.PermanentStorageInterface |
__CLASS_KEY, __IO_KEY |
| Constructor Summary | |
LocalFileStorage()
Creates a new instance of LocalFileStorage |
|
| Method Summary | |
void |
append(java.net.URI tailURI,
java.net.URI headURI)
Binary concatenate of the tail file to the head. |
void |
copy(java.net.URI sourceURI,
java.net.URI targetURI,
boolean overwriteOK)
Copies the existing source to the target, overwriting the target if specified. |
java.net.URI |
createNewEntryURI(LogicalName logicalName,
int version)
This just creates the name, but does not validate it, beyond basic correctness, so whether this exists or not must be checked elsewhere. |
boolean |
delete(java.net.URI targetURI)
Remove an entry from this store. |
boolean |
exists(java.net.URI targetURI)
This returns a true if the specified target exists in this store. |
java.io.File |
getRepoRootDirectory()
|
void |
initialize(java.util.Properties p,
InitializationObjectInterface ioi)
|
void |
isValidLogicalname(LogicalName logicalName)
TODO This needs to have something more comprehensive in the way of checking. |
java.io.File |
logicalNameToFile(LogicalName ln,
java.lang.String suffix)
This will take a logical name and change it into either a path representation on the local file system |
long |
size(java.net.URI targetURI)
The size of the entry in bytes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String LOCAL_FILE_STORAGE_ROOT_KEY
| Constructor Detail |
public LocalFileStorage()
| Method Detail |
public void copy(java.net.URI sourceURI,
java.net.URI targetURI,
boolean overwriteOK)
throws NFMSException
PermanentStorageInterfaceoverwriteOK flag is false then an exception is thrown. The append flag
supercedes the overwrite flag.
copy in interface PermanentStorageInterfaceNFMSException
public boolean delete(java.net.URI targetURI)
throws NFMSException
PermanentStorageInterface
delete in interface PermanentStorageInterfaceNFMSException
public boolean exists(java.net.URI targetURI)
throws NFMSException
PermanentStorageInterfacetrue if the specified target exists in this store.
exists in interface PermanentStorageInterfaceNFMSException
public java.net.URI createNewEntryURI(LogicalName logicalName,
int version)
throws NFMSException
createNewEntryURI in interface PermanentStorageInterfaceNFMSException
public void initialize(java.util.Properties p,
InitializationObjectInterface ioi)
throws java.lang.Exception
initialize in interface InstantiationContractInterfacejava.lang.Exception
public long size(java.net.URI targetURI)
throws NFMSException
PermanentStorageInterface
size in interface PermanentStorageInterfaceNFMSException
public void append(java.net.URI tailURI,
java.net.URI headURI)
throws NFMSException
PermanentStorageInterface
append in interface PermanentStorageInterfaceNFMSException
public java.io.File getRepoRootDirectory()
throws NFMSException
NFMSException
public void isValidLogicalname(LogicalName logicalName)
throws NFMSIllegalLogicalNameException
isValidLogicalname in interface PermanentStorageInterfaceNFMSIllegalLogicalNameException
public java.io.File logicalNameToFile(LogicalName ln,
java.lang.String suffix)
throws NFMSException
NFMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||