public class MuninConnection extends Connection<MuninConnection.SocketChannels>
| Modifier and Type | Class and Description |
|---|---|
static class |
MuninConnection.SocketChannels |
| Constructor and Description |
|---|
MuninConnection() |
MuninConnection(Integer port) |
| Modifier and Type | Method and Description |
|---|---|
MuninConnection.SocketChannels |
getConnection() |
int |
getPort() |
void |
setPort(int port) |
long |
setUptime()
Return the uptime of the end point of the connexion
it's called once after the connexion start
It should be in seconds
|
boolean |
startConnection() |
void |
stopConnection() |
getHostName, getKey, getName, getResolver, getTimeout, getUptime, setName, start, stop, toStringpublic MuninConnection()
public MuninConnection(Integer port)
public MuninConnection.SocketChannels getConnection()
getConnection in class Connection<MuninConnection.SocketChannels>public long setUptime()
ConnectionsetUptime in class Connection<MuninConnection.SocketChannels>public boolean startConnection()
startConnection in class Connection<MuninConnection.SocketChannels>public void stopConnection()
stopConnection in class Connection<MuninConnection.SocketChannels>public int getPort()
public void setPort(int port)
port - the port to set