|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Universe server interface. The locking mechinism is optional.
EPG - New - 18Apr03
Method Summary | |
void |
close()
This will always be called when the universe is destroyed |
void |
discard(java.lang.String name)
Discard an object. |
boolean |
exists(java.lang.String name)
Check to see if an object exists |
void |
flush(java.lang.String name)
Flush an object. |
void |
genesis(UniverseProperties props)
This will always be called when the universe server is created. |
java.lang.Object |
get(java.lang.String name)
Load an object from the universe. |
javax.activation.DataSource |
getDataSource(java.lang.String name)
Get a DataSource that can interact with this universe object |
javax.activation.FileDataSource |
getFileDataSource(java.lang.String name)
Get a FileDataSource that can interact with this universe object. |
java.io.InputStream |
getStream(java.lang.String name)
Get an InputStream that can read from a universe object |
java.lang.Object |
getUnique(java.lang.String name)
Load an object from the universe. |
boolean |
isLocked(java.lang.String name)
Check to see if the object is locked |
void |
lock(java.lang.String name)
Lock an object. |
boolean |
lockIfNotLocked(java.lang.String name)
Lock an object. |
void |
put(java.lang.String name,
java.lang.Object o)
Save an object into the universe. |
java.io.OutputStream |
putStream(java.lang.String name)
Get an output stream to a universe object. |
void |
release(java.lang.String name)
Release a lock on an object. |
void |
remove(java.lang.String name)
Remove an object from the universe |
java.lang.String |
reserveUnique(java.lang.String base)
Reserve unique object universe. |
long |
size(java.lang.String name)
Report the size object from the universe |
Method Detail |
public void genesis(UniverseProperties props) throws UniverseException
props
- a universe property set
UniverseException
UniverseProperties
public void close() throws UniverseException
UniverseException
public java.lang.Object get(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public java.lang.Object getUnique(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public java.lang.String reserveUnique(java.lang.String base) throws UniverseException
base
- base path for the object (including root object name)
UniverseException
public java.io.InputStream getStream(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public javax.activation.DataSource getDataSource(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public javax.activation.FileDataSource getFileDataSource(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public void put(java.lang.String name, java.lang.Object o) throws UniverseException
name
- universe nameo
- the object
UniverseException
public java.io.OutputStream putStream(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public void lock(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public boolean lockIfNotLocked(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public boolean isLocked(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public void release(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public boolean exists(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public void flush(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public void discard(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public void remove(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public long size(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |