|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.notification.SimpleSubscription
org.globus.wsrf.impl.notification.PersistentSubscription
| Field Summary | |
private static java.lang.String |
FILE_SUFFIX
|
private static org.globus.util.I18n |
i18n
|
private FilePersistenceHelper |
persistenceHelper
|
| Fields inherited from class org.globus.wsrf.impl.notification.SimpleSubscription |
consumerReference, creationTime, id, isPaused, logger, policy, precondition, producerHomeLocation, producerKey, producerReference, resourceSecurityDescriptor, RP_SET, securityDescriptor, selector, terminationTime, topicExpression, useNotify |
| Constructor Summary | |
PersistentSubscription()
|
|
PersistentSubscription(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)
|
|
| Method Summary | |
private java.io.File |
getKeyAsFile(java.lang.Object key)
|
protected FilePersistenceHelper |
getPersistenceHelper()
|
void |
load(ResourceKey key)
Loads the resource state. |
void |
pause()
Pause the subscription |
void |
remove()
Notifies that the resource was removed. |
void |
resume()
Resume the subscription |
void |
setTerminationTime(java.util.Calendar time)
Set the termination time |
void |
store()
Saves the resource state. |
| Methods inherited from class org.globus.wsrf.impl.notification.SimpleSubscription |
getConsumerReference, getCreationTime, getCurrentTime, getID, getPrecondition, getProducerReference, getResource, getResourcePropertySet, getSecurityDescriptor, getSecurityProperties, getSelector, getSubscriptionPolicy, getTerminationTime, getTopicExpression, getUseNotify, isPaused |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.globus.util.I18n i18n
private transient FilePersistenceHelper persistenceHelper
private static final java.lang.String FILE_SUFFIX
| Constructor Detail |
public PersistentSubscription()
public PersistentSubscription(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)
| Method Detail |
public void load(ResourceKey key)
throws ResourceException,
NoSuchResourceException,
InvalidResourceKeyException
PersistenceCallback
load in interface PersistenceCallbackNoSuchResourceException - if no resource state exists for the
specified key.
InvalidResourceKeyException - if the resource key is invalid.
ResourceException - if the load operation fails for any other
reason.
public void store()
throws ResourceException
PersistenceCallback
store in interface PersistenceCallbackResourceException - if the store operation fails.
private java.io.File getKeyAsFile(java.lang.Object key)
throws InvalidResourceKeyException
InvalidResourceKeyException
public void remove()
throws ResourceException
RemoveCallbackResourceHome.remove() is
allowed to call that method during the remove operation.
remove in interface RemoveCallbackremove in class SimpleSubscriptionResourceExceptionprotected FilePersistenceHelper getPersistenceHelper()
public void setTerminationTime(java.util.Calendar time)
ResourceLifetime
setTerminationTime in interface ResourceLifetimesetTerminationTime in class SimpleSubscription
public void pause()
throws java.lang.Exception
Subscription
pause in interface Subscriptionpause in class SimpleSubscriptionjava.lang.Exception
public void resume()
throws java.lang.Exception
Subscription
resume in interface Subscriptionresume in class SimpleSubscriptionjava.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||