|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.util.MethodCallRequestHandler kaos.core.csi.request.ActionMethodRequestHandler
public abstract class ActionMethodRequestHandler
Field Summary | |
---|---|
protected PolicyChecking |
_policyService
|
Fields inherited from class kaos.core.util.MethodCallRequestHandler |
---|
_agentDescription, _locator, _logger, _mts, _nickName |
Constructor Summary | |
---|---|
ActionMethodRequestHandler()
|
Method Summary | |
---|---|
protected void |
bindToPolicyService(java.lang.String transportName)
|
protected void |
checkPermissionForAction(java.lang.String actionName,
java.util.HashMap properties)
|
protected java.lang.Object |
executeHashMapBasedAction(java.lang.String actionName,
java.util.HashMap properties,
ActionStatusCallback statusCallback)
|
java.util.HashMap |
getPropertiesFromAID(ActionInstanceDescription aid)
|
java.lang.Object |
processAIDRequest(ActionInstanceDescription aid)
This method accepts a request described in an ActionInstanceDescription to perform an action. |
void |
processAIDRequest(ActionInstanceDescription aid,
ActionStatusCallback statusCallback)
This method accepts a request described by an ActionInstanceDescription to perform an action. |
java.lang.Object |
processHashMapRequest(java.lang.String actionName)
This method accepts a request described by the given String containing action name. |
void |
processHashMapRequest(java.lang.String actionName,
ActionStatusCallback statusCallback)
This method accepts a request described by the given String containing the action name. |
java.lang.Object |
processHashMapRequest(java.lang.String actionName,
java.util.HashMap properties)
This method accepts a request described by the given String and HashMap of properties. |
void |
processHashMapRequest(java.lang.String actionName,
java.util.HashMap properties,
ActionStatusCallback statusCallback)
This method accepts a request described by the given String and HashMap of properties. |
Methods inherited from class kaos.core.util.MethodCallRequestHandler |
---|
bindToTransport, initialize, receiveMessage, satisfyRequest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PolicyChecking _policyService
Constructor Detail |
---|
public ActionMethodRequestHandler()
Method Detail |
---|
public void processHashMapRequest(java.lang.String actionName, java.util.HashMap properties, ActionStatusCallback statusCallback) throws ActionFailureException
processHashMapRequest
in interface HashMapRequestReceiver
actionName
- is a String representing the name of the action as defined in
the associated ontology.properties
- is an HashMap of ontological Strings representing
the desired properties of the action and the
associated values.statusCallback
- ActionStatusCallback to be called to pass back to the
action requestor information about progression of the action execution
and the final result.
ActionFailureException
- containing the reason for failure.
See ontology to determine specific reasons available for
a given actionpublic void processHashMapRequest(java.lang.String actionName, ActionStatusCallback statusCallback) throws ActionFailureException
processHashMapRequest
in interface HashMapRequestReceiver
actionName
- is a String representing the name of the action as defined in
the associated ontology.statusCallback
- ActionStatusCallback to be called to pass back to the
action requestor information about progression of the action execution
and the final result.
ActionFailureException
- containing the reason for failure.
See ontology to determine specific reasons available for
a given actionpublic java.lang.Object processHashMapRequest(java.lang.String actionName, java.util.HashMap properties) throws ActionFailureException
processHashMapRequest
in interface HashMapRequestReceiver
actionName
- is a String representing the name of the action as defined in
the associated ontology.properties
- is an HashMap of ontological Strings representing
the desired properties of the action and the
associated values.
ActionFailureException
- containing the reason for failure.
See ontology to determine specific reasons available for
a given actionpublic java.lang.Object processHashMapRequest(java.lang.String actionName) throws ActionFailureException
processHashMapRequest
in interface HashMapRequestReceiver
actionName
- is a String representing the name of the action as defined in
the associated ontology.
ActionFailureException
- containing the reason for failure.
See ontology to determine specific reasons available for
a given actionpublic void processAIDRequest(ActionInstanceDescription aid, ActionStatusCallback statusCallback) throws ActionFailureException
aid
- is an ActionInstanceDescription that describes the action.
It includes the action name and all action properties and their values.statusCallback
- ActionStatusCallback to be called to pass back to the
action requestor information about progression of the action execution
and the final result.
ActionFailureException
- containing the reason for failure.
See ontology to determine specific reasons available for
a given actionpublic java.lang.Object processAIDRequest(ActionInstanceDescription aid) throws ActionFailureException
aid
- is an ActionInstanceDescription that describes the action.
It includes the action name and all action properties and their values.
ActionFailureException
- containing the reason for failure.
See ontology to determine specific reasons available for
a given actionprotected void bindToPolicyService(java.lang.String transportName) throws java.lang.Exception
java.lang.Exception
protected java.lang.Object executeHashMapBasedAction(java.lang.String actionName, java.util.HashMap properties, ActionStatusCallback statusCallback) throws java.lang.Exception
java.lang.Exception
protected void checkPermissionForAction(java.lang.String actionName, java.util.HashMap properties) throws ActionFailureException
ActionFailureException
public java.util.HashMap getPropertiesFromAID(ActionInstanceDescription aid)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |