|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.props.Props
com.cometway.ak.Agent
com.cometway.ak.ServiceAgent
com.cometway.props.AbstractPropsPoolAgent
public abstract class AbstractPropsPoolAgent
| Nested Class Summary | |
|---|---|
class |
AbstractPropsPoolAgent.PropsPoolImpl
|
| Field Summary | |
|---|---|
protected PropsList |
propsList
|
protected AbstractPropsPoolAgent.PropsPoolImpl |
propsPool
|
| Fields inherited from class com.cometway.ak.Agent |
|---|
agent_id, agentController, CREATING_STATE, debugReporter, DESTROYED_STATE, DESTROYING_STATE, errorReporter, FAILED_STATE, printlnReporter, props, RUNNING_STATE, STARTING_STATE, STOPPED_STATE, STOPPING_STATE, warningReporter |
| Constructor Summary | |
|---|---|
AbstractPropsPoolAgent()
|
|
| Method Summary | |
|---|---|
abstract void |
addNewPropsToPool()
Creates a new Props and adds it to the pool. |
void |
initProps()
Override this method to initialize this agent's properties before it is started. |
abstract void |
returnToPool(Props Props,
java.lang.Object o)
Returns a Props to the pool based on the specified Object parameter. |
void |
start()
Sets up the Props pool and registers the PropsPoolImpl using service_name. |
void |
stop()
Unregisters the PropsPoolImpl and releases it and the PropsList. |
abstract Props |
takeFromPool(java.lang.Object o)
Takes a Props from the pool based on the specified Object parameter. |
| Methods inherited from class com.cometway.ak.Agent |
|---|
currentStateEquals, debug, destroy, error, error, getAgentController, getDateTimeStr, getProps, getServiceImpl, getStateMachineModel, println, register, registerService, setAgentController, setProps, toString, unregister, unregisterService, warning, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected PropsList propsList
protected AbstractPropsPoolAgent.PropsPoolImpl propsPool
| Constructor Detail |
|---|
public AbstractPropsPoolAgent()
| Method Detail |
|---|
public void initProps()
Agent
initProps in interface AgentInterfaceinitProps in class Agentpublic void start()
start in interface AgentInterfacestart in class ServiceAgentpublic void stop()
stop in interface AgentInterfacestop in class ServiceAgentpublic abstract void addNewPropsToPool()
public abstract Props takeFromPool(java.lang.Object o)
public abstract void returnToPool(Props Props,
java.lang.Object o)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||