org.globus.wsrf.impl.servicegroup.client
Class ServiceGroupRegistrationClient.RegTimer

java.lang.Object
  extended byorg.globus.wsrf.impl.servicegroup.client.ServiceGroupRegistrationClient.RegTimer
All Implemented Interfaces:
commonj.timers.TimerListener
Enclosing class:
ServiceGroupRegistrationClient

private class ServiceGroupRegistrationClient.RegTimer
extends java.lang.Object
implements commonj.timers.TimerListener

Internal class for registration timer event. Each managed registration that will have a corresponding instance of this class.


Field Summary
private  org.apache.axis.message.addressing.EndpointReferenceType entryEPR
          If we know about an existing ServiceGroupEntry EPR for this managed registration, it will be stored here so that we can attempt to extend its lifetime rather than adding a new entry.
private  boolean maybeHasLifetime
          if we have decided that the remote entry has no resource lifetime management operations/RPs, then we will set this to false so that we will not try them again.
private  ServiceGroupRegistrationParameters parameters
           
private  WSResourcePropertiesServiceAddressingLocator rpLocator
           
 
Constructor Summary
ServiceGroupRegistrationClient.RegTimer(ServiceGroupRegistrationParameters parameters)
           
 
Method Summary
 void cancel(commonj.timers.Timer timer)
           
private  java.util.Calendar getCurrentTimePreferringRemote(org.apache.axis.message.addressing.EndpointReferenceType epr)
          Gets the current time, preferably from the remote resource specified, and failing that from local system.
 ServiceGroupRegistrationParameters getParameters()
           
 void setSecurity(javax.xml.rpc.Stub port)
          Sets security as appropriate for this registration
 void timerExpired(commonj.timers.Timer timer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maybeHasLifetime

private boolean maybeHasLifetime
if we have decided that the remote entry has no resource lifetime management operations/RPs, then we will set this to false so that we will not try them again. Care needs to be taken to ensure that it is only set to false by exceptions that indicate the appropriate RPs/ops do not exist, rather than (for example) network / resource non-existence errors.


parameters

private ServiceGroupRegistrationParameters parameters

entryEPR

private org.apache.axis.message.addressing.EndpointReferenceType entryEPR
If we know about an existing ServiceGroupEntry EPR for this managed registration, it will be stored here so that we can attempt to extend its lifetime rather than adding a new entry.


rpLocator

private final WSResourcePropertiesServiceAddressingLocator rpLocator
Constructor Detail

ServiceGroupRegistrationClient.RegTimer

public ServiceGroupRegistrationClient.RegTimer(ServiceGroupRegistrationParameters parameters)
Method Detail

getParameters

public ServiceGroupRegistrationParameters getParameters()

cancel

public void cancel(commonj.timers.Timer timer)

setSecurity

public void setSecurity(javax.xml.rpc.Stub port)
                 throws java.lang.Exception
Sets security as appropriate for this registration

Throws:
java.lang.Exception

timerExpired

public void timerExpired(commonj.timers.Timer timer)
Specified by:
timerExpired in interface commonj.timers.TimerListener

getCurrentTimePreferringRemote

private java.util.Calendar getCurrentTimePreferringRemote(org.apache.axis.message.addressing.EndpointReferenceType epr)
Gets the current time, preferably from the remote resource specified, and failing that from local system.