|
|||||||||||
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 StorageController
RuntimeStorageException
- Always.
StorageException
public void stop() throws StorageException
stop
in interface StorageController
RuntimeStorageException
- Always.
StorageException
public java.util.Properties getConfigurationProperties()
StorageController
getConfigurationProperties
in interface StorageController
StorageController.getConfigurationProperties()
public Status getStatus()
StorageController
getStatus
in interface StorageController
StorageController.getStatus()
public boolean isRemote()
StorageController
isRemote
in interface StorageController
true
if controller is running on another JVM;
false
otherwise.StorageController.isRemote()
public long createId() throws StorageException
StorageController
createId
in interface StorageController
StorageException
StorageController.createId()
public ControllerInfo getControllerInfo()
StorageController
getControllerInfo
in interface StorageController
StorageController.getControllerInfo()
public PID getCurrentPID() throws StorageException
StorageController
getCurrentPID
in interface StorageController
StorageException
StorageController.getCurrentPID()
public int getCurrentCycle()
StorageController
getCurrentCycle
in interface StorageController
StorageController.getCurrentCycle()
public void registerManager(StorageManager manager)
StorageController
registerManager
in interface StorageController
manager
- Manager to be registered.StorageController.registerManager(StorageManager)
public void unregisterManager(StorageManager manager)
StorageController
unregisterManager
in interface StorageController
manager
- Manager to be unregistered.StorageController.unregisterManager(StorageManager)
public void addStatusListener(StatusListener listener)
addStatusListener
in interface StorageController
listener
- Listener to receive status events.
RuntimeStorageException
- Always.public void removeStatusListener(StatusListener listener)
removeStatusListener
in interface StorageController
listener
- Listener to stop receiving status events.
RuntimeStorageException
- Always.public void addStorageListener(StorageListener listener)
addStorageListener
in interface StorageController
listener
- Listener to receive storage events.
RuntimeStorageException
- Always.public void removeStorageListener(StorageListener listener)
removeStorageListener
in interface StorageController
listener
- 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 LockManager
oid
- 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.
TransactionTimeoutException
LockManager.lock(TID,OID,boolean,long)
public void release(TID txid, OID oid) throws StorageException
LockManager
release
in interface LockManager
oid
- The OID of the object to be released.
StorageException
LockManager.release(TID,OID)
public LockInfo getLockInfo()
LockManager
getLockInfo
in interface LockManager
LockManager.getLockInfo()
public void addSchemaListener(SchemaListener listener)
addSchemaListener
in interface SchemaManager
listener
- Listener to receive schema events.
RuntimeStorageException
- Always.public void removeSchemaListener(SchemaListener listener)
removeSchemaListener
in interface SchemaManager
listener
- Listener to stop receiving schema events.
RuntimeStorageException
- Always.public ClassDescriptor getClassDescriptor(java.lang.Class aClass) throws StorageException
SchemaManager
getClassDescriptor
in interface SchemaManager
aClass
- The class to which the descriptot should be returned.
StorageException
SchemaManager.getClassDescriptor(Class)
public ClassDescriptor createClassDescriptor(java.lang.Class aClass) throws StorageException
SchemaManager
createClassDescriptor
in interface SchemaManager
aClass
- The class to which the descriptot should be created.
StorageException
SchemaManager.createClassDescriptor(Class)
public void objectStored(StorageEvent event)
StorageListener
objectStored
in interface StorageListener
StorageListener.objectStored(StorageEvent)
public void objectDeleted(StorageEvent event)
StorageListener
objectDeleted
in interface StorageListener
StorageListener.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 |