org.apache.directory.shared.ldap.codec.extended.operations
Class GracefulAction

java.lang.Object
  extended byorg.apache.directory.shared.asn1.Asn1Object
      extended byorg.apache.directory.shared.ldap.codec.extended.operations.GracefulAction
Direct Known Subclasses:
GracefulDisconnect, GracefulShutdown

public abstract class GracefulAction
extends org.apache.directory.shared.asn1.Asn1Object

A common class for graceful Disconnect and Shutdown extended operations.

Author:
Apache Directory Project

Field Summary
protected  int delay
          Delay before disconnection
static int NOW
          The shutdown is immediate
protected  int timeOffline
          offline Time after disconnection
static int UNDETERMINED
          Undetermined value used for timeOffline
 
Fields inherited from class org.apache.directory.shared.asn1.Asn1Object
parent
 
Constructor Summary
GracefulAction()
          Default constructor.
GracefulAction(int timeOffline, int delay)
          Create a GracefulAction object, with a timeOffline and a delay
 
Method Summary
 int getDelay()
           
 int getTimeOffline()
           
 void setDelay(int delay)
           
 void setTimeOffline(int timeOffline)
           
 
Methods inherited from class org.apache.directory.shared.asn1.Asn1Object
addLength, computeLength, encode, getCurrentLength, getExpectedLength, getParent, setCurrentLength, setExpectedLength, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDETERMINED

public static final int UNDETERMINED
Undetermined value used for timeOffline

See Also:
Constant Field Values

NOW

public static final int NOW
The shutdown is immediate

See Also:
Constant Field Values

timeOffline

protected int timeOffline
offline Time after disconnection


delay

protected int delay
Delay before disconnection

Constructor Detail

GracefulAction

public GracefulAction()
Default constructor. The time offline will be set to UNDETERMINED and there is no delay.


GracefulAction

public GracefulAction(int timeOffline,
                      int delay)
Create a GracefulAction object, with a timeOffline and a delay

Parameters:
timeOffline - The time the server will be offline
delay - The delay before the disconnection
Method Detail

getDelay

public int getDelay()

setDelay

public void setDelay(int delay)

getTimeOffline

public int getTimeOffline()

setTimeOffline

public void setTimeOffline(int timeOffline)


Copyright © 2003-2006 . All Rights Reserved.