|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.core.storage.gammaStore.ObjectStreamClasses
Takes care of storing ObjectStreamClass instances into another medium, while providing for a replacement in the form of an int.
Field Summary | |
private java.io.File |
directory
|
static PropertyInfo |
DIRECTORY
|
private java.util.Map |
handleToOsc
|
private java.util.Map |
keyToHandle
|
private java.lang.String |
prefix
|
Constructor Summary | |
ObjectStreamClasses(java.util.Properties properties,
java.lang.String prefix,
boolean initialize)
|
Method Summary | |
int |
getHandle(java.io.ObjectStreamClass objectStreamClass)
Gives the handle for a particular ObjectStreamClass. |
java.io.ObjectStreamClass |
getObjectStreamClass(int handle)
Retrieves the ObjectStreamClass given its handle. |
java.lang.String |
getPrefix()
|
java.util.Collection |
getPropertyInfos()
Returns a Collection with all the properties this instance
supports. |
static byte[] |
toImage(java.io.ObjectStreamClass objectStreamClass)
Converts this instance to a byte[] that can be directly saved to disk or used to find the handle of an ObjectStreamClass. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final PropertyInfo DIRECTORY
private java.util.Map handleToOsc
private java.util.Map keyToHandle
private java.lang.String prefix
private java.io.File directory
Constructor Detail |
public ObjectStreamClasses(java.util.Properties properties, java.lang.String prefix, boolean initialize) throws java.io.IOException, java.lang.ClassNotFoundException
ConfigurationException
- if error in properties
java.io.IOException
- if directory could not be created (initialize == true)
java.io.IOException
- if file in directory could not be read (initialize == false)
java.lang.ClassNotFoundException
- invalid file in directory (initialize == false)
java.lang.NumberFormatException
- invalid file in directory (initialize == false)Method Detail |
public java.lang.String getPrefix()
getPrefix
in interface PropertyConfigurable
public static byte[] toImage(java.io.ObjectStreamClass objectStreamClass)
public java.io.ObjectStreamClass getObjectStreamClass(int handle)
public int getHandle(java.io.ObjectStreamClass objectStreamClass)
ObjectStreamClass
is unknown a new handle is allocated and returned. When a new handle is
returned the same handle will always be returned for that same instance.
public java.util.Collection getPropertyInfos()
PropertyConfigurable
Returns a Collection
with all the properties this instance
supports.
getPropertyInfos
in interface PropertyConfigurable
PropertyInfo
elements
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |