|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.jso.remote.StorageControllerProxy
Proxy for remote storage controllers.
| Field Summary | |
RemoteStorageController |
controller
|
| Constructor Summary | |
StorageControllerProxy()
Constructs the proxy. |
|
StorageControllerProxy(RemoteStorageController aController)
Constructs the proxy. |
|
| Method Summary | |
void |
addSchemaListener(SchemaListener listener)
Not supported. |
void |
addStatusListener(StatusListener listener)
Not supported. |
void |
addStorageListener(StorageListener listener)
Not supported. |
void |
connect(java.lang.String registryUrl,
java.lang.String user,
java.lang.String password)
Connects the proxy to the remote storage controller through a storage controller home. |
ClassDescriptor |
createClassDescriptor(java.lang.Class aClass)
Creates a class descriptor for a storable class. |
long |
createId()
Creates an unique identification within a database. |
boolean |
equals(java.lang.Object o)
Indicates whether some other proxy is "equal to" this one. |
ClassDescriptor |
getClassDescriptor(java.lang.Class aClass)
Returns the descriptor for a storable class. |
java.util.Properties |
getConfigurationProperties()
Returns configuration properties. |
ControllerInfo |
getControllerInfo()
Gets storage control information. |
int |
getCurrentCycle()
Gets current garbage collection cycle. |
PID |
getCurrentPID()
Gets current storage partition's identification. |
LockInfo |
getLockInfo()
Gets transaction processing information. |
Status |
getStatus()
Gets controller's status. |
int |
hashCode()
Returns a hash code value for the proxy. |
boolean |
isRemote()
Indicates if controller is running on another JVM. |
void |
lock(TID txid,
OID oid,
boolean exclusive,
long timeout)
Holds a lock for an object. |
void |
objectDeleted(StorageEvent event)
Called when an object is deleted. |
void |
objectStored(StorageEvent event)
Called when an object is stored. |
void |
registerManager(StorageManager manager)
Register a storage manager to receive events. |
void |
release(TID txid,
OID oid)
Releases the lock for an object |
void |
removeSchemaListener(SchemaListener listener)
Not supported. |
void |
removeStatusListener(StatusListener listener)
Not supported. |
void |
removeStorageListener(StorageListener listener)
Not supported. |
void |
start()
Not supported. |
void |
stop()
Not supported. |
void |
unregisterManager(StorageManager manager)
Unregister a storage manager to receive events. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public RemoteStorageController controller
| Constructor Detail |
public StorageControllerProxy()
public StorageControllerProxy(RemoteStorageController aController)
aController - Reference to remote storage controller.| Method Detail |
public void connect(java.lang.String registryUrl,
java.lang.String user,
java.lang.String password)
throws StorageException
registryUrl - JNDI URL for storage controller home.user - User name for authentication.password - User's password.
StorageException
public void start()
throws StorageException
start in interface StorageControllerRuntimeStorageException - Always.
StorageException
public void stop()
throws StorageException
stop in interface StorageControllerRuntimeStorageException - Always.
StorageExceptionpublic java.util.Properties getConfigurationProperties()
StorageController
getConfigurationProperties in interface StorageControllerStorageController.getConfigurationProperties()public Status getStatus()
StorageController
getStatus in interface StorageControllerStorageController.getStatus()public boolean isRemote()
StorageController
isRemote in interface StorageControllertrue if controller is running on another JVM;
false otherwise.StorageController.isRemote()
public long createId()
throws StorageException
StorageController
createId in interface StorageControllerStorageExceptionStorageController.createId()public ControllerInfo getControllerInfo()
StorageController
getControllerInfo in interface StorageControllerStorageController.getControllerInfo()
public PID getCurrentPID()
throws StorageException
StorageController
getCurrentPID in interface StorageControllerStorageExceptionStorageController.getCurrentPID()public int getCurrentCycle()
StorageController
getCurrentCycle in interface StorageControllerStorageController.getCurrentCycle()public void registerManager(StorageManager manager)
StorageController
registerManager in interface StorageControllermanager - Manager to be registered.StorageController.registerManager(StorageManager)public void unregisterManager(StorageManager manager)
StorageController
unregisterManager in interface StorageControllermanager - Manager to be unregistered.StorageController.unregisterManager(StorageManager)public void addStatusListener(StatusListener listener)
addStatusListener in interface StorageControllerlistener - Listener to receive status events.
RuntimeStorageException - Always.public void removeStatusListener(StatusListener listener)
removeStatusListener in interface StorageControllerlistener - Listener to stop receiving status events.
RuntimeStorageException - Always.public void addStorageListener(StorageListener listener)
addStorageListener in interface StorageControllerlistener - Listener to receive storage events.
RuntimeStorageException - Always.public void removeStorageListener(StorageListener listener)
removeStorageListener in interface StorageControllerlistener - Listener to stop receiving storage events.
RuntimeStorageException - Always.
public void lock(TID txid,
OID oid,
boolean exclusive,
long timeout)
throws TransactionTimeoutException
LockManager
lock in interface LockManageroid - The OID of the object to be locked.exclusive - Informs if the lock should be exclusive.timeout - Number of milliseconds for timeout. Values lesser than 1
millisecond mean no timeout should be used.
TransactionTimeoutExceptionLockManager.lock(TID,OID,boolean,long)
public void release(TID txid,
OID oid)
throws StorageException
LockManager
release in interface LockManageroid - The OID of the object to be released.
StorageExceptionLockManager.release(TID,OID)public LockInfo getLockInfo()
LockManager
getLockInfo in interface LockManagerLockManager.getLockInfo()public void addSchemaListener(SchemaListener listener)
addSchemaListener in interface SchemaManagerlistener - Listener to receive schema events.
RuntimeStorageException - Always.public void removeSchemaListener(SchemaListener listener)
removeSchemaListener in interface SchemaManagerlistener - Listener to stop receiving schema events.
RuntimeStorageException - Always.
public ClassDescriptor getClassDescriptor(java.lang.Class aClass)
throws StorageException
SchemaManager
getClassDescriptor in interface SchemaManageraClass - The class to which the descriptot should be returned.
StorageExceptionSchemaManager.getClassDescriptor(Class)
public ClassDescriptor createClassDescriptor(java.lang.Class aClass)
throws StorageException
SchemaManager
createClassDescriptor in interface SchemaManageraClass - The class to which the descriptot should be created.
StorageExceptionSchemaManager.createClassDescriptor(Class)public void objectStored(StorageEvent event)
StorageListener
objectStored in interface StorageListenerStorageListener.objectStored(StorageEvent)public void objectDeleted(StorageEvent event)
StorageListener
objectDeleted in interface StorageListenerStorageListener.objectDeleted(StorageEvent)public boolean equals(java.lang.Object o)
o - The object with which to compare.
true if the proxy is the same as the proxy argument;
false otherwise.public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||