org.glite.ce.monitorapij.types
Class Subscription

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

Field Summary
 
Fields inherited from class org.glite.ce.monitorapij.types.CEMonResource
creationTime, newResource
 
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.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

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

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