package org.openslx.dnbd3.status.rpc; import java.util.List; public class Status { private long bytesReceived = -1; private long bytesSent = -1; private int uptime = -1; private List images = null; private List clients = null; private String address = null; private long timeStamp = -1; public long getBytesReceived() { return bytesReceived; } public long getBytesSent() { return bytesSent; } public int getUptime() { return uptime; } public List getImages() { return images; } public List getClients() { return clients; } public String getAddress() { return address; } public void setAddress( String address ) { this.address = address; } @Override public String toString() { String ret = "(in: " + bytesReceived + ", out: " + bytesSent; if ( clients != null ) ret += ", clients: (" + clients.toString() + ")"; if ( images != null ) ret += ", images: (" + images.toString() + ")"; ret += ")"; return ret; } public void setTimestamp( long currentTimeMillis ) { this.timeStamp = currentTimeMillis; } public long getTimestamp() { return this.timeStamp; } }