|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.manager.ServerTable
Field Summary | |
private static Method |
ON_REGISTER_SERVER_JMX_CB
|
private static Method |
ON_REMOVE_SERVER_JMX_CB
|
private static WTProperties |
props
|
static Object |
REMOVE_LOCK
|
private static String |
SERVER_MANAGER_JMX_HOOK_CLASSNAME
|
private Hashtable |
serverTable
|
private Hashtable |
serviceInstances
|
private static int |
STOP_TIMEOUT
|
Constructor Summary | |
ServerTable()
Construct table to manager server references. |
Method Summary | |
private Remote |
checkRegistration(String service_name,
Vector old_servers)
Check for completion of new server registration. |
Vector |
getAllServers(String service_name)
Get getAllServers |
Remote |
getNextServer(String service_name,
Remote server)
Get next server reference. |
Remote |
getServer(String service_name)
Get server reference. |
Remote |
getServer(String service_name,
Remote server)
Get a specific server reference if it is registered. |
int |
getServiceInstances(String service_name)
|
private void |
installServerSelector(String service_name)
|
void |
registerServer(String service_name,
Remote server)
Register a new server reference. |
private void |
registerServerJmxCallback(String service_name,
Remote server)
|
void |
removeAll()
Remove all server references from the table. |
void |
removeServer(String service_name,
Remote server)
Remove a server reference from the table. |
void |
removeServer(String service_name,
Remote server,
Exception report_exception)
Remove a server reference from the table. |
private void |
removeServerJmxCallback(String service_name,
Remote server,
Exception report_exception)
|
Remote |
waitForServer(String service_name,
int timeout_sec,
Vector old_servers)
Block the current thread waiting for a given server to register. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int STOP_TIMEOUT
private static final String SERVER_MANAGER_JMX_HOOK_CLASSNAME
private static final Method ON_REGISTER_SERVER_JMX_CB
private static final Method ON_REMOVE_SERVER_JMX_CB
private static WTProperties props
public static final Object REMOVE_LOCK
private Hashtable serverTable
private Hashtable serviceInstances
Constructor Detail |
public ServerTable()
Method Detail |
public int getServiceInstances(String service_name) throws RemoteException
RemoteException
private void installServerSelector(String service_name) throws RemoteException
RemoteException
public void registerServer(String service_name, Remote server) throws RemoteException
service_name
- name of the serviceserver
- reference to a Remote
server object
RemoteException
private void registerServerJmxCallback(String service_name, Remote server)
public Remote getServer(String service_name) throws RemoteException
service_name
- name of the service
RemoteException
public Remote getNextServer(String service_name, Remote server) throws RemoteException
service_name
- name of the serviceserver
- previous server
RemoteException
public Vector getAllServers(String service_name) throws RemoteException
service_name
- name of the service
RemoteException
public Remote getServer(String service_name, Remote server) throws RemoteException
service_name
- name of the serviceserver
- desired server
RemoteException
public void removeServer(String service_name, Remote server, Exception report_exception) throws RemoteException
ManagedServer
will be stopped
by an asynchronous thread as a result of being removed from the table.
Internal servers (those that are running in this VM) are not removed.
service_name
- name of the serviceserver
- reference to a Remote
server objectreport_exception
- client reported exception to be displayed when removing this server
RemoteException
private void removeServerJmxCallback(String service_name, Remote server, Exception report_exception)
public void removeServer(String service_name, Remote server) throws RemoteException
ManagedServer
will be stopped
by an asynchronous thread as a result of being removed from the table.
Internal servers (those that are running in this VM) are not removed.
service_name
- name of the serviceserver
- reference to a Remote
server object
RemoteException
public void removeAll() throws RemoteException
RemoteException
public Remote waitForServer(String service_name, int timeout_sec, Vector old_servers) throws InterruptedException, RemoteException
service_name
- the service nametimeout_sec
- number of seconds to waitold_servers
- vector of existing servers to overlook
InterruptedException
RemoteException
private Remote checkRegistration(String service_name, Vector old_servers) throws RemoteException
service_name
- the service nameold_servers
- vector of existing servers to overlook
RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |