|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.wsrf.impl.notification.SimpleSubscription
public class SimpleSubscription
Simple in-memory implementation of a subscription resource
| Field Summary | |
|---|---|
protected NotifyCallback |
callback
|
protected org.globus.axis.message.addressing.EndpointReferenceType |
consumerReference
|
protected java.util.Calendar |
creationTime
|
protected FilterType |
filter
|
protected java.lang.String |
id
|
protected boolean |
isPaused
|
(package private) static org.apache.commons.logging.Log |
logger
|
protected SubscribeSubscriptionPolicy |
policy
|
protected java.lang.String |
producerHomeLocation
|
protected ResourceKey |
producerKey
|
protected org.globus.axis.message.addressing.EndpointReferenceType |
producerReference
|
private ResourcePropertySet |
propertySet
|
protected ResourceSecurityDescriptor |
resourceSecurityDescriptor
|
static javax.xml.namespace.QName |
RP_SET
|
protected ClientSecurityDescriptor |
securityDescriptor
|
protected java.util.Calendar |
terminationTime
|
protected TopicExpressionType |
topicExpression
|
protected boolean |
useNotify
|
| Constructor Summary | |
|---|---|
SimpleSubscription()
|
|
SimpleSubscription(org.globus.axis.message.addressing.EndpointReferenceType consumerReference,
org.globus.axis.message.addressing.EndpointReferenceType producerReference,
java.util.Calendar initialTerminationTime,
SubscribeSubscriptionPolicy policy,
FilterType filter,
TopicExpressionType topicExpression,
ResourceKey producerKey,
java.lang.String producerHomeLocation,
ClientSecurityDescriptor notificationSecurityDescriptor,
ResourceSecurityDescriptor resourceSecurityDescriptor,
java.lang.String id,
boolean isPaused)
Construct a new subscription resource. |
|
SimpleSubscription(org.globus.axis.message.addressing.EndpointReferenceType consumerReference,
org.globus.axis.message.addressing.EndpointReferenceType producerReference,
java.util.Calendar initialTerminationTime,
SubscribeSubscriptionPolicy policy,
FilterType filter,
TopicExpressionType topicExpression,
ResourceKey producerKey,
java.lang.String producerHomeLocation,
ClientSecurityDescriptor notificationSecurityDescriptor,
ResourceSecurityDescriptor resourceSecurityDescriptor,
java.lang.String id,
boolean isPaused,
NotifyCallback callback)
Construct a new subscription resource (for use in local invocations). |
|
| Method Summary | |
|---|---|
NotifyCallback |
getCallback()
Get the object that implements NotifyCallback If any. |
org.globus.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 |
FilterType |
getFilterType()
|
java.lang.Object |
getID()
Returns the unique id of the resource. |
org.globus.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. |
SubscribeSubscriptionPolicy |
getSubscriptionPolicy()
|
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.globus.axis.message.addressing.EndpointReferenceType consumerReference
protected org.globus.axis.message.addressing.EndpointReferenceType producerReference
protected SubscribeSubscriptionPolicy policy
protected ResourceKey producerKey
protected java.lang.String producerHomeLocation
protected TopicExpressionType topicExpression
protected java.util.Calendar terminationTime
protected java.util.Calendar creationTime
protected FilterType filter
protected ClientSecurityDescriptor securityDescriptor
protected java.lang.String id
protected ResourceSecurityDescriptor resourceSecurityDescriptor
protected NotifyCallback callback
protected boolean useNotify
protected boolean isPaused
private transient ResourcePropertySet propertySet
| Constructor Detail |
|---|
public SimpleSubscription()
public SimpleSubscription(org.globus.axis.message.addressing.EndpointReferenceType consumerReference,
org.globus.axis.message.addressing.EndpointReferenceType producerReference,
java.util.Calendar initialTerminationTime,
SubscribeSubscriptionPolicy policy,
FilterType filter,
TopicExpressionType topicExpression,
ResourceKey producerKey,
java.lang.String producerHomeLocation,
ClientSecurityDescriptor notificationSecurityDescriptor,
ResourceSecurityDescriptor resourceSecurityDescriptor,
java.lang.String id,
boolean isPaused)
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 policyproducerKey - The key of the producer resourceproducerHomeLocation - The JNDI location of the home of
the producer resourcetopicExpression - The topic expression for this
subscriptionnotificationSecurityDescriptor - Security settings for notifyresourceSecurityDescriptor - Security settings for this
subscription resourceid - The resource identifier
public SimpleSubscription(org.globus.axis.message.addressing.EndpointReferenceType consumerReference,
org.globus.axis.message.addressing.EndpointReferenceType producerReference,
java.util.Calendar initialTerminationTime,
SubscribeSubscriptionPolicy policy,
FilterType filter,
TopicExpressionType topicExpression,
ResourceKey producerKey,
java.lang.String producerHomeLocation,
ClientSecurityDescriptor notificationSecurityDescriptor,
ResourceSecurityDescriptor resourceSecurityDescriptor,
java.lang.String id,
boolean isPaused,
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 resourceid - The resource identifiernotifyCallback - Called directly if it's a local call| 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.globus.axis.message.addressing.EndpointReferenceType getConsumerReference()
Subscription
getConsumerReference in interface Subscriptionpublic SubscribeSubscriptionPolicy getSubscriptionPolicy()
public org.globus.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 TopicExpressionType getTopicExpression()
Subscription
getTopicExpression in interface Subscriptionpublic boolean getUseNotify()
Subscription
getUseNotify in interface Subscriptionpublic ClientSecurityDescriptor getSecurityProperties()
Subscription
getSecurityProperties in interface Subscriptionpublic FilterType getFilterType()
getFilterType in interface Subscriptionpublic boolean isPaused()
PausableSubscription
isPaused in interface PausableSubscription
public void pause()
throws java.lang.Exception
PausableSubscription
pause in interface PausableSubscriptionjava.lang.Exception
public void resume()
throws java.lang.Exception
PausableSubscription
resume in interface PausableSubscriptionjava.lang.Exceptionpublic 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 | |||||||||