bass.dto
Class DTO_Client
java.lang.Object
bass.dto.DTO_Client
public class DTO_Client
- extends java.lang.Object
DTO object to remember client ip and last seen time
used for backup system to start a new client if a client
crashes
- Version:
- 0.1
- Author:
- Thomas Klein
|
Field Summary |
private java.lang.String |
ip
|
private long |
lastSeen
|
|
Constructor Summary |
DTO_Client(java.lang.String clientIp)
generates a new object with the given ip and the
last seen time set to the current time |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ip
private java.lang.String ip
lastSeen
private long lastSeen
DTO_Client
public DTO_Client(java.lang.String clientIp)
- generates a new object with the given ip and the
last seen time set to the current time
- Parameters:
clientIp - the clients ip
updateLastSeen
public void updateLastSeen()
- sets the last seen time to the current ime
getIp
public java.lang.String getIp()
- Returns:
- the ip
getLastSeen
public long getLastSeen()
- Returns:
- the lastSeen time in millis