|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcartago.AbstractWSPRuleEngine
public abstract class AbstractWSPRuleEngine
Base class for implementing WSP Rule engine
Constructor Summary | |
---|---|
protected |
AbstractWSPRuleEngine()
|
Method Summary | |
---|---|
protected void |
disposeArtifact(ArtifactId id)
Dispose an existing artifact |
protected boolean |
execOp(ArtifactId aid,
Op op)
Execute an operation |
protected ArtifactId |
getArtifact(java.lang.String name)
Get the identifier of an artifact |
protected java.lang.String[] |
getArtifactList()
Get the current artifact name list |
protected ArtifactObsProperty |
getArtifactObsProp(ArtifactId id,
java.lang.String propName)
Get the value of an artifact observable property |
protected void |
lock()
|
protected ArtifactId |
makeArtifact(java.lang.String artifactName,
java.lang.String templateName,
java.lang.Object... params)
Create a new artifact |
protected void |
processActionRequest(OpRequestInfo desc)
Process a new operation request The request can inspected or changed or be forced to fail by using the OpRequestInfo interface. |
protected void |
processAgentJoinRequest(AgentJoinRequestInfo req)
Process a new request to join by an agent The request can inspected or changed or be forced to fail by using the AgentJoinRequestInfo interface. |
protected void |
processAgentQuitRequest(AgentQuitRequestInfo req)
Process a new request to join by an agent The request can inspected or changed or be forced to fail by using the AgentQuitRequestInfo interface. |
protected void |
unlock()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractWSPRuleEngine()
Method Detail |
---|
protected void processActionRequest(OpRequestInfo desc)
desc
- operation request descriptorprotected void processAgentJoinRequest(AgentJoinRequestInfo req)
req
- request infoprotected void processAgentQuitRequest(AgentQuitRequestInfo req)
req
- request infoprotected final boolean execOp(ArtifactId aid, Op op) throws CartagoException
aid
- artifact identifierop
- operation
CartagoException
protected final ArtifactId makeArtifact(java.lang.String artifactName, java.lang.String templateName, java.lang.Object... params) throws CartagoException
artifactName
- templateName
- params
-
CartagoException
protected final void disposeArtifact(ArtifactId id) throws CartagoException
id
-
CartagoException
protected final java.lang.String[] getArtifactList()
protected final ArtifactId getArtifact(java.lang.String name)
name
- name of the artifact
protected final ArtifactObsProperty getArtifactObsProp(ArtifactId id, java.lang.String propName) throws CartagoException
id
- artifact identifierpropName
- property name
CartagoException
protected final void lock() throws java.lang.InterruptedException
java.lang.InterruptedException
protected final void unlock() throws java.lang.InterruptedException
java.lang.InterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |