public class CA extends cMsgSubdomainAdapter
Constructor and Description |
---|
CA() |
Modifier and Type | Method and Description |
---|---|
void |
handleClientShutdown()
Method to handle a client or domain server (and therefore subdomain handler) shutdown.
|
void |
handleSendRequest(cMsgMessageFull msg)
Method to handle a message 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 receiverSubscribeId)
Performs CA monitorOn.
|
int |
handleSyncSendRequest(cMsgMessageFull msg)
Method to handle a message sent by a domain client in synchronous mode.
|
void |
handleUnsubscribeRequest(java.lang.String subject,
java.lang.String type,
int receiverSubscribeId)
Performs CA monitorOff.
|
boolean |
hasSend()
Method to tell if the "send" cMsg API function is implemented
by this interface implementation in the "handleSendRequest"
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)
Creates JCA, context, and channel objects.
|
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.
|
handleSendAndGetRequest, handleShutdownClientsRequest, handleUnSendAndGetRequest, handleUnsubscribeAndGetRequest, hasSendAndGet, hasShutdown
public boolean hasSend()
hasSend
in interface cMsgSubdomainInterface
hasSend
in class cMsgSubdomainAdapter
public boolean hasSyncSend()
hasSyncSend
in interface cMsgSubdomainInterface
hasSyncSend
in class cMsgSubdomainAdapter
public boolean hasSubscribeAndGet()
hasSubscribeAndGet
in interface cMsgSubdomainInterface
hasSubscribeAndGet
in class cMsgSubdomainAdapter
public boolean hasSubscribe()
hasSubscribe
in interface cMsgSubdomainInterface
hasSubscribe
in class cMsgSubdomainAdapter
public boolean hasUnsubscribe()
hasUnsubscribe
in interface cMsgSubdomainInterface
hasUnsubscribe
in class cMsgSubdomainAdapter
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 registerClient(cMsgClientInfo info) throws cMsgException
registerClient
in interface cMsgSubdomainInterface
registerClient
in class cMsgSubdomainAdapter
info
- information about clientcMsgException
- if unable to registerpublic void handleSendRequest(cMsgMessageFull msg) throws cMsgException
handleSendRequest
in interface cMsgSubdomainInterface
handleSendRequest
in class cMsgSubdomainAdapter
msg
- message from sendercMsgException
- if a channel to the client is closed, cannot be created,
or socket properties cannot be setpublic int handleSyncSendRequest(cMsgMessageFull msg) throws cMsgException
handleSyncSendRequest
in interface cMsgSubdomainInterface
handleSyncSendRequest
in class cMsgSubdomainAdapter
msg
- message from sendercMsgException
- if a channel to the client is closed, cannot be created,
or socket properties cannot be setpublic void handleSubscribeAndGetRequest(java.lang.String subject, java.lang.String type, int id) throws cMsgException
handleSubscribeAndGetRequest
in interface cMsgSubdomainInterface
handleSubscribeAndGetRequest
in class cMsgSubdomainAdapter
subject
- subject subscribed totype
- type subscribed toid
- unique idcMsgException
- if message delivery to client failspublic void handleSubscribeRequest(java.lang.String subject, java.lang.String type, int receiverSubscribeId) throws cMsgException
handleSubscribeRequest
in interface cMsgSubdomainInterface
handleSubscribeRequest
in class cMsgSubdomainAdapter
subject
- subject subscribed totype
- type subscribed toreceiverSubscribeId
- unique idcMsgException
- if no client information is available or a subscription for this
subject and type already existspublic void handleUnsubscribeRequest(java.lang.String subject, java.lang.String type, int receiverSubscribeId) throws cMsgException
handleUnsubscribeRequest
in interface cMsgSubdomainInterface
handleUnsubscribeRequest
in class cMsgSubdomainAdapter
subject
- subject of subscriptiontype
- type of subscriptionreceiverSubscribeId
- unique idcMsgException
- always throws an exception since this is a dummy implementationpublic void handleClientShutdown() throws cMsgException
handleClientShutdown
in interface cMsgSubdomainInterface
handleClientShutdown
in class cMsgSubdomainAdapter
cMsgException
- if channel access exception thrown