public class Lease extends Object
Modifier and Type | Field and Description |
---|---|
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() |
InetAddress |
getClientAddress() |
long |
getExpires() |
HardwareAddress |
getHardwareAddress() |
InetAddress |
getNextServerAddress() |
OptionsField |
getOptions() |
int |
getState() |
void |
setAcquired(long acquired) |
void |
setClientAddress(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
public Lease()
public InetAddress getClientAddress()
public 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(InetAddress clientAddress)
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.