|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.ws.frameworks.cometd.loadbalancer.Node
public class Node
Created by The eXo Platform SAS.
| Constructor Summary | |
|---|---|
Node()
Default constructor. |
|
Node(java.lang.String id,
java.lang.String url)
|
|
Node(java.lang.String id,
java.lang.String url,
int maxConenction)
|
|
| Method Summary | |
|---|---|
void |
addConnection()
Add new connection. |
void |
delConnection()
Remove connection. |
int |
getConnected()
|
java.lang.String |
getId()
|
int |
getMaxConnection()
|
java.lang.String |
getUrl()
|
boolean |
isAlive()
|
void |
setAlive(boolean alive)
|
void |
setConnected(int connected)
|
void |
setId(java.lang.String id)
|
void |
setMaxConnection(int maxConnenction)
|
void |
setUrl(java.lang.String url)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Node(java.lang.String id,
java.lang.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(java.lang.String id,
java.lang.String url)
id - the unique id of node.url - the base URL of node.public Node()
| Method Detail |
|---|
public java.lang.String getUrl()
public void setUrl(java.lang.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 java.lang.String getId()
public void setId(java.lang.String id)
id - the id to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||