public final class AgentSessionImpl extends RMIJRMPServerImpl implements AgentSession, Unreferenced
Provides controlled access to the creation of a
RMIConnection
to a remote
MBeanServer
.
Session.ConnectionMode
Modifier and Type | Method and Description |
---|---|
void |
close()
Hides the IOException.
|
Session.ConnectionMode |
getConnectionMode()
Gets the connection mode.
|
void |
login(String identifier,
char[] password)
Identifies and authenticates the identity associated with the Session.
|
void |
logout()
Logs out.
|
RMIConnection |
newClient(Object credentials) |
void |
unreferenced() |
closeClient, closeServer, export, getProtocol, makeClient, toStub
clientClosed, getDefaultClassLoader, getMBeanServer, getVersion, setDefaultClassLoader, setMBeanServer
public void close()
Hides the IOException.
close
in interface Closeable
close
in interface AutoCloseable
public Session.ConnectionMode getConnectionMode()
This method may be called before or after Session.login(java.lang.String, char[])
.
getConnectionMode
in interface Session
public void login(String identifier, char[] password) throws SessionException
login
in interface Session
identifier
- The identifier for the identity.password
- The password authenticating the identity.SessionException
- From the session implementation.public RMIConnection newClient(Object credentials) throws IOException
newClient
in interface RMIServer
newClient
in class RMIServerImpl
IOException
public void unreferenced()
unreferenced
in interface Unreferenced
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.