|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.callback.CallbackStoreWrapper
public class CallbackStoreWrapper
A CallbackStoreWrapper is used to wrap an MBean proxy that implements org.jboss.remoting.SerializableStore. If necessary, each call will go through an AccessController.doPrivileged() call.
Copyright May 5, 2008
Constructor Summary | |
---|---|
CallbackStoreWrapper(SerializableStore proxy)
|
Method Summary | |
---|---|
void |
add(java.io.Serializable object)
Persists the serializable object passed to the directory specified. |
void |
create()
This is a no op method, but needed in order to be used as a service within JBoss AS. |
void |
destroy()
This is a no op method, but needed in order to be used as a service within JBoss AS. |
java.lang.Object |
getNext()
Will look through the files in the store directory for the oldest object serialized to disk, load it, delete the file, and return the deserialized object. |
boolean |
getPurgeOnShutdown()
Returns if store will clean up persisted files when shutdown (destroy()). |
void |
purgeFiles()
|
void |
setConfig(java.util.Map config)
Will use the values in the map to set configuration. |
void |
setPurgeOnShutdown(boolean purgeOnShutdown)
Sets if store should clean up persisted files when shutdown (destroy()). |
int |
size()
Getst the number of objects stored and available. |
void |
start()
Will get the file path value (if not already set will just use the default setting) and will create the directory specified by the file path if it does not already exist. |
void |
stop()
This will allow for change of file suffix and file path and then may start again using these new values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallbackStoreWrapper(SerializableStore proxy)
Method Detail |
---|
public void add(java.io.Serializable object) throws java.io.IOException
SerializableStore
add
in interface SerializableStore
java.io.IOException
public void create() throws java.lang.Exception
SerializableStore
create
in interface SerializableStore
java.lang.Exception
public void destroy()
SerializableStore
destroy
in interface SerializableStore
public java.lang.Object getNext() throws java.io.IOException
SerializableStore
getNext
in interface SerializableStore
java.io.IOException
public boolean getPurgeOnShutdown()
SerializableStore
getPurgeOnShutdown
in interface SerializableStore
public void purgeFiles()
purgeFiles
in interface SerializableStore
public void setConfig(java.util.Map config)
SerializableStore
setConfig
in interface SerializableStore
public void setPurgeOnShutdown(boolean purgeOnShutdown)
SerializableStore
setPurgeOnShutdown
in interface SerializableStore
public int size()
SerializableStore
size
in interface SerializableStore
public void start() throws java.lang.Exception
SerializableStore
start
in interface SerializableStore
java.lang.Exception
public void stop()
SerializableStore
stop
in interface SerializableStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |