org.glite.ce.monitorapij.types
Class Action
java.lang.Object
org.glite.ce.monitorapij.types.CEMonResourceBase
org.glite.ce.monitorapij.types.CEMonResource
org.glite.ce.monitorapij.types.ActionBase
org.glite.ce.monitorapij.types.Action
- All Implemented Interfaces:
- Resource, java.io.Serializable
- public class Action
- extends ActionBase
- implements Resource, java.io.Serializable
This class is used to make a set of actions regarding notifications when a QueryResult
brings a successful result.
- Author:
- Luigi Zangrando (zangrando@pd.infn.it)
- See Also:
- Serialized Form
Constructor Summary |
Action()
Creates a new _Action object without a name. |
Action(java.lang.String name)
Creates a new _Action object specifying a name. |
Method Summary |
void |
execute(Notification notification,
QueryResult[] results)
Execute a set of actions on specified notification when results are successful or not. |
static org.apache.axis.encoding.Deserializer |
getDeserializer(java.lang.String mechType,
java.lang.Class javaType,
javax.xml.namespace.QName xmlType)
This static method is used to retrieve a suitable bean deserializer |
static org.apache.axis.encoding.Serializer |
getSerializer(java.lang.String mechType,
java.lang.Class javaType,
javax.xml.namespace.QName xmlType)
This static method is used to retrieve a suitable bean serializer
removing all hidden properties contained into CEMonAbstractResource |
Methods inherited from class org.glite.ce.monitorapij.types.CEMonResourceBase |
getId, getJarPath, getName, getProperty, getProperty, getType, setId, setJarPath, setName, setProperty, setProperty, setType |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.glite.ce.monitorapij.resource.Resource |
exists, getCreationTime, getId, getJarPath, getName, getProperty, getProperty, getProperty, getType, isNew, lastModified, setCreationTime, setId, setId, setJarPath, setName, setNew, setProperty, setProperty, setType |
Action
public Action()
- Creates a new _Action object without a name.
Action
public Action(java.lang.String name)
- Creates a new _Action object specifying a name.
- Parameters:
name
- The specified name.
execute
public void execute(Notification notification,
QueryResult[] results)
throws java.lang.Exception
- Execute a set of actions on specified notification when results are successful or not.
- Parameters:
notification
- The notification to be performed.results
- The evaluated QueryResult
s
- Throws:
java.lang.Exception
- Throw when _Notification or QueryResults are not correctly specified.
getSerializer
public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
java.lang.Class javaType,
javax.xml.namespace.QName xmlType)
- This static method is used to retrieve a suitable bean serializer
removing all hidden properties contained into CEMonAbstractResource
- Parameters:
mechType
- the XML processing mechanism typejavaType
- the class name to be serializedxmlType
- the xml type mapping
- Returns:
- the suitable serializer
getDeserializer
public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
java.lang.Class javaType,
javax.xml.namespace.QName xmlType)
- This static method is used to retrieve a suitable bean deserializer
- Parameters:
mechType
- the XML processing mechanism typejavaType
- the class name to be deserializedxmlType
- the xml type mapping
- Returns:
- the suitable deserializer