|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.sun.slamd.server.ClientManagerListener
This class defines a thread that will listen for connections from client managers.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
ClientManagerListener(SLAMDServer slamdServer)
Creates a new listener that will listen for connections from client managers. |
|
| Method Summary | |
void |
clientConnectionLost(ClientConnection clientConnection)
Indicates that the specified client has disconnected from the SLAMD server and that the client managers should be polled to determine if that client might have been associated with a client manager. |
void |
connectionLost(ClientManagerConnection clientManagerConnection)
Indicates that the connection to the provided client manager has been lost and that it should be removed from the list of available client managers. |
ClientManagerConnection |
getClientManager(java.lang.String clientID)
Retrieves a connection to the requested client manager. |
ClientManagerConnection[] |
getClientManagers()
Retrieves the list of client manager connections associated with the client managers that have connected to the SLAMD server. |
int |
getMaxResponseWaitTime()
Retrieves the maximum length of time in seconds that the SLAMD server will wait for a response to a request issued to a client manager. |
java.lang.String |
getSubscriberName()
Retrieves the name that the client manager listener uses to subscribe to the configuration handler in order to be notified of configuration changes. |
ParameterList |
getSubscriberParameters()
Retrieves the set of configuration parameters associated with this configuration subscriber. |
void |
refreshSubscriberConfiguration()
Re-reads all configuration information used by the client listener manager. |
void |
refreshSubscriberConfiguration(java.lang.String parameterName)
Re-reads the configuration for the specified parameter if the parameter is applicable to the client manager listener. |
void |
run()
Creates the server socket that will be used to accept new connections, then listens for new connections until the SLAMD server is shut down. |
void |
startListening()
Indicates that the listener should start listening for client manager connections. |
void |
stopListening()
Indicates that the listener should stop listening for client connections. |
void |
waitForStop()
This method will not return until the listener has actually stopped. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ClientManagerListener(SLAMDServer slamdServer)
slamdServer - The SLAMD server with which this client manager
listener is associated.| Method Detail |
public void run()
run in interface java.lang.Runnablepublic void startListening()
public void stopListening()
public void waitForStop()
stopListening method to signal the listener that it needs to
stop.
public ClientManagerConnection[] getClientManagers()
public ClientManagerConnection getClientManager(java.lang.String clientID)
clientID - The client ID associated with the client manager for
which to retrieve the connection.
null if
no client manager is connected with the specified client ID.public void connectionLost(ClientManagerConnection clientManagerConnection)
clientManagerConnection - The client manager to which the connection
was lost.public void clientConnectionLost(ClientConnection clientConnection)
clientConnection - The client connection that has disconnected from
the SLAMD server.public int getMaxResponseWaitTime()
public java.lang.String getSubscriberName()
getSubscriberName in interface ConfigSubscriberpublic ParameterList getSubscriberParameters()
getSubscriberParameters in interface ConfigSubscriber
public void refreshSubscriberConfiguration()
throws SLAMDServerException
refreshSubscriberConfiguration in interface ConfigSubscriberSLAMDServerException - If there is a problem reading or applying
the changes.
public void refreshSubscriberConfiguration(java.lang.String parameterName)
throws SLAMDServerException
refreshSubscriberConfiguration in interface ConfigSubscriberparameterName - The name of the parameter for which to reread the
configuration.
SLAMDServerException - If there is a problem reading or applying
the specified change.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||