|
||||||||||
| 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
public class PersistentSubscription
| Field Summary | |
|---|---|
private static java.lang.String |
FILE_SUFFIX
|
private static org.globus.util.I18n |
i18n
|
private FilePersistenceHelper |
persistenceHelper
|
private boolean |
removed
|
| Fields inherited from class org.globus.wsrf.impl.notification.SimpleSubscription |
|---|
callback, consumerReference, creationTime, filter, id, isPaused, logger, policy, producerHomeLocation, producerKey, producerReference, resourceSecurityDescriptor, RP_SET, securityDescriptor, terminationTime, topicExpression, useNotify |
| Constructor Summary | |
|---|---|
PersistentSubscription()
|
|
PersistentSubscription(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)
|
|
PersistentSubscription(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)
|
|
| Method Summary | |
|---|---|
private java.io.File |
getKeyAsFile(java.lang.Object key)
|
protected FilePersistenceHelper |
getPersistenceHelper()
|
void |
load(java.io.File file)
|
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 |
|---|
getCallback, getConsumerReference, getCreationTime, getCurrentTime, getFilterType, getID, getProducerReference, getResource, getResourcePropertySet, getSecurityDescriptor, getSecurityProperties, 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
private boolean removed
| Constructor Detail |
|---|
public PersistentSubscription()
public PersistentSubscription(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)
public PersistentSubscription(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)
| 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 load(java.io.File file)
throws ResourceException,
NoSuchResourceException,
InvalidResourceKeyException
ResourceException
NoSuchResourceException
InvalidResourceKeyException
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 SimpleSubscriptionResourceException - if the remove operation fails.protected FilePersistenceHelper getPersistenceHelper()
public void setTerminationTime(java.util.Calendar time)
ResourceLifetime
setTerminationTime in interface ResourceLifetimesetTerminationTime in class SimpleSubscriptiontime - The termination time to set
public void pause()
throws java.lang.Exception
PausableSubscription
pause in interface PausableSubscriptionpause in class SimpleSubscriptionjava.lang.Exception
public void resume()
throws java.lang.Exception
PausableSubscription
resume in interface PausableSubscriptionresume in class SimpleSubscriptionjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||