public interface ConnectionManager
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this ConnectionManager and all the opened connections it manages.
|
void |
closeConnection(Connection connection)
Closes the given Connection.
|
Connection |
connect(java.lang.Object credentials)
Factory method that creates connections that are specific to the client that invoked this method.
|
java.lang.String |
getProtocol()
Returns the protocol used by the corrispondent JMXConnectorServer.
|
Connection connect(java.lang.Object credentials) throws java.io.IOException, java.lang.SecurityException
credentials
- The credentials sent by the client to authenticate a subject.java.io.IOException
- If the connection cannot be created.java.lang.SecurityException
- If the authentication fails.java.lang.String getProtocol()
void close() throws java.io.IOException
java.io.IOException
closeConnection(mx4j.tools.remote.Connection)
void closeConnection(Connection connection) throws java.io.IOException
java.io.IOException
Connection.close()
,
close()