|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A ConnectionManager is a server-side object that acts as the factory for new connections and manages the authentication details. A JMXConnectorServer delegates a ConnectionManager for the creation of connections, and a ConnectionManager interacts with the JMXConnectorServer to emit connection notifications. It is the first object contacted by a remote client to obtain a client-specific connection, that is, a connection with a specific connection ID.
| Method Summary | |
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. |
| Method Detail |
public 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.public java.lang.String getProtocol()
public void close()
throws java.io.IOException
java.io.IOExceptioncloseConnection(mx4j.tools.remote.Connection)
public void closeConnection(Connection connection)
throws java.io.IOException
java.io.IOExceptionConnection.close(),
close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||