|
|||||||||||
| 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.huihoo.jfox.ms.crb.rmi.RMILinkServer
Defines the methods that can be called by a client on the server.
| Field Summary |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
RMILinkServer(Interceptor s,
int RMIPort)
Constructor for the RMILinkServer object |
|
| Method Summary | |
boolean |
authenticate(java.lang.String userName,
java.lang.String password)
Authenticate the user. |
javax.jms.Message[] |
browse(javax.jms.Destination destination,
java.lang.String selector)
Browse message on given destination |
void |
checkID(java.lang.String ID)
Check if clientID is a valid ID |
LinkServer |
cloneLinkServer()
|
void |
closeConnection()
not finished |
javax.jms.Queue |
createQueue(java.lang.String destination)
Create a queue identity |
javax.jms.TemporaryQueue |
createTemporaryQueue()
Gets the TemporaryQueue |
javax.jms.TemporaryTopic |
createTemporaryTopic()
Gets the TemporaryTopic |
javax.jms.Topic |
createTopic(java.lang.String destination)
Create a topic identity |
void |
deleteTemporaryDestination(javax.jms.Destination destination)
Delete a temporary destination from server |
java.lang.String |
getID()
Get a clientID from the server. |
static void |
main(java.lang.String[] args)
only for test |
javax.jms.Message |
receiveMessage(javax.jms.Destination destination,
long wait)
Receive a message synchronously. |
void |
removeSubscriber()
Remove a subcriber. |
void |
sendMessage(javax.jms.Message message)
Send a message to the destination specifyed in the message. |
| 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 |
public RMILinkServer(Interceptor s,
int RMIPort)
throws java.rmi.RemoteException
| Method Detail |
public LinkServer cloneLinkServer()
throws java.lang.Exception
cloneLinkServer in interface LinkServerjava.lang.Exception
public java.lang.String getID()
throws java.lang.Exception
getID in interface LinkServerjava.lang.Exception
public javax.jms.TemporaryTopic createTemporaryTopic()
throws java.lang.Exception
createTemporaryTopic in interface LinkServerjava.lang.Exception
public javax.jms.TemporaryQueue createTemporaryQueue()
throws java.lang.Exception
createTemporaryQueue in interface LinkServerjava.lang.Exception
public void closeConnection()
throws javax.jms.JMSException
closeConnection in interface LinkServerjavax.jms.JMSException - Description of Exception
public void checkID(java.lang.String ID)
throws java.lang.Exception
checkID in interface LinkServerjava.lang.Exception
public void sendMessage(javax.jms.Message message)
throws java.lang.Exception
sendMessage in interface LinkServerjava.lang.Exception
public javax.jms.Queue createQueue(java.lang.String destination)
throws java.lang.Exception
createQueue in interface LinkServerjava.lang.Exception
public javax.jms.Topic createTopic(java.lang.String destination)
throws java.lang.Exception
createTopic in interface LinkServerdestination -
java.lang.Exception
public void deleteTemporaryDestination(javax.jms.Destination destination)
throws java.lang.Exception
deleteTemporaryDestination in interface LinkServerjava.lang.Exception
public javax.jms.Message[] browse(javax.jms.Destination destination,
java.lang.String selector)
throws java.lang.Exception
browse in interface LinkServerjava.lang.Exception
public javax.jms.Message receiveMessage(javax.jms.Destination destination,
long wait)
throws java.lang.Exception
receiveMessage in interface LinkServerjava.lang.Exception
public void removeSubscriber()
throws java.lang.Exception
java.lang.Exception - Description of Exception
public boolean authenticate(java.lang.String userName,
java.lang.String password)
throws java.lang.Exception
authenticate in interface LinkServerjava.lang.Exceptionpublic static void main(java.lang.String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||