org.globus.wsrf
Interface ResourceLifetime

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

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

public 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

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

Returns:
The termination time

getCurrentTime

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

Returns:
The current time