Class ObjectRepository
java.lang.Object
ecmwf.common.technical.ObjectRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear.Object[]elements()Elements.Gets the.abstract FilegetDir()Gets the dir.getElement(File file) Gets the element.abstract StringgetExt()Gets the ext.static StringGets the new key.String[]keys()Keys.longlastModified(String key) Last modified.voidPuts the.booleanRemoves the.
-
Constructor Details
-
ObjectRepository
public ObjectRepository()Instantiates a new object repository.
-
-
Method Details
-
getNewKey
-
clear
public void clear()Clear. -
elements
-
get
Gets the.- Parameters:
key- the key- Returns:
- the object
- Throws:
IOException- Signals that an I/O exception has occurred.ClassNotFoundException- the class not found exception
-
getDir
-
getElement
Gets the element.- Parameters:
file- the file- Returns:
- the element
- Throws:
IOException- Signals that an I/O exception has occurred.ClassNotFoundException- the class not found exception
-
getExt
-
keys
-
lastModified
Last modified.- Parameters:
key- the key- Returns:
- the long
- Throws:
IOException- Signals that an I/O exception has occurred.
-
put
Puts the.- Parameters:
key- the keyobj- the obj- Throws:
IOException- Signals that an I/O exception has occurred.
-
remove
Removes the.- Parameters:
key- the key- Returns:
- true, if successful
-