|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.notification.SimpleSubscription
Simple in-memory implementation of a subscription resource
| Field Summary | |
protected NotifyCallback |
callback
|
protected org.apache.axis.message.addressing.EndpointReferenceType |
consumerReference
|
protected java.util.Calendar |
creationTime
|
protected java.lang.String |
id
|
protected boolean |
isPaused
|
(package private) static org.apache.commons.logging.Log |
logger
|
protected java.lang.Object |
policy
|
protected QueryExpressionType |
precondition
|
protected java.lang.String |
producerHomeLocation
|
protected ResourceKey |
producerKey
|
protected org.apache.axis.message.addressing.EndpointReferenceType |
producerReference
|
private ResourcePropertySet |
propertySet
|
protected ResourceSecurityDescriptor |
resourceSecurityDescriptor
|
static javax.xml.namespace.QName |
RP_SET
|
protected ClientSecurityDescriptor |
securityDescriptor
|
protected QueryExpressionType |
selector
|
protected java.util.Calendar |
terminationTime
|
protected TopicExpressionType |
topicExpression
|
protected boolean |
useNotify
|
private static org.apache.axis.components.uuid.UUIDGen |
uuidGen
|
| Constructor Summary | |
SimpleSubscription()
|
|
SimpleSubscription(org.apache.axis.message.addressing.EndpointReferenceType consumerReference,
org.apache.axis.message.addressing.EndpointReferenceType producerReference,
java.util.Calendar initialTerminationTime,
java.lang.Object policy,
QueryExpressionType precondition,
QueryExpressionType selector,
ResourceKey producerKey,
java.lang.String producerHomeLocation,
TopicExpressionType topicExpression,
boolean isPaused,
boolean useNotify,
ClientSecurityDescriptor notificationSecurityDescriptor,
ResourceSecurityDescriptor resourceSecurityDescriptor)
Construct a new subscription resource. |
|
SimpleSubscription(org.apache.axis.message.addressing.EndpointReferenceType consumerReference,
org.apache.axis.message.addressing.EndpointReferenceType producerReference,
java.util.Calendar initialTerminationTime,
java.lang.Object policy,
QueryExpressionType precondition,
QueryExpressionType selector,
ResourceKey producerKey,
java.lang.String producerHomeLocation,
TopicExpressionType topicExpression,
boolean isPaused,
boolean useNotify,
ClientSecurityDescriptor notificationSecurityDescriptor,
ResourceSecurityDescriptor resourceSecurityDescriptor,
NotifyCallback callback)
Construct a new subscription resource. |
|
| Method Summary | |
NotifyCallback |
getCallback()
Get the object that implements NotifyCallback If any. |
org.apache.axis.message.addressing.EndpointReferenceType |
getConsumerReference()
Get the consumer endpoint reference associated with this subscription |
java.util.Calendar |
getCreationTime()
Get the time at which the resource was created. |
java.util.Calendar |
getCurrentTime()
Get the current time |
java.lang.Object |
getID()
Returns the unique id of the resource. |
QueryExpressionType |
getPrecondition()
Get the precondition associated with this subscription |
org.apache.axis.message.addressing.EndpointReferenceType |
getProducerReference()
Get the producer endpoint reference associated with this subscription |
java.lang.Object |
getResource()
Get the producing resource |
ResourcePropertySet |
getResourcePropertySet()
Returns ResourcePropertySet. |
ResourceSecurityDescriptor |
getSecurityDescriptor()
Method to retrieve the security descriptor for this resource. |
ClientSecurityDescriptor |
getSecurityProperties()
Get security properties that determine security for the notification call. |
QueryExpressionType |
getSelector()
Get the selector expression associated with this subscription |
java.lang.Object |
getSubscriptionPolicy()
Get the policy associated with this subscription |
java.util.Calendar |
getTerminationTime()
Get the termination time |
TopicExpressionType |
getTopicExpression()
Get the topic expression associated with this subscription |
boolean |
getUseNotify()
Wrap notification messages in the notify element? |
boolean |
isPaused()
Is the subscription paused? |
void |
pause()
Pause the subscription |
void |
remove()
Notifies that the resource was removed. |
private boolean |
removeListener(java.util.Collection topics)
|
void |
resume()
Resume the subscription |
void |
setTerminationTime(java.util.Calendar time)
Set the termination time |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static org.apache.commons.logging.Log logger
public static final javax.xml.namespace.QName RP_SET
protected org.apache.axis.message.addressing.EndpointReferenceType consumerReference
protected org.apache.axis.message.addressing.EndpointReferenceType producerReference
protected java.lang.Object policy
protected QueryExpressionType precondition
protected QueryExpressionType selector
protected ResourceKey producerKey
protected java.lang.String producerHomeLocation
protected TopicExpressionType topicExpression
protected boolean isPaused
protected boolean useNotify
protected java.util.Calendar terminationTime
protected java.util.Calendar creationTime
protected ClientSecurityDescriptor securityDescriptor
protected java.lang.String id
protected ResourceSecurityDescriptor resourceSecurityDescriptor
protected NotifyCallback callback
private transient ResourcePropertySet propertySet
private static final org.apache.axis.components.uuid.UUIDGen uuidGen
| Constructor Detail |
public SimpleSubscription()
public SimpleSubscription(org.apache.axis.message.addressing.EndpointReferenceType consumerReference,
org.apache.axis.message.addressing.EndpointReferenceType producerReference,
java.util.Calendar initialTerminationTime,
java.lang.Object policy,
QueryExpressionType precondition,
QueryExpressionType selector,
ResourceKey producerKey,
java.lang.String producerHomeLocation,
TopicExpressionType topicExpression,
boolean isPaused,
boolean useNotify,
ClientSecurityDescriptor notificationSecurityDescriptor,
ResourceSecurityDescriptor resourceSecurityDescriptor)
consumerReference - The WS-Addressing endpoint
reference of the consumerproducerReference - The WS-Addressing endpoint
reference of the producerinitialTerminationTime - The initial termination time of
this resourcepolicy - The subscription policyprecondition - The preconditionselector - The selectorproducerKey - The key of the producer resourceproducerHomeLocation - The JNDI location of the home of
the producer resourcetopicExpression - The topic expression for this
subscriptionisPaused - The initial pause/resume stateuseNotify - Whether to use raw notifications or
not.notificationSecurityDescriptor - Security settings for notifyresourceSecurityDescriptor - Security settings for this
subscription resource
public SimpleSubscription(org.apache.axis.message.addressing.EndpointReferenceType consumerReference,
org.apache.axis.message.addressing.EndpointReferenceType producerReference,
java.util.Calendar initialTerminationTime,
java.lang.Object policy,
QueryExpressionType precondition,
QueryExpressionType selector,
ResourceKey producerKey,
java.lang.String producerHomeLocation,
TopicExpressionType topicExpression,
boolean isPaused,
boolean useNotify,
ClientSecurityDescriptor notificationSecurityDescriptor,
ResourceSecurityDescriptor resourceSecurityDescriptor,
NotifyCallback callback)
consumerReference - The WS-Addressing endpoint
reference of the consumerproducerReference - The WS-Addressing endpoint
reference of the producerinitialTerminationTime - The initial termination time of
this resourcepolicy - The subscription policyprecondition - The preconditionselector - The selectorproducerKey - The key of the producer resourceproducerHomeLocation - The JNDI location of the home of
the producer resourcetopicExpression - The topic expression for this
subscriptionisPaused - The initial pause/resume stateuseNotify - Whether to use raw notifications or
not.notificationSecurityDescriptor - Security settings for notifyresourceSecurityDescriptor - Security settings for this
subscription resource| Method Detail |
public ResourcePropertySet getResourcePropertySet()
ResourcePropertiesResourcePropertySet.
getResourcePropertySet in interface ResourcePropertiesResourcePropertySet.public void setTerminationTime(java.util.Calendar time)
ResourceLifetime
setTerminationTime in interface ResourceLifetimetime - The termination time to setpublic java.util.Calendar getTerminationTime()
ResourceLifetime
getTerminationTime in interface ResourceLifetimepublic java.util.Calendar getCurrentTime()
ResourceLifetime
getCurrentTime in interface ResourceLifetimepublic java.util.Calendar getCreationTime()
Subscription
getCreationTime in interface Subscriptionpublic org.apache.axis.message.addressing.EndpointReferenceType getConsumerReference()
Subscription
getConsumerReference in interface Subscriptionpublic java.lang.Object getSubscriptionPolicy()
Subscription
getSubscriptionPolicy in interface Subscriptionpublic QueryExpressionType getPrecondition()
Subscription
getPrecondition in interface Subscriptionpublic org.apache.axis.message.addressing.EndpointReferenceType getProducerReference()
Subscription
getProducerReference in interface Subscription
public java.lang.Object getResource()
throws java.lang.Exception
Subscription
getResource in interface Subscriptionjava.lang.Exceptionpublic QueryExpressionType getSelector()
Subscription
getSelector in interface Subscriptionpublic TopicExpressionType getTopicExpression()
Subscription
getTopicExpression in interface Subscriptionpublic boolean isPaused()
Subscription
isPaused in interface Subscription
public void pause()
throws java.lang.Exception
Subscription
pause in interface Subscriptionjava.lang.Exception
public void resume()
throws java.lang.Exception
Subscription
resume in interface Subscriptionjava.lang.Exceptionpublic boolean getUseNotify()
Subscription
getUseNotify in interface Subscriptionpublic ClientSecurityDescriptor getSecurityProperties()
Subscription
getSecurityProperties in interface Subscriptionpublic NotifyCallback getCallback()
LocalInvocationEnabledSubscription
getCallback in interface LocalInvocationEnabledSubscriptionpublic java.lang.Object getID()
ResourceIdentifierResoureKey.getValue().
getID in interface ResourceIdentifier
public void remove()
throws ResourceException
RemoveCallbackResourceHome.remove() is
allowed to call that method during the remove operation.
remove in interface RemoveCallbackResourceException - if the remove operation fails.private boolean removeListener(java.util.Collection topics)
public ResourceSecurityDescriptor getSecurityDescriptor()
SecureResourceResourceSecurityConfig be used initialize the
descriptor object. If the initialized is set to true, in
the returned descriptor, then no initialization is done.
getSecurityDescriptor in interface SecureResource
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||