org.apache.directory.server.dhcp.service
Class Lease

java.lang.Object
  extended by org.apache.directory.server.dhcp.service.Lease

public class Lease
extends java.lang.Object

Leases represent a temporary assignment of an IP address to a DHCP client.

Version:
$Rev: 545042 $, $Date: 2007-06-06 22:32:01 -0500 (Mi, 06 Jun 2007) $
Author:
Apache Directory Project

Field Summary
static int STATE_ACTIVE
          Lease state: active - assigned to client
static int STATE_EXPIRED
          Lease state: expired
static int STATE_NEW
          Lease state: newly created
static int STATE_OFFERED
          Lease state: offered to client
static int STATE_RELEASED
          Lease state: released by client
 
Constructor Summary
Lease()
           
 
Method Summary
 long getAcquired()
           
 java.net.InetAddress getClientAddress()
           
 long getExpires()
           
 HardwareAddress getHardwareAddress()
           
 java.net.InetAddress getNextServerAddress()
           
 OptionsField getOptions()
           
 int getState()
           
 void setAcquired(long acquired)
           
 void setClientAddress(java.net.InetAddress clientAddress)
           
 void setExpires(long expires)
           
 void setHardwareAddress(HardwareAddress hardwareAddress)
           
 void setState(int state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_NEW

public static final int STATE_NEW
Lease state: newly created

See Also:
Constant Field Values

STATE_OFFERED

public static final int STATE_OFFERED
Lease state: offered to client

See Also:
Constant Field Values

STATE_ACTIVE

public static final int STATE_ACTIVE
Lease state: active - assigned to client

See Also:
Constant Field Values

STATE_RELEASED

public static final int STATE_RELEASED
Lease state: released by client

See Also:
Constant Field Values

STATE_EXPIRED

public static final int STATE_EXPIRED
Lease state: expired

See Also:
Constant Field Values
Constructor Detail

Lease

public Lease()
Method Detail

getClientAddress

public java.net.InetAddress getClientAddress()
Returns:
InetAddress

getNextServerAddress

public java.net.InetAddress getNextServerAddress()
Returns:
InetAddress

getOptions

public OptionsField getOptions()
Returns:
OptionsField

getState

public int getState()
Returns:
int

setState

public void setState(int state)
Parameters:
state -

getHardwareAddress

public HardwareAddress getHardwareAddress()

setHardwareAddress

public void setHardwareAddress(HardwareAddress hardwareAddress)

getAcquired

public long getAcquired()

setAcquired

public void setAcquired(long acquired)

getExpires

public long getExpires()

setExpires

public void setExpires(long expires)

setClientAddress

public void setClientAddress(java.net.InetAddress clientAddress)


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.