org.glite.ce.monitorapij.types
Class Action

java.lang.Object
  extended byorg.glite.ce.monitorapij.types.CEMonResourceBase
      extended byorg.glite.ce.monitorapij.types.CEMonResource
          extended byorg.glite.ce.monitorapij.types.ActionBase
              extended byorg.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

Field Summary
 
Fields inherited from class org.glite.ce.monitorapij.types.CEMonResource
creationTime, newResource
 
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.ActionBase
equals, getParameter, getParameter, getTypeDesc, hashCode, isDoActionWhenQueryIs, setDoActionWhenQueryIs, setParameter, setParameter
 
Methods inherited from class org.glite.ce.monitorapij.types.CEMonResource
exists, getCreationTime, getProperty, isNew, lastModified, removeHiddenProperties, setCreationTime, setId, setNew
 
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
 

Constructor Detail

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.
Method Detail

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 QueryResults
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 type
javaType - the class name to be serialized
xmlType - 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 type
javaType - the class name to be deserialized
xmlType - the xml type mapping
Returns:
the suitable deserializer