Package org.opennms.features.dhcpd.impl
Class TransactionImpl
- java.lang.Object
-
- org.opennms.features.dhcpd.impl.TransactionImpl
-
- All Implemented Interfaces:
Transaction
public class TransactionImpl extends java.lang.Object implements Transaction
-
-
Constructor Summary
Constructors Constructor Description TransactionImpl(java.lang.String hostAddress, java.lang.String macAddress, boolean relayMode, java.lang.String myIpAddress, boolean extendedMode, java.lang.String requestIpAddress, int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check(Response response)
java.net.InetAddress
getHostAddress()
byte[]
getMacAddress()
java.net.InetAddress
getMyIpAddress()
java.net.InetAddress
getRequestIpAddress()
Response
getResponse()
long
getResponseTime()
int
getTimeout()
int
getXid()
boolean
isExtendedMode()
boolean
isRelayMode()
boolean
isSuccess()
void
setXid(int xid)
java.lang.String
toString()
void
updateStartTime()
-
-
-
Method Detail
-
getTimeout
public int getTimeout()
-
check
public boolean check(Response response)
-
updateStartTime
public void updateStartTime()
-
getResponseTime
public long getResponseTime()
- Specified by:
getResponseTime
in interfaceTransaction
-
getResponse
public Response getResponse()
-
isSuccess
public boolean isSuccess()
- Specified by:
isSuccess
in interfaceTransaction
-
getHostAddress
public java.net.InetAddress getHostAddress()
-
getMacAddress
public byte[] getMacAddress()
-
getRequestIpAddress
public java.net.InetAddress getRequestIpAddress()
-
isExtendedMode
public boolean isExtendedMode()
-
isRelayMode
public boolean isRelayMode()
-
getXid
public int getXid()
-
setXid
public void setXid(int xid)
-
getMyIpAddress
public java.net.InetAddress getMyIpAddress()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-