|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.exolab.jms.server.rmi.RmiJmsServerConnection
public class RmiJmsServerConnection
This is an implementation of the RemoteJmsServerConnectionIfc interface which wraps the JmsConnection class. It basically delegates to an instance of JmsConnection.
JmsServerConnection,
Serialized Form| Field Summary | |
|---|---|
protected JmsServerConnection |
_delegate
This is the object that the RMI connection object delegates to. |
protected int |
_interval
The interval, in milliseconds, between subsequent ping events |
protected BaseLease |
_lease
This is the lease on this object. |
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
RmiJmsServerConnection(JmsServerConnection connection,
int interval)
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. |
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 |
onLeaseExpired(java.lang.Object leasedObject)
This method is called whenever a lease expires. |
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 BaseLease _lease
JmsServerSession#isClientEndpointActive
| Constructor Detail |
|---|
public RmiJmsServerConnection(JmsServerConnection connection,
int interval)
throws java.rmi.RemoteException
connection - delegate connection objectinterval - the interval between ping requests, in seconds
java.rmi.RemoteException - if failed to export object| 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 RemoteJmsServerConnectionIfcackMode - the ack mode for the session
javax.jms.JMSException
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 RemoteJmsServerConnectionIfcsession - session to delete
javax.jms.JMSException
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 RemoteJmsServerConnectionIfcjavax.jms.JMSException
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 RemoteJmsServerConnectionIfcjavax.jms.JMSException
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 RemoteJmsServerConnectionIfcjavax.jms.JMSException
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 RemoteJmsServerConnectionIfcjavax.jms.JMSException
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 RemoteJmsServerConnectionIfcjavax.jms.JMSException
java.rmi.RemoteException
public java.lang.String getConnectionId()
throws java.rmi.RemoteException
RemoteJmsServerConnectionIfc
getConnectionId in interface RemoteJmsServerConnectionIfcjava.rmi.RemoteException
public void ping()
throws java.rmi.RemoteException
RemoteJmsServerConnectionIfc
ping in interface RemoteJmsServerConnectionIfcjava.rmi.RemoteExceptionpublic void onLeaseExpired(java.lang.Object leasedObject)
LeaseEventListenerIfc
onLeaseExpired in interface LeaseEventListenerIfcleasedObject - reference to the leased object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||