|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jlab.coda.cMsg.cMsgSubdomainAdapter
org.jlab.coda.cMsg.subdomains.Dummy
public class Dummy
This class is a subdomain which does nothing. It was used for finding a memory leak in the cMsg server.
Constructor Summary | |
---|---|
Dummy()
|
Method Summary | |
---|---|
void |
handleClientShutdown()
Method to handle a client or domain server down. |
void |
handleKeepAlive()
Method to handle keepalive sent by domain client checking to see if the domain server socket is still up. |
void |
handleSendAndGetRequest(cMsgMessageFull message)
Method to synchronously get a single message from a receiver by sending out a message to be responded to. |
void |
handleSendRequest(cMsgMessageFull message)
Method to handle message sent by domain client. |
void |
handleShutdownClientsRequest(java.lang.String client,
boolean includeMe)
Method to handle request to shutdown clients sent by domain client. |
void |
handleSubscribeAndGetRequest(java.lang.String subject,
java.lang.String type,
int id)
Method to synchronously get a single message from the server for a one-time subscription of a subject and type. |
void |
handleSubscribeRequest(java.lang.String subject,
java.lang.String type,
int id)
Method to handle subscribe request sent by domain client. |
int |
handleSyncSendRequest(cMsgMessageFull message)
Method to handle message sent by domain client in synchronous mode. |
void |
handleUnSendAndGetRequest(int id)
Method to handle remove sendAndGet request sent by domain client (hidden from user). |
void |
handleUnsubscribeAndGetRequest(java.lang.String subject,
java.lang.String type,
int id)
Method to handle remove subscribeAndGet request sent by domain client (hidden from user). |
void |
handleUnsubscribeRequest(java.lang.String subject,
java.lang.String type,
int id)
Method to handle unsubscribe request sent by domain client. |
boolean |
hasSend()
Method to tell if the "send" cMsg API function is implemented by this interface implementation in the handleSendRequest(org.jlab.coda.cMsg.cMsgMessageFull)
method. |
boolean |
hasSendAndGet()
Method to tell if the "sendAndGet" cMsg API function is implemented by this interface implementation in the handleSendAndGetRequest(org.jlab.coda.cMsg.cMsgMessageFull)
method. |
boolean |
hasShutdown()
Method to tell if the "shutdown" cMsg API function is implemented by this interface implementation in the handleShutdownClientsRequest(java.lang.String, boolean)
method. |
boolean |
hasSubscribe()
Method to tell if the "subscribe" cMsg API function is implemented by this interface implementation in the handleSubscribeRequest(java.lang.String, java.lang.String, int)
method. |
boolean |
hasSubscribeAndGet()
Method to tell if the "subscribeAndGet" cMsg API function is implemented by this interface implementation in the handleSubscribeAndGetRequest(java.lang.String, java.lang.String, int)
method. |
boolean |
hasSyncSend()
Method to tell if the "syncSend" cMsg API function is implemented by this interface implementation in the handleSyncSendRequest(org.jlab.coda.cMsg.cMsgMessageFull)
method. |
boolean |
hasUnsubscribe()
Method to tell if the "unsubscribe" cMsg API function is implemented by this interface implementation in the handleUnsubscribeRequest(java.lang.String, java.lang.String, int)
method. |
void |
registerClient(cMsgClientInfo info)
Method to register domain client. |
void |
setMessageDeliverer(cMsgDeliverMessageInterface deliverer)
Method to give the subdomain handler on object able to deliver messages to the client. |
void |
setUDLRemainder(java.lang.String UDLRemainder)
Method to give the subdomain handler the appropriate part of the UDL the client used to talk to the domain server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dummy()
Method Detail |
---|
public void setUDLRemainder(java.lang.String UDLRemainder)
setUDLRemainder
in interface cMsgSubdomainInterface
setUDLRemainder
in class cMsgSubdomainAdapter
UDLRemainder
- last part of the UDL appropriate to the subdomain handlerpublic void setMessageDeliverer(cMsgDeliverMessageInterface deliverer)
setMessageDeliverer
in interface cMsgSubdomainInterface
setMessageDeliverer
in class cMsgSubdomainAdapter
deliverer
- object able to deliver messages to the clientpublic void registerClient(cMsgClientInfo info)
registerClient
in interface cMsgSubdomainInterface
registerClient
in class cMsgSubdomainAdapter
info
- information about clientpublic void handleSendRequest(cMsgMessageFull message)
handleSendRequest
in interface cMsgSubdomainInterface
handleSendRequest
in class cMsgSubdomainAdapter
message
- message from senderpublic int handleSyncSendRequest(cMsgMessageFull message)
handleSyncSendRequest
in interface cMsgSubdomainInterface
handleSyncSendRequest
in class cMsgSubdomainAdapter
message
- message from sender
public void handleSubscribeAndGetRequest(java.lang.String subject, java.lang.String type, int id)
handleSubscribeAndGetRequest
in interface cMsgSubdomainInterface
handleSubscribeAndGetRequest
in class cMsgSubdomainAdapter
subject
- message subject subscribed totype
- message type subscribed toid
- message id refering to these specific subject and type valuespublic void handleSendAndGetRequest(cMsgMessageFull message)
handleSendAndGetRequest
in interface cMsgSubdomainInterface
handleSendAndGetRequest
in class cMsgSubdomainAdapter
message
- message requesting what sort of message to getpublic void handleUnSendAndGetRequest(int id)
handleUnSendAndGetRequest
in interface cMsgSubdomainInterface
handleUnSendAndGetRequest
in class cMsgSubdomainAdapter
id
- message id refering to these specific subject and type valuespublic void handleUnsubscribeAndGetRequest(java.lang.String subject, java.lang.String type, int id)
handleUnsubscribeAndGetRequest
in interface cMsgSubdomainInterface
handleUnsubscribeAndGetRequest
in class cMsgSubdomainAdapter
subject
- message subject subscribed totype
- message type subscribed toid
- message id refering to these specific subject and type valuespublic void handleSubscribeRequest(java.lang.String subject, java.lang.String type, int id)
handleSubscribeRequest
in interface cMsgSubdomainInterface
handleSubscribeRequest
in class cMsgSubdomainAdapter
subject
- message subject to subscribe totype
- message type to subscribe toid
- message id refering to these specific subject and type valuespublic void handleUnsubscribeRequest(java.lang.String subject, java.lang.String type, int id)
handleUnsubscribeRequest
in interface cMsgSubdomainInterface
handleUnsubscribeRequest
in class cMsgSubdomainAdapter
subject
- message subject to subscribe totype
- message type to subscribe toid
- message id refering to these specific subject and type valuespublic void handleShutdownClientsRequest(java.lang.String client, boolean includeMe)
handleShutdownClientsRequest
in interface cMsgSubdomainInterface
handleShutdownClientsRequest
in class cMsgSubdomainAdapter
client
- client(s) to be shutdownincludeMe
- if true, this client may be shutdown toopublic void handleKeepAlive()
handleKeepAlive
in interface cMsgSubdomainInterface
handleKeepAlive
in class cMsgSubdomainAdapter
public void handleClientShutdown()
handleClientShutdown
in interface cMsgSubdomainInterface
handleClientShutdown
in class cMsgSubdomainAdapter
public boolean hasSend()
handleSendRequest(org.jlab.coda.cMsg.cMsgMessageFull)
method.
hasSend
in interface cMsgSubdomainInterface
hasSend
in class cMsgSubdomainAdapter
public boolean hasSyncSend()
handleSyncSendRequest(org.jlab.coda.cMsg.cMsgMessageFull)
method.
hasSyncSend
in interface cMsgSubdomainInterface
hasSyncSend
in class cMsgSubdomainAdapter
public boolean hasSubscribeAndGet()
handleSubscribeAndGetRequest(java.lang.String, java.lang.String, int)
method.
hasSubscribeAndGet
in interface cMsgSubdomainInterface
hasSubscribeAndGet
in class cMsgSubdomainAdapter
public boolean hasSendAndGet()
handleSendAndGetRequest(org.jlab.coda.cMsg.cMsgMessageFull)
method.
hasSendAndGet
in interface cMsgSubdomainInterface
hasSendAndGet
in class cMsgSubdomainAdapter
public boolean hasSubscribe()
handleSubscribeRequest(java.lang.String, java.lang.String, int)
method.
hasSubscribe
in interface cMsgSubdomainInterface
hasSubscribe
in class cMsgSubdomainAdapter
public boolean hasUnsubscribe()
handleUnsubscribeRequest(java.lang.String, java.lang.String, int)
method.
hasUnsubscribe
in interface cMsgSubdomainInterface
hasUnsubscribe
in class cMsgSubdomainAdapter
public boolean hasShutdown()
handleShutdownClientsRequest(java.lang.String, boolean)
method.
hasShutdown
in interface cMsgSubdomainInterface
hasShutdown
in class cMsgSubdomainAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |