|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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
IConnectionHandle
s. It is used to connect
IConnectionDescriptor
s 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 IConnectionHandle s. |
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
IConnectionManager
IConnectionDescriptor
connect
in interface IConnectionManager
descriptor
- the descriptor
ConnectionException
- if a connection could not be establishedpublic IConnectionHandle innerConnect(IConnectionDescriptor descriptor) throws java.lang.Exception
java.lang.Exception
public IConnectionHandle disconnect(IConnectionHandle handle) throws ConnectionException
IConnectionManager
IConnectionHandle
disconnect
in interface IConnectionManager
handle
- the connection to disconnect
ConnectionException
- if the connection could not be disconnectedpublic IConnectionHandle[] getConnections()
IConnectionManager
IConnectionHandle
getConnections
in interface IConnectionManager
IConnectionHandle
spublic void addConnectionHandleStateListener(IConnectionHandleStateListener listener, IConnectionHandleFilter filter)
IConnectionManager
IConnectionHandle
s.
addConnectionHandleStateListener
in interface IConnectionManager
listener
- the listener to register.filter
- the filter to decide for which IConnectionHandle
s 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 IConnectionManager
listener
- the listener to remove.public IConnectionHandle[] getConnections(IConnectionDescriptor descriptor)
IConnectionManager
IConnectionDescriptor
getConnections
in interface IConnectionManager
IConnectionDescriptor
public 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 |