SmartFrog 3.10.000

org.smartfrog.examples.dynamicwebserver.balancer
Interface Balancer

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
BalancerImpl

public interface Balancer
extends java.rmi.Remote

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

NAME

static final java.lang.String NAME
See Also:
Constant Field Values

PORT

static final java.lang.String PORT
See Also:
Constant Field Values

HOSTSPORT

static final java.lang.String HOSTSPORT
See Also:
Constant Field Values

HOSTS

static final java.lang.String HOSTS
See Also:
Constant Field Values

LOGTO

static final java.lang.String LOGTO
See Also:
Constant Field Values
Method Detail

addServer

void addServer(java.lang.String hostname,
               int port)
               throws java.rmi.RemoteException
Add a server to the balancer server set.

Parameters:
hostname - The host name of the new server
port - The port number on the new server used open the connection from the balancer
Throws:
java.rmi.RemoteException - in case of Remote/network error

addServer

void addServer(java.lang.String hostname)
               throws java.rmi.RemoteException
Add a server to the balancer server set.

Parameters:
hostname - The host name of the new server, using the hostsPort Port
Throws:
java.rmi.RemoteException - in case of Remote/network error

removeServer

void removeServer(java.lang.String hostname)
                  throws java.rmi.RemoteException
Remove a server from the balancer server set.

Parameters:
hostname - The host name of the server to remove from the set
Throws:
java.rmi.RemoteException - in case of Remote/network error

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP