public class Lease
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
acquired |
private java.net.InetAddress |
clientAddress
The assigned client address.
|
private long |
expires |
private HardwareAddress |
hardwareAddress
The client's hardware address.
|
private java.net.InetAddress |
nextServerAddress
The next-server (boot-server) address.
|
private OptionsField |
options
The DhcpOptions to provide to the client along with the lease.
|
private int |
state
The lease's state.
|
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 and Description |
|---|
Lease() |
| Modifier and Type | Method and Description |
|---|---|
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) |
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
private int state
STATE_NEW,
STATE_OFFERED,
STATE_ACTIVE,
STATE_RELEASED,
STATE_EXPIREDprivate java.net.InetAddress clientAddress
private HardwareAddress hardwareAddress
private java.net.InetAddress nextServerAddress
private OptionsField options
private long acquired
private long expires
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)