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)
cMsgSubdomainAdapter
setUDLRemainder
in interface cMsgSubdomainInterface
setUDLRemainder
in class cMsgSubdomainAdapter
UDLRemainder
- last part of the UDL appropriate to the subdomain handlerpublic void registerClient(cMsgClientInfo info) throws cMsgException
cMsgSubdomainAdapter
registerClient
in interface cMsgSubdomainInterface
registerClient
in class cMsgSubdomainAdapter
info
- information about clientcMsgException
- always throws an exception since this is a dummy implementationpublic void handleSendRequest(cMsgMessageFull message)
cMsgSubdomainAdapter
handleSendRequest
in interface cMsgSubdomainInterface
handleSendRequest
in class cMsgSubdomainAdapter
message
- message from senderpublic int handleSyncSendRequest(cMsgMessageFull message)
cMsgSubdomainAdapter
handleSyncSendRequest
in interface cMsgSubdomainInterface
handleSyncSendRequest
in class cMsgSubdomainAdapter
message
- message from senderpublic void handleSubscribeAndGetRequest(java.lang.String subject, java.lang.String type, int id)
cMsgSubdomainAdapter
handleSubscribeAndGetRequest
in interface cMsgSubdomainInterface
handleSubscribeAndGetRequest
in class cMsgSubdomainAdapter
subject
- subject subscribed totype
- type subscribed toid
- unique idpublic void handleSendAndGetRequest(cMsgMessageFull message)
cMsgSubdomainAdapter
handleSendAndGetRequest
in interface cMsgSubdomainInterface
handleSendAndGetRequest
in class cMsgSubdomainAdapter
message
- message requesting a response messagepublic void handleUnSendAndGetRequest(int id)
cMsgSubdomainAdapter
handleUnSendAndGetRequest
in interface cMsgSubdomainInterface
handleUnSendAndGetRequest
in class cMsgSubdomainAdapter
id
- unique (senderToken) id refering to specific sendAndGetpublic void handleUnsubscribeAndGetRequest(java.lang.String subject, java.lang.String type, int id)
cMsgSubdomainAdapter
handleUnsubscribeAndGetRequest
in interface cMsgSubdomainInterface
handleUnsubscribeAndGetRequest
in class cMsgSubdomainAdapter
subject
- subject subscribed totype
- type subscribed toid
- unique idpublic void handleSubscribeRequest(java.lang.String subject, java.lang.String type, int id)
cMsgSubdomainAdapter
handleSubscribeRequest
in interface cMsgSubdomainInterface
handleSubscribeRequest
in class cMsgSubdomainAdapter
subject
- subject subscribed totype
- type subscribed toid
- unique idpublic void handleUnsubscribeRequest(java.lang.String subject, java.lang.String type, int id)
cMsgSubdomainAdapter
handleUnsubscribeRequest
in interface cMsgSubdomainInterface
handleUnsubscribeRequest
in class cMsgSubdomainAdapter
subject
- subject of subscriptiontype
- type of subscriptionid
- unique idpublic void handleShutdownClientsRequest(java.lang.String client, boolean includeMe)
cMsgSubdomainAdapter
handleShutdownClientsRequest
in interface cMsgSubdomainInterface
handleShutdownClientsRequest
in class cMsgSubdomainAdapter
client
- client(s) to be shutdownincludeMe
- if true, this client may be shutdown toopublic void handleClientShutdown()
cMsgSubdomainAdapter
handleClientShutdown
in interface cMsgSubdomainInterface
handleClientShutdown
in class cMsgSubdomainAdapter
public boolean hasSend()
cMsgSubdomainAdapter
hasSend
in interface cMsgSubdomainInterface
hasSend
in class cMsgSubdomainAdapter
public boolean hasSyncSend()
cMsgSubdomainAdapter
hasSyncSend
in interface cMsgSubdomainInterface
hasSyncSend
in class cMsgSubdomainAdapter
public boolean hasSubscribeAndGet()
cMsgSubdomainAdapter
hasSubscribeAndGet
in interface cMsgSubdomainInterface
hasSubscribeAndGet
in class cMsgSubdomainAdapter
public boolean hasSendAndGet()
cMsgSubdomainAdapter
hasSendAndGet
in interface cMsgSubdomainInterface
hasSendAndGet
in class cMsgSubdomainAdapter
public boolean hasSubscribe()
cMsgSubdomainAdapter
hasSubscribe
in interface cMsgSubdomainInterface
hasSubscribe
in class cMsgSubdomainAdapter
public boolean hasUnsubscribe()
cMsgSubdomainAdapter
hasUnsubscribe
in interface cMsgSubdomainInterface
hasUnsubscribe
in class cMsgSubdomainAdapter
public boolean hasShutdown()
cMsgSubdomainAdapter
hasShutdown
in interface cMsgSubdomainInterface
hasShutdown
in class cMsgSubdomainAdapter