|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.edg.info.InstanceBase
InstanceBase is an object that supports the corresponding APIBase. It holds state, and also offers methods which correspond to APIBase methods.
Field Summary | |
static long |
DEFAULT_TERMINATION_INTERVAL_MS
Default termination interval in millis. |
static long |
s_maxTerminationInterval
The largest allowable termination interval. |
static long |
s_minTerminationInterval
The smallest allowable termination interval. |
Method Summary | |
boolean |
canDestroy()
Determines if this instance can be destroyed (i.e. |
void |
disconnect()
Closes the connection between this instance and any API object. |
long |
getCreationTimeMillis()
|
long |
getLastRegistryUpdateTimeMillis()
|
long |
getRegistryUpdateIntervalMillis()
|
long |
getResourceId()
|
void |
getStatus()
returns status information for this instance |
long |
getTerminationInterval()
Returns the terminationInterval in milliseconds. |
long |
getTerminationIntervalMillis()
|
long |
getUserLastContactTimeMillis()
|
boolean |
isDestroyed()
Returns the value of the destroyed flag. |
boolean |
isTupleCheckingEnabled()
Returns the tupleCheckingEnabled. |
void |
notifyRegistrationThread()
|
void |
reconnect()
|
void |
setCloseCalled(boolean closeCalled)
Sets the value of the closeCalled flag. |
void |
setDestroyed(boolean destroyed)
Sets the value of the destroyed flag. |
void |
setRegistrationThread(RegistrationThread registrationThread)
|
void |
setTerminationInterval(long terminationIntervalMS)
Sets the period of inactivity before the InstanceBase Object is unregistered. |
void |
showSignOfLife()
Updates the last contact time for this Instance Object. |
void |
updateLastContactTime()
Sets the last contact time to the current time. |
boolean |
updateRegistry(long currentTime,
boolean isRegistryDown)
Sends an update message to the Registry. |
boolean |
wasCloseCalled()
Gets the value of the closeCalled flag. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long DEFAULT_TERMINATION_INTERVAL_MS
public static long s_minTerminationInterval
public static long s_maxTerminationInterval
Method Detail |
public boolean wasCloseCalled()
closeCalled
flag.
true
if close() has been called.public void setCloseCalled(boolean closeCalled)
closeCalled
flag.
closeCalled
- true
if close() has been called.public void setRegistrationThread(RegistrationThread registrationThread)
public boolean updateRegistry(long currentTime, boolean isRegistryDown) throws org.glite.rgma.system.RGMAException, org.glite.rgma.system.RemoteException
currentTime
- Current time in millis.isRegistryDown
- Flag indicating if the Registry was down on the last call.
org.glite.rgma.system.RGMAException
org.glite.rgma.system.RemoteException
public boolean isDestroyed()
destroyed
flag.
true
if object has been closed;
false
otherwise.public void setDestroyed(boolean destroyed)
destroyed
flag.
destroyed
- true
if object has been closed;
false
otherwise.public void updateLastContactTime()
public boolean canDestroy()
true
if this instance can be destroyedpublic void getStatus() throws org.glite.rgma.system.RGMAException
ResultSet
with the column "connectionId"
containing an int
.
org.glite.rgma.system.RGMAException
- if the instance has been closed.public void setTerminationInterval(long terminationIntervalMS) throws org.glite.rgma.system.RGMAUserException, org.glite.rgma.system.RGMAInternalException
terminationIntervalMS
- The termination interval to be set (in ms).
org.glite.rgma.system.RGMAException
- if the termination interval exceeds the
MAX_TERM_INTERVAL.
org.glite.rgma.system.RGMAUserException
org.glite.rgma.system.RGMAInternalException
public long getTerminationInterval() throws org.glite.rgma.system.RGMAException
org.glite.rgma.system.RGMAException
- DOCUMENT ME!public boolean isTupleCheckingEnabled() throws org.glite.rgma.system.RGMAException
org.glite.rgma.system.RGMAException
- DOCUMENT ME!public void disconnect() throws org.glite.rgma.system.RGMAException
org.glite.rgma.system.RGMAException
- if this instance is closed or already
disconnected.public void reconnect() throws org.glite.rgma.system.RGMAException
org.glite.rgma.system.RGMAException
public void showSignOfLife() throws org.glite.rgma.system.RGMAException
org.glite.rgma.system.RGMAException
- DOCUMENT ME!public void notifyRegistrationThread()
public long getUserLastContactTimeMillis()
public long getLastRegistryUpdateTimeMillis()
public long getRegistryUpdateIntervalMillis()
public long getTerminationIntervalMillis()
public long getResourceId()
public long getCreationTimeMillis()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |