bass.dto
Class DTO_Client

java.lang.Object
  extended by 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
 
Method Summary
 java.lang.String getIp()
           
 long getLastSeen()
           
 void updateLastSeen()
          sets the last seen time to the current ime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ip

private java.lang.String ip

lastSeen

private long lastSeen
Constructor Detail

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
Method Detail

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