public interface cMsgSubdomainInterface
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.
|
void setUDLRemainder(java.lang.String UDLRemainder) throws cMsgException
UDLRemainder
- last part of the UDL appropriate to the subdomain handlercMsgException
- if cMsg error.void registerClient(cMsgClientInfo info) throws cMsgException
info
- information about clientcMsgException
- if cMsg error.void handleSendRequest(cMsgMessageFull message) throws cMsgException
message
- message from sendercMsgException
- if cMsg error.int handleSyncSendRequest(cMsgMessageFull message) throws cMsgException
message
- message from sendercMsgException
- if cMsg error.void handleSubscribeAndGetRequest(java.lang.String subject, java.lang.String type, int id) throws cMsgException
subject
- subject subscribed totype
- type subscribed toid
- unique idcMsgException
- if cMsg error.void handleUnsubscribeAndGetRequest(java.lang.String subject, java.lang.String type, int id) throws cMsgException
subject
- subject subscribed totype
- type subscribed toid
- unique idcMsgException
- if cMsg error.void handleSendAndGetRequest(cMsgMessageFull message) throws cMsgException
message
- message requesting a response messagecMsgException
- if cMsg error.void handleUnSendAndGetRequest(int id) throws cMsgException
id
- unique (senderToken) id refering to specific sendAndGetcMsgException
- if cMsg error.void handleSubscribeRequest(java.lang.String subject, java.lang.String type, int id) throws cMsgException
subject
- subject subscribed totype
- type subscribed toid
- unique idcMsgException
- if cMsg error.void handleUnsubscribeRequest(java.lang.String subject, java.lang.String type, int id) throws cMsgException
subject
- subject of subscriptiontype
- type of subscriptionid
- unique idcMsgException
- if cMsg error.void handleShutdownClientsRequest(java.lang.String client, boolean includeMe) throws cMsgException
client
- client(s) to be shutdownincludeMe
- if true, this client may be shutdown toocMsgException
- if cMsg error.void handleClientShutdown() throws cMsgException
cMsgException
- if cMsg error.boolean hasSend()
boolean hasSyncSend()
boolean hasSubscribeAndGet()
boolean hasSendAndGet()
boolean hasSubscribe()
boolean hasUnsubscribe()
boolean hasShutdown()