|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrockit.mc.rjmx.ConnectionManager
public final class ConnectionManager
This is the default implementation of the IConnectionManager. This
class is used to control the life cycle of the default implementation of
IConnectionHandles. It is used to connect
IConnectionDescriptors to an end point of communication. The
corresponding IConnectionHandle can then be used to access various
services.
| Constructor Summary | |
|---|---|
ConnectionManager()
|
|
| Method Summary | |
|---|---|
void |
addConnectionHandleStateListener(IConnectionHandleStateListener listener,
IConnectionHandleFilter filter)
Registers a listener for changes to IConnectionHandles. |
IConnectionHandle |
connect(IConnectionDescriptor descriptor)
Connect using the IConnectionDescriptor |
IConnectionHandle |
disconnect(IConnectionHandle handle)
Disconnects a IConnectionHandle |
IConnectionHandle[] |
getConnections()
Returns all available IConnectionHandle |
IConnectionHandle[] |
getConnections(IConnectionDescriptor descriptor)
Returns all connection for a given IConnectionDescriptor |
IPasswordProvider |
getPasswordProvider()
The password provider. |
IConnectionHandle |
innerConnect(IConnectionDescriptor descriptor)
|
void |
removeConnectionHandleStateListener(IConnectionHandleStateListener listener)
Removes the specified listener. |
void |
setPasswordProvider(IPasswordProvider provider)
Sets the password provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionManager()
| Method Detail |
|---|
public IConnectionHandle connect(IConnectionDescriptor descriptor)
throws ConnectionException
IConnectionManagerIConnectionDescriptor
connect in interface IConnectionManagerdescriptor - the descriptor
ConnectionException - if a connection could not be established
public IConnectionHandle innerConnect(IConnectionDescriptor descriptor)
throws java.lang.Exception
java.lang.Exception
public IConnectionHandle disconnect(IConnectionHandle handle)
throws ConnectionException
IConnectionManagerIConnectionHandle
disconnect in interface IConnectionManagerhandle - the connection to disconnect
ConnectionException - if the connection could not be disconnectedpublic IConnectionHandle[] getConnections()
IConnectionManagerIConnectionHandle
getConnections in interface IConnectionManagerIConnectionHandles
public void addConnectionHandleStateListener(IConnectionHandleStateListener listener,
IConnectionHandleFilter filter)
IConnectionManagerIConnectionHandles.
addConnectionHandleStateListener in interface IConnectionManagerlistener - the listener to register.filter - the filter to decide for which IConnectionHandles to
to notify the listener. May be null, which means notifications
will be triggered by all IConnectionHandles.public void removeConnectionHandleStateListener(IConnectionHandleStateListener listener)
IConnectionManager
removeConnectionHandleStateListener in interface IConnectionManagerlistener - the listener to remove.public IConnectionHandle[] getConnections(IConnectionDescriptor descriptor)
IConnectionManagerIConnectionDescriptor
getConnections in interface IConnectionManagerIConnectionDescriptorpublic void setPasswordProvider(IPasswordProvider provider)
provider - the password provider to use.public IPasswordProvider getPasswordProvider()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||