public class Node extends Object
| Constructor and Description |
|---|
Node()
Default constructor.
|
Node(String id,
String url) |
Node(String id,
String url,
int maxConenction) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnection()
Add new connection.
|
void |
delConnection()
Remove connection.
|
int |
getConnected() |
String |
getId() |
int |
getMaxConnection() |
String |
getUrl() |
boolean |
isAlive() |
void |
setAlive(boolean alive) |
void |
setConnected(int connected) |
void |
setId(String id) |
void |
setMaxConnection(int maxConnenction) |
void |
setUrl(String url) |
public Node(String id, String url, int maxConenction)
id - the unique id of node.url - the base URL of node.maxConenction - the max count of allowed connection.public Node(String id, String url)
id - the unique id of node.url - the base URL of node.public Node()
public String getUrl()
public void setUrl(String url)
url - the URL to set.public int getMaxConnection()
public void setMaxConnection(int maxConnenction)
maxConnenction - set max allowed connection on this node.public void setConnected(int connected)
connected - set how much already connected.public int getConnected()
public boolean isAlive()
public void setAlive(boolean alive)
alive - the alive to setpublic void addConnection()
public void delConnection()
public String getId()
public void setId(String id)
id - the id to setCopyright © 2003–2016 eXo Platform SAS. All rights reserved.