com.francetelecom.admindm.inform
Class ScheduleInform

java.lang.Object
  extended by com.francetelecom.admindm.inform.ScheduleInform
All Implemented Interfaces:
java.util.Observer

public final class ScheduleInform
extends java.lang.Object
implements java.util.Observer

The Class ScheduleInform. The aim of this class is to request opening a new session periodically. Period is defined into data model.


Nested Class Summary
 class ScheduleInform.NextSession
          Default reference time in case of use of undefined Time.
 
Constructor Summary
ScheduleInform(IParameterData pParameterData)
          Instantiates a new schedule inform.
 
Method Summary
protected  long computeNextOccurenceDelay(long currentTime)
          Compute next occurrence delay.
 void createTask()
          Creates the task.
 void initParameterSource()
          Declare as observer of the different parameter.
 void stopScheduling()
          Stop scheduling.
 void update(java.util.Observable arg0, java.lang.Object arg1)
          Update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduleInform

public ScheduleInform(IParameterData pParameterData)
Instantiates a new schedule inform.

Parameters:
pParameterData - the parameter data
Method Detail

stopScheduling

public void stopScheduling()
Stop scheduling.


initParameterSource

public void initParameterSource()
Declare as observer of the different parameter.


update

public void update(java.util.Observable arg0,
                   java.lang.Object arg1)
Update.

Specified by:
update in interface java.util.Observer
Parameters:
arg0 - the observable
arg1 - the arg1
See Also:
Observer.update(java.util.Observable, java.lang.Object)

computeNextOccurenceDelay

protected long computeNextOccurenceDelay(long currentTime)
Compute next occurrence delay.

Parameters:
currentTime - the current time
Returns:
the long

createTask

public void createTask()
Creates the task.



Copyright © 2011 FranceTelecom. All Rights Reserved.