|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.kernel.ac.AgentContainerTable
public class AgentContainerTable
Implements the table of agent containers and allocates agent container IDs. Thread-safe.
| Constructor Summary | |
|---|---|
AgentContainerTable(java.io.File agentContainersDir)
|
|
| Method Summary | |
|---|---|
int |
createAgentContainer()
Creates a new agent container object, allocates an agent container ID for it, and places the object in the agent container table. |
void |
deallocateAgentContainerID(int acid)
Deallocates an agent container ID. |
void |
deleteACsOwnedBy(Role owner)
|
protected AgentContainer |
getAgentContainer(int acid)
Protected version, without locking. |
AgentContainer |
getAgentContainer(int acid,
boolean exclusive)
Looks up an agent container object by its ID. |
java.io.File |
getAgentContainersDir()
|
void |
recover(RoleTable roleTable)
|
void |
releaseAgentContainerLock(int acid,
boolean exclusive)
Release the lock on an agentcontainer. |
AgentContainer |
removeAgentContainer(int acid)
Removes the agent container object with the given agent container ID from the table, but does *not* deallocate the agent container ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AgentContainerTable(java.io.File agentContainersDir)
agentContainersDir - the directory in which agent containers are
stored| Method Detail |
|---|
public int createAgentContainer()
throws InputOutputException
InputOutputException
public AgentContainer getAgentContainer(int acid,
boolean exclusive)
protected AgentContainer getAgentContainer(int acid)
public void releaseAgentContainerLock(int acid,
boolean exclusive)
public AgentContainer removeAgentContainer(int acid)
deallocateAgentContainerID(int)public void deallocateAgentContainerID(int acid)
removeAgentContainer(int)public void deleteACsOwnedBy(Role owner)
public void recover(RoleTable roleTable)
throws KernelException
KernelExceptionpublic java.io.File getAgentContainersDir()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||