|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrun.jms.core.client.mipc.IpcJmsServerStub
This class is repsonsible for opening an ipc connection to the server and creating IpcJmsConnections.
This is a singleton class.
org.exolab.jms.client.mipc.IpcJmsConnectionStub,
org.exolab.core.mipc.DisconnectionEventListener| Constructor Summary | |
IpcJmsServerStub()
Default constructor for serialization |
|
IpcJmsServerStub(java.util.Hashtable env)
The constructor has a collection of environment variables which it uses to construct a connection to the remote server |
|
IpcJmsServerStub(java.lang.String host,
int port)
Instantiate an instance of this stub with the specified host and port numbers |
|
| Method Summary | |
protected MultiplexConnectionIfc |
createClientConnection(java.lang.String serverAddress,
java.lang.String internalServerAddress,
int port)
Create a multiplexed connection to the server |
JmsConnectionStubIfc |
createConnection(java.lang.String clientId)
Create a connection to the JMS Server. |
JmsConnectionStubIfc |
createConnection(java.lang.String clientId,
java.lang.String userName,
java.lang.String password)
Create a connection to the JMS Server. |
void |
disconnected(MultiplexConnectionIfc connection)
A multiplex connection has been terminated. |
protected Logger |
getLogger()
Return a reference to the logger. |
java.lang.String |
getServerAddress()
Return a refernece to the server host |
int |
getServerPort()
Return a reference ot the server port. |
void |
setExceptionListener(javax.jms.ExceptionListener listener)
Set the exception listener so that the client can be notified of client disconnection events. |
void |
setServerAddress(java.lang.String host)
Set the server host. |
void |
setServerPort(int port)
Set the server port. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IpcJmsServerStub()
public IpcJmsServerStub(java.util.Hashtable env)
env -
public IpcJmsServerStub(java.lang.String host,
int port)
host - server host addressport - server port number| Method Detail |
public JmsConnectionStubIfc createConnection(java.lang.String clientId,
java.lang.String userName,
java.lang.String password)
throws javax.jms.JMSException
createConnection in interface JmsServerStubIfcid - identity of clientuserName - password - JMSException -
public JmsConnectionStubIfc createConnection(java.lang.String clientId)
throws javax.jms.JMSException
createConnection in interface JmsServerStubIfcid - identity of clientJMSException - public void setServerAddress(java.lang.String host)
host - name of the hostpublic java.lang.String getServerAddress()
public void setServerPort(int port)
port - port numberpublic int getServerPort()
public void disconnected(MultiplexConnectionIfc connection)
DisconnectionEventListenerdisconnected in interface DisconnectionEventListenerjrun.jms.core.kernel.mipc.DisconnectionEventListenerconnection - The terminated connectionpublic void setExceptionListener(javax.jms.ExceptionListener listener)
JmsServerStubIfcsetExceptionListener in interface JmsServerStubIfcjrun.jms.core.client.JmsServerStubIfclistener - the exception listenerprotected Logger getLogger()
protected MultiplexConnectionIfc createClientConnection(java.lang.String serverAddress,
java.lang.String internalServerAddress,
int port)
throws java.io.IOException,
java.lang.Exception
serverAddress - The address of the server.internalServerAddress - Internal server address if used.port - The port number to use.MultiplexConnectionIfc The created
connection.IOException - If the server fails to initialise the
ip service.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||