|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.edg.info.InstanceTracker
InstanceTracker is used to store and track InstanceBase objects.
Constructor Summary | |
InstanceTracker(java.lang.String connectionIdFileName)
Creates a new InstanceTracker Object. |
Method Summary | |
void |
add(int connectionId,
InstanceBase instance)
Adds a new InstanceBase to the tracker. |
void |
forceRemoveAll()
Iterate through tracker and call remove(id) on all instances. |
InstanceBase |
get(int id)
Retreives an InstanceBase from the tracker. |
java.lang.Object[] |
getInstances()
|
java.lang.String |
getState()
Attempts to build status information for each Object stored within the instance tracker. |
int |
nextId()
Returns the next connection id. |
void |
remove(int id)
Closes an InstanceBase and removes it from the tracker. |
java.util.Collection |
values()
Returns the entire collection of instances. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InstanceTracker(java.lang.String connectionIdFileName)
connectionIdFileName
- Name of connectionId file.Method Detail |
public java.lang.String getState() throws org.glite.rgma.system.RGMAException
org.glite.rgma.system.RGMAException
public void add(int connectionId, InstanceBase instance)
connectionId
- the connection Id, used as a key.instance
- the instance object to store.public InstanceBase get(int id) throws org.glite.rgma.system.UnknownResourceException
id
- identifies which instance to return.
org.glite.rgma.system.RGMAException
- if the instance is null or has been closed.
org.glite.rgma.system.UnknownResourceException
public int nextId()
public void remove(int id) throws org.glite.rgma.system.UnknownResourceException
id
- identifies the InstanceBase.
org.glite.rgma.system.UnknownResourceException
- If the resource/instance does not exist in the tracker.public void forceRemoveAll()
public java.util.Collection values()
public java.lang.Object[] getInstances()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |