public class Dummy extends cMsgSubdomainAdapter
| Constructor and Description |
|---|
Dummy() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleClientShutdown()
Method to handle a client or domain server (and therefore subdomain handler) shutdown.
|
void |
handleSendAndGetRequest(cMsgMessageFull message)
Method to synchronously get a single message by sending out a
message which is responded to by its receiver(s).
|
void |
handleSendRequest(cMsgMessageFull message)
Method to handle a message sent by a domain client.
|
void |
handleShutdownClientsRequest(java.lang.String client,
boolean includeMe)
Method to handle a request to shutdown clients sent by a 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 a subscribe request sent by a domain client.
|
int |
handleSyncSendRequest(cMsgMessageFull message)
Method to handle a message sent by a domain client in synchronous mode.
|
void |
handleUnSendAndGetRequest(int id)
Method to remove a sendAndGet request previously sent by a domain client.
|
void |
handleUnsubscribeAndGetRequest(java.lang.String subject,
java.lang.String type,
int id)
Method to remove a subscribeAndGet request previously sent by a domain client.
|
void |
handleUnsubscribeRequest(java.lang.String subject,
java.lang.String type,
int id)
Method to handle an unsubscribe request sent by a domain client.
|
boolean |
hasSend()
Method to tell if the "send" cMsg API function is implemented
by this interface implementation in the "handleSendRequest"
method.
|
boolean |
hasSendAndGet()
Method to tell if the "sendAndGet" cMsg API function is implemented
by this interface implementation in the "handleSendAndGetRequest"
method.
|
boolean |
hasShutdown()
Method to tell if the "shutdown" cMsg API function is implemented
by this interface implementation in the "handleShutdownClientsRequest"
method.
|
boolean |
hasSubscribe()
Method to tell if the "subscribe" cMsg API function is implemented
by this interface implementation in the "handleSubscribeRequest"
method.
|
boolean |
hasSubscribeAndGet()
Method to tell if the "subscribeAndGet" cMsg API function is implemented
by this interface implementation in the "handleSubscribeAndGetRequest"
method.
|
boolean |
hasSyncSend()
Method to tell if the "syncSend" cMsg API function is implemented
by this interface implementation in the "handleSyncSendRequest"
method.
|
boolean |
hasUnsubscribe()
Method to tell if the "unsubscribe" cMsg API function is implemented
by this interface implementation in the "handleUnsubscribeRequest"
method.
|
void |
registerClient(cMsgClientInfo info)
Method to register a domain 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.
|
public void setUDLRemainder(java.lang.String UDLRemainder)
cMsgSubdomainAdaptersetUDLRemainder in interface cMsgSubdomainInterfacesetUDLRemainder in class cMsgSubdomainAdapterUDLRemainder - last part of the UDL appropriate to the subdomain handlerpublic void registerClient(cMsgClientInfo info) throws cMsgException
cMsgSubdomainAdapterregisterClient in interface cMsgSubdomainInterfaceregisterClient in class cMsgSubdomainAdapterinfo - information about clientcMsgException - always throws an exception since this is a dummy implementationpublic void handleSendRequest(cMsgMessageFull message)
cMsgSubdomainAdapterhandleSendRequest in interface cMsgSubdomainInterfacehandleSendRequest in class cMsgSubdomainAdaptermessage - message from senderpublic int handleSyncSendRequest(cMsgMessageFull message)
cMsgSubdomainAdapterhandleSyncSendRequest in interface cMsgSubdomainInterfacehandleSyncSendRequest in class cMsgSubdomainAdaptermessage - message from senderpublic void handleSubscribeAndGetRequest(java.lang.String subject,
java.lang.String type,
int id)
cMsgSubdomainAdapterhandleSubscribeAndGetRequest in interface cMsgSubdomainInterfacehandleSubscribeAndGetRequest in class cMsgSubdomainAdaptersubject - subject subscribed totype - type subscribed toid - unique idpublic void handleSendAndGetRequest(cMsgMessageFull message)
cMsgSubdomainAdapterhandleSendAndGetRequest in interface cMsgSubdomainInterfacehandleSendAndGetRequest in class cMsgSubdomainAdaptermessage - message requesting a response messagepublic void handleUnSendAndGetRequest(int id)
cMsgSubdomainAdapterhandleUnSendAndGetRequest in interface cMsgSubdomainInterfacehandleUnSendAndGetRequest in class cMsgSubdomainAdapterid - unique (senderToken) id refering to specific sendAndGetpublic void handleUnsubscribeAndGetRequest(java.lang.String subject,
java.lang.String type,
int id)
cMsgSubdomainAdapterhandleUnsubscribeAndGetRequest in interface cMsgSubdomainInterfacehandleUnsubscribeAndGetRequest in class cMsgSubdomainAdaptersubject - subject subscribed totype - type subscribed toid - unique idpublic void handleSubscribeRequest(java.lang.String subject,
java.lang.String type,
int id)
cMsgSubdomainAdapterhandleSubscribeRequest in interface cMsgSubdomainInterfacehandleSubscribeRequest in class cMsgSubdomainAdaptersubject - subject subscribed totype - type subscribed toid - unique idpublic void handleUnsubscribeRequest(java.lang.String subject,
java.lang.String type,
int id)
cMsgSubdomainAdapterhandleUnsubscribeRequest in interface cMsgSubdomainInterfacehandleUnsubscribeRequest in class cMsgSubdomainAdaptersubject - subject of subscriptiontype - type of subscriptionid - unique idpublic void handleShutdownClientsRequest(java.lang.String client,
boolean includeMe)
cMsgSubdomainAdapterhandleShutdownClientsRequest in interface cMsgSubdomainInterfacehandleShutdownClientsRequest in class cMsgSubdomainAdapterclient - client(s) to be shutdownincludeMe - if true, this client may be shutdown toopublic void handleClientShutdown()
cMsgSubdomainAdapterhandleClientShutdown in interface cMsgSubdomainInterfacehandleClientShutdown in class cMsgSubdomainAdapterpublic boolean hasSend()
cMsgSubdomainAdapterhasSend in interface cMsgSubdomainInterfacehasSend in class cMsgSubdomainAdapterpublic boolean hasSyncSend()
cMsgSubdomainAdapterhasSyncSend in interface cMsgSubdomainInterfacehasSyncSend in class cMsgSubdomainAdapterpublic boolean hasSubscribeAndGet()
cMsgSubdomainAdapterhasSubscribeAndGet in interface cMsgSubdomainInterfacehasSubscribeAndGet in class cMsgSubdomainAdapterpublic boolean hasSendAndGet()
cMsgSubdomainAdapterhasSendAndGet in interface cMsgSubdomainInterfacehasSendAndGet in class cMsgSubdomainAdapterpublic boolean hasSubscribe()
cMsgSubdomainAdapterhasSubscribe in interface cMsgSubdomainInterfacehasSubscribe in class cMsgSubdomainAdapterpublic boolean hasUnsubscribe()
cMsgSubdomainAdapterhasUnsubscribe in interface cMsgSubdomainInterfacehasUnsubscribe in class cMsgSubdomainAdapterpublic boolean hasShutdown()
cMsgSubdomainAdapterhasShutdown in interface cMsgSubdomainInterfacehasShutdown in class cMsgSubdomainAdapter