org.globus.wsrf
Interface ResourceLifetime

All Known Subinterfaces:
LocalInvocationEnabledSubscription, PausableSubscription, Subscription
All Known Implementing Classes:
EnumResource, PersistentReflectionResource, PersistentSubscription, ReflectionResource, SimpleSubscription, TransientEnumResource

public interface ResourceLifetime

Interface that contains operations which expose the state associated with resource lifetime.


Method Summary
 java.util.Calendar getCurrentTime()
          Get the current time
 java.util.Calendar getTerminationTime()
          Get the termination time
 void setTerminationTime(java.util.Calendar time)
          Set the termination time
 

Method Detail

setTerminationTime

void setTerminationTime(java.util.Calendar time)
                        throws TerminationTimeRejectedException
Set the termination time

Parameters:
time - The termination time to set
Throws:
TerminationTimeRejectedException - if the new termination time cannot be accepted.

getTerminationTime

java.util.Calendar getTerminationTime()
Get the termination time

Returns:
The termination time

getCurrentTime

java.util.Calendar getCurrentTime()
Get the current time

Returns:
The current time