|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Balancer
Description: Balancer defines the remote interface to the balancer component, allowing a client to add to or remove servers from the set of servers that the balancer uses to balance the load from clients.
| Field Summary | |
|---|---|
static java.lang.String |
HOSTS
|
static java.lang.String |
HOSTSPORT
|
static java.lang.String |
LOGTO
|
static java.lang.String |
NAME
|
static java.lang.String |
PORT
|
| Method Summary | |
|---|---|
void |
addServer(java.lang.String hostname)
Add a server to the balancer server set. |
void |
addServer(java.lang.String hostname,
int port)
Add a server to the balancer server set. |
void |
removeServer(java.lang.String hostname)
Remove a server from the balancer server set. |
| Field Detail |
|---|
static final java.lang.String NAME
static final java.lang.String PORT
static final java.lang.String HOSTSPORT
static final java.lang.String HOSTS
static final java.lang.String LOGTO
| Method Detail |
|---|
void addServer(java.lang.String hostname,
int port)
throws java.rmi.RemoteException
hostname - The host name of the new serverport - The port number on the new server used open the connection
from the balancer
java.rmi.RemoteException - in case of Remote/network error
void addServer(java.lang.String hostname)
throws java.rmi.RemoteException
hostname - The host name of the new server, using the hostsPort
Port
java.rmi.RemoteException - in case of Remote/network error
void removeServer(java.lang.String hostname)
throws java.rmi.RemoteException
hostname - The host name of the server to remove from the set
java.rmi.RemoteException - in case of Remote/network error
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||