|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.dhcp.service.Lease
public class Lease
Leases represent a temporary assignment of an IP address to a DHCP client.
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 |
---|
public static final int STATE_NEW
public static final int STATE_OFFERED
public static final int STATE_ACTIVE
public static final int STATE_RELEASED
public static final int STATE_EXPIRED
Constructor Detail |
---|
public Lease()
Method Detail |
---|
public java.net.InetAddress getClientAddress()
public java.net.InetAddress getNextServerAddress()
public OptionsField getOptions()
public int getState()
public void setState(int state)
state
- public HardwareAddress getHardwareAddress()
public void setHardwareAddress(HardwareAddress hardwareAddress)
public long getAcquired()
public void setAcquired(long acquired)
public long getExpires()
public void setExpires(long expires)
public void setClientAddress(java.net.InetAddress clientAddress)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |