|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl
public class ServerSynchroMessageConnectionImpl
| Constructor Summary | |
|---|---|
ServerSynchroMessageConnectionImpl(MessageConnection mc,
Map env)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes this connection. |
void |
connect(Map env)
Establish the connection. |
MessageConnection |
getAsynchroConnection()
Returns the underlying asynchronous trasport. |
String |
getConnectionId()
Returns this connection identifier. |
Subject |
getSubject()
Returns a connection-specific subject used for authorization. |
void |
sendOneWay(Message msg)
Sends a message to the remote side and does not need a response. |
void |
setCallback(SynchroCallback cb)
Sets a callback to receive a remote request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerSynchroMessageConnectionImpl(MessageConnection mc,
Map env)
throws IOException
IOException| Method Detail |
|---|
public void connect(Map env)
throws IOException
SynchroMessageConnectionEstablish the connection. This method must be called before any other method of this interface. The behavior is unspecified if not.
connect in interface SynchroMessageConnectionenv - the properties of the connection.
IOException - if the connection cannot be made.
public void sendOneWay(Message msg)
throws IOException
SynchroMessageConnection1) sends out the message and gets return at once. For example, if the underlying protocol is asynchronous.
2) sends out the message and is blocked until arrival of a response. For example, if the underlying protocol supports only synchronous communication.
3) throws UnsupportedOperationException to tell the caller
that it is not supported by the implementation. For example, if the object is used
on a server side and it is not mandatory for the server to send a request spontaneously.
sendOneWay in interface SynchroMessageConnectionIOException - if a message could not be sent because of a communication problem.public void setCallback(SynchroCallback cb)
ServerSynchroMessageConnection
setCallback in interface ServerSynchroMessageConnectioncb - a callback used to treat a remote request.public String getConnectionId()
SynchroMessageConnection
getConnectionId in interface SynchroMessageConnection
public void close()
throws IOException
SynchroMessageConnection
close in interface SynchroMessageConnectionIOExceptionpublic MessageConnection getAsynchroConnection()
public Subject getSubject()
ServerSynchroMessageConnection
getSubject in interface ServerSynchroMessageConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||