org.glite.ce.monitorapij.types
Class Subscription
java.lang.Object
org.glite.ce.monitorapij.types.CEMonResourceBase
org.glite.ce.monitorapij.types.CEMonResource
org.glite.ce.monitorapij.types.SubscriptionBase
org.glite.ce.monitorapij.types.Subscription
- All Implemented Interfaces:
- Resource, java.io.Serializable
- public class Subscription
- extends SubscriptionBase
- implements Resource, java.io.Serializable
This class is used by clients to subscribe to events of a particular sensor.
It is associated to this sensor by an URL locating it and a _Topic
describing it.
A _Policy
is used to perform the correct notifications.
- Author:
- Luigi Zangrando (zangrando@pd.infn.it)
- See Also:
- Serialized Form
Constructor Summary |
Subscription()
Creates a new _Subscription object without name. |
Subscription(java.lang.String id)
Creates a new _Subscription object specifying its name. |
Method Summary |
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.SubscriptionBase |
equals, getExpirationTime, getMonitorConsumerURL, getPolicy, getTopic, getTypeDesc, hashCode, setExpirationTime, setMonitorConsumerURL, setPolicy, setTopic |
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 |
Subscription
public Subscription()
- Creates a new _Subscription object without name.
Subscription
public Subscription(java.lang.String id)
- Creates a new _Subscription object specifying its name.
- Parameters:
id
- The name of this subscription.
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