|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--jrun.jms.core.server.rmi.RmiJmsServerConnection
This is an implementation of the RemoteJmsServerConnectionIfc interface which wraps the JmsConnection class. It basically delegates to an instance of JmsConnection.
org.exolab.jms.server.JmsServerConnection, Serialized Form| Field Summary | |
protected JmsServerConnection |
delegate_
This is the object that the RMI connection object delegates too. |
protected int |
interval_
This is the interval, in milliseconds, between subsequent ping events |
protected BaseLease |
lease_
This is the lease on this object |
protected int |
m_port
|
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
RmiJmsServerConnection(JmsServerConnection connection,
int interval,
int port)
Instantiae an instance of this class with a JmsServerConnection instance. |
|
| Method Summary | |
void |
close()
Close all the sessions allocated to this collection. |
RemoteJmsServerSessionIfc |
createSession(int ackMode,
boolean transacted)
Create and return a sesion for this connection Assign the connection's clientId to the sessions. |
void |
deleteSession(RemoteJmsServerSessionIfc session)
Delete the specified session from the server. |
java.lang.String |
getConnectionId()
Retrieve the identity of this conection. |
protected Logger |
getLogger()
Return a reference to the logger |
protected int |
getPort()
|
int |
getSessionCount()
Return the number of session objects currently allocated to this connection. |
java.util.Enumeration |
getSessions()
Return an enumeration of RemoteJmsServerSessionIfc objects currently allocated to this session. |
void |
onSchedulableEvent(java.lang.Object eventContext,
int EventType)
This method is called whenever a schedulableEvent gets fired. |
void |
ping()
Send a ping to the server. |
void |
start()
Start all the sessions allocated to this connection. |
void |
stop()
Stop all the sessions allocated to this collection. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected JmsServerConnection delegate_
protected int interval_
protected int m_port
protected BaseLease lease_
| Constructor Detail |
public RmiJmsServerConnection(JmsServerConnection connection,
int interval,
int port)
throws javax.jms.JMSException,
java.rmi.RemoteException
connection - delegate connection object
2param interval the interval for ping requestsJMSException - java.rmi.RemoteException - | Method Detail |
public RemoteJmsServerSessionIfc createSession(int ackMode,
boolean transacted)
throws javax.jms.JMSException,
java.rmi.RemoteException
RemoteJmsServerConnectionIfcThe created session represents an endpoint with the JmsServer where you can create consumers, producers and destinations. If there is an error creating the session then RemoteException is thrown
createSession in interface RemoteJmsServerConnectionIfcjrun.jms.core.server.rmi.RemoteJmsServerConnectionIfcackMode - the ack mode for the sessionJMSException - java.rmi.RemoteException -
public void deleteSession(RemoteJmsServerSessionIfc session)
throws javax.jms.JMSException,
java.rmi.RemoteException
RemoteJmsServerConnectionIfcIf there is a problem completing this request then throw RemoteException exception
deleteSession in interface RemoteJmsServerConnectionIfcjrun.jms.core.server.rmi.RemoteJmsServerConnectionIfcsession - session to deleteJMSException - java.rmi.RemoteException -
public int getSessionCount()
throws javax.jms.JMSException,
java.rmi.RemoteException
RemoteJmsServerConnectionIfcIf there is a problem completing this request then throw RemoteException exception
getSessionCount in interface RemoteJmsServerConnectionIfcjrun.jms.core.server.rmi.RemoteJmsServerConnectionIfcJMSException - java.rmi.RemoteException -
public java.util.Enumeration getSessions()
throws javax.jms.JMSException,
java.rmi.RemoteException
RemoteJmsServerConnectionIfcIf there is a problem completing this request then throw RemoteException exception
getSessions in interface RemoteJmsServerConnectionIfcjrun.jms.core.server.rmi.RemoteJmsServerConnectionIfcJMSException - java.rmi.RemoteException -
public void start()
throws javax.jms.JMSException,
java.rmi.RemoteException
RemoteJmsServerConnectionIfcIf there is a problem completing this request then throw RemoteException exception
start in interface RemoteJmsServerConnectionIfcjrun.jms.core.server.rmi.RemoteJmsServerConnectionIfcJMSException - java.rmi.RemoteException -
public void stop()
throws javax.jms.JMSException,
java.rmi.RemoteException
RemoteJmsServerConnectionIfcIf there is a problem completing this request then throw RemoteException exception
stop in interface RemoteJmsServerConnectionIfcjrun.jms.core.server.rmi.RemoteJmsServerConnectionIfcJMSException - java.rmi.RemoteException -
public void close()
throws javax.jms.JMSException,
java.rmi.RemoteException
RemoteJmsServerConnectionIfcIf there is a problem completing this request then throw RemoteException exception
close in interface RemoteJmsServerConnectionIfcjrun.jms.core.server.rmi.RemoteJmsServerConnectionIfcJMSException - java.rmi.RemoteException -
public java.lang.String getConnectionId()
throws java.rmi.RemoteException
RemoteJmsServerConnectionIfcgetConnectionId in interface RemoteJmsServerConnectionIfcjrun.jms.core.server.rmi.RemoteJmsServerConnectionIfcjava.rmi.RemoteException -
public void ping()
throws java.rmi.RemoteException
RemoteJmsServerConnectionIfcping in interface RemoteJmsServerConnectionIfcjrun.jms.core.server.rmi.RemoteJmsServerConnectionIfcjava.rmi.RemoteException -
public void onSchedulableEvent(java.lang.Object eventContext,
int EventType)
SchedulableEventListeneronSchedulableEvent in interface SchedulableEventListenerprotected int getPort()
protected Logger getLogger()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||