org.jboss.mq.il.rmi
Class RMIServerIL

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byorg.jboss.mq.il.rmi.RMIServerIL
All Implemented Interfaces:
java.rmi.Remote, RMIServerILRemote (src) , java.io.Serializable, ServerIL (src)

public class RMIServerIL
extends java.rmi.server.UnicastRemoteObject
implements RMIServerILRemote (src)

The JVM implementation of the ServerIL object

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RMIServerIL(Invoker (src)  s)
          Constructor for the RMIServerIL object
 
Method Summary
 void acknowledge(ConnectionToken (src)  dc, AcknowledgementRequest (src)  item)
          #Description of the Method
 void addMessage(ConnectionToken (src)  dc, SpyMessage (src)  val)
          Adds a feature to the Message attribute of the RMIServerIL object
 java.lang.String authenticate(java.lang.String userName, java.lang.String password)
          Authenticate the user.
 SpyMessage (src) [] browse(ConnectionToken (src)  dc, Destination (src)  dest, java.lang.String selector)
          #Description of the Method
 void checkID(java.lang.String ID)
          #Description of the Method
 java.lang.String checkUser(java.lang.String userName, java.lang.String password)
          #Description of the Method
 ServerIL (src) cloneServerIL()
          No need to clone because there are no instance variables tha can get clobbered.
 void connectionClosing(ConnectionToken (src)  dc)
          #Description of the Method
 Queue (src) createQueue(ConnectionToken (src)  dc, java.lang.String dest)
          #Description of the Method
 Topic (src) createTopic(ConnectionToken (src)  dc, java.lang.String dest)
          #Description of the Method
 void deleteTemporaryDestination(ConnectionToken (src)  dc, SpyDestination (src)  dest)
          #Description of the Method
 void destroySubscription(ConnectionToken (src)  dc, DurableSubscriptionID (src)  id)
          #Description of the Method
 java.lang.String getID()
          Gets the ID attribute of the RMIServerIL object
 TemporaryQueue (src) getTemporaryQueue(ConnectionToken (src)  dc)
          Gets the TemporaryQueue attribute of the RMIServerIL object
 TemporaryTopic (src) getTemporaryTopic(ConnectionToken (src)  dc)
          Gets the TemporaryTopic attribute of the RMIServerIL object
 void ping(ConnectionToken (src)  dc, long clientTime)
          #Description of the Method
 SpyMessage (src) receive(ConnectionToken (src)  dc, int subscriberId, long wait)
          #Description of the Method
 void setConnectionToken(ConnectionToken (src)  newConnectionToken)
          Sets the ConnectionToken attribute of the RMIServerIL object
 void setEnabled(ConnectionToken (src)  dc, boolean enabled)
          Sets the Enabled attribute of the RMIServerIL object
 void subscribe(ConnectionToken (src)  dc, Subscription (src)  s)
          #Description of the Method
 void transact(ConnectionToken (src)  dc, TransactionRequest (src)  t)
          #Description of the Method
 void unsubscribe(ConnectionToken (src)  dc, int subscriptionId)
          #Description of the Method
 
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
 

Constructor Detail

RMIServerIL

public RMIServerIL(Invoker (src)  s)
            throws java.rmi.RemoteException
Constructor for the RMIServerIL object

Parameters:
s - Description of Parameter
Throws:
java.rmi.RemoteException - Description of Exception
Method Detail

setConnectionToken

public void setConnectionToken(ConnectionToken (src)  newConnectionToken)
Sets the ConnectionToken attribute of the RMIServerIL object

Specified by:
setConnectionToken in interface ServerIL (src)
Parameters:
newConnectionToken - The new ConnectionToken value

setEnabled

public void setEnabled(ConnectionToken (src)  dc,
                       boolean enabled)
                throws java.lang.Exception
Sets the Enabled attribute of the RMIServerIL object

Specified by:
setEnabled in interface ServerIL (src)
Parameters:
dc - The new Enabled value
enabled - The new Enabled value
Throws:
java.lang.Exception - Description of Exception

getID

public java.lang.String getID()
                       throws JMSException (src) 
Gets the ID attribute of the RMIServerIL object

Specified by:
getID in interface ServerIL (src)
Returns:
The ID value
Throws:
JMSException (src) - Description of Exception

getTemporaryQueue

public TemporaryQueue (src)  getTemporaryQueue(ConnectionToken (src)  dc)
                                 throws JMSException (src) 
Gets the TemporaryQueue attribute of the RMIServerIL object

Specified by:
getTemporaryQueue in interface ServerIL (src)
Parameters:
dc - Description of Parameter
Returns:
The TemporaryQueue value
Throws:
JMSException (src) - Description of Exception

getTemporaryTopic

public TemporaryTopic (src)  getTemporaryTopic(ConnectionToken (src)  dc)
                                 throws JMSException (src) 
Gets the TemporaryTopic attribute of the RMIServerIL object

Specified by:
getTemporaryTopic in interface ServerIL (src)
Parameters:
dc - Description of Parameter
Returns:
The TemporaryTopic value
Throws:
JMSException (src) - Description of Exception

cloneServerIL

public ServerIL (src)  cloneServerIL()
No need to clone because there are no instance variables tha can get clobbered. All Multiple connections can share the same JVMServerIL object

Specified by:
cloneServerIL in interface ServerIL (src)
Returns:
Description of the Returned Value

addMessage

public void addMessage(ConnectionToken (src)  dc,
                       SpyMessage (src)  val)
                throws JMSException (src) 
Adds a feature to the Message attribute of the RMIServerIL object

Specified by:
addMessage in interface ServerIL (src)
Parameters:
dc - The feature to be added to the Message attribute
val - The feature to be added to the Message attribute
Throws:
JMSException (src) - Description of Exception

createTopic

public Topic (src)  createTopic(ConnectionToken (src)  dc,
                         java.lang.String dest)
                  throws JMSException (src) 
#Description of the Method

Specified by:
createTopic in interface ServerIL (src)
Parameters:
dc - Description of Parameter
dest - Description of Parameter
Returns:
Description of the Returned Value
Throws:
JMSException (src) - Description of Exception

createQueue

public Queue (src)  createQueue(ConnectionToken (src)  dc,
                         java.lang.String dest)
                  throws JMSException (src) 
#Description of the Method

Specified by:
createQueue in interface ServerIL (src)
Parameters:
dc - Description of Parameter
dest - Description of Parameter
Returns:
Description of the Returned Value
Throws:
JMSException (src) - Description of Exception

deleteTemporaryDestination

public void deleteTemporaryDestination(ConnectionToken (src)  dc,
                                       SpyDestination (src)  dest)
                                throws JMSException (src) 
#Description of the Method

Specified by:
deleteTemporaryDestination in interface ServerIL (src)
Parameters:
dc - Description of Parameter
dest - Description of Parameter
Throws:
JMSException (src) - Description of Exception

checkID

public void checkID(java.lang.String ID)
             throws JMSException (src) 
#Description of the Method

Specified by:
checkID in interface ServerIL (src)
Parameters:
ID - Description of Parameter
Throws:
JMSException (src) - Description of Exception

connectionClosing

public void connectionClosing(ConnectionToken (src)  dc)
                       throws JMSException (src) 
#Description of the Method

Specified by:
connectionClosing in interface ServerIL (src)
Parameters:
dc - Description of Parameter
Throws:
JMSException (src) - Description of Exception

acknowledge

public void acknowledge(ConnectionToken (src)  dc,
                        AcknowledgementRequest (src)  item)
                 throws java.lang.Exception,
                        java.rmi.RemoteException
#Description of the Method

Specified by:
acknowledge in interface ServerIL (src)
Parameters:
dc - Description of Parameter
item - Description of Parameter
Throws:
java.lang.Exception - Description of Exception
java.rmi.RemoteException - Description of Exception

browse

public SpyMessage (src) [] browse(ConnectionToken (src)  dc,
                           Destination (src)  dest,
                           java.lang.String selector)
                    throws java.lang.Exception
#Description of the Method

Specified by:
browse in interface ServerIL (src)
Parameters:
dc - Description of Parameter
dest - Description of Parameter
selector - Description of Parameter
Returns:
Description of the Returned Value
Throws:
java.lang.Exception - Description of Exception

receive

public SpyMessage (src)  receive(ConnectionToken (src)  dc,
                          int subscriberId,
                          long wait)
                   throws java.lang.Exception
#Description of the Method

Specified by:
receive in interface ServerIL (src)
Parameters:
dc - Description of Parameter
subscriberId - Description of Parameter
wait - Description of Parameter
Returns:
Description of the Returned Value
Throws:
java.lang.Exception - Description of Exception

unsubscribe

public void unsubscribe(ConnectionToken (src)  dc,
                        int subscriptionId)
                 throws java.lang.Exception
#Description of the Method

Specified by:
unsubscribe in interface ServerIL (src)
Parameters:
dc - Description of Parameter
subscriptionId - Description of Parameter
Throws:
java.lang.Exception - Description of Exception

destroySubscription

public void destroySubscription(ConnectionToken (src)  dc,
                                DurableSubscriptionID (src)  id)
                         throws java.lang.Exception
#Description of the Method

Specified by:
destroySubscription in interface ServerIL (src)
Parameters:
id - Description of Parameter
Throws:
java.lang.Exception - Description of Exception

checkUser

public java.lang.String checkUser(java.lang.String userName,
                                  java.lang.String password)
                           throws JMSException (src) 
#Description of the Method

Specified by:
checkUser in interface ServerIL (src)
Parameters:
userName - Description of Parameter
password - Description of Parameter
Returns:
Description of the Returned Value
Throws:
JMSException (src) - Description of Exception

authenticate

public java.lang.String authenticate(java.lang.String userName,
                                     java.lang.String password)
                              throws JMSException (src) 
Description copied from interface: ServerIL (src)
Authenticate the user. If using a securityManager the user will be autenticated by that.

Specified by:
authenticate in interface ServerIL (src)
Parameters:
userName - a username.
password - a password.
Returns:
a sessionid, valid only for the life of this connection.
Throws:
JMSException (src)

subscribe

public void subscribe(ConnectionToken (src)  dc,
                      Subscription (src)  s)
               throws java.lang.Exception
#Description of the Method

Specified by:
subscribe in interface ServerIL (src)
Parameters:
dc - Description of Parameter
s - Description of Parameter
Throws:
java.lang.Exception - Description of Exception

transact

public void transact(ConnectionToken (src)  dc,
                     TransactionRequest (src)  t)
              throws JMSException (src) 
#Description of the Method

Specified by:
transact in interface ServerIL (src)
Parameters:
dc - Description of Parameter
t - Description of Parameter
Throws:
JMSException (src) - Description of Exception

ping

public void ping(ConnectionToken (src)  dc,
                 long clientTime)
          throws JMSException (src) 
#Description of the Method

Specified by:
ping in interface ServerIL (src)
Parameters:
dc - Description of Parameter
clientTime - Description of Parameter
Throws:
JMSException (src) - Description of Exception