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, hasShutdownpublic boolean hasSend()
hasSend in interface cMsgSubdomainInterfacehasSend in class cMsgSubdomainAdapterpublic boolean hasSyncSend()
hasSyncSend in interface cMsgSubdomainInterfacehasSyncSend in class cMsgSubdomainAdapterpublic boolean hasSubscribeAndGet()
hasSubscribeAndGet in interface cMsgSubdomainInterfacehasSubscribeAndGet in class cMsgSubdomainAdapterpublic boolean hasSubscribe()
hasSubscribe in interface cMsgSubdomainInterfacehasSubscribe in class cMsgSubdomainAdapterpublic boolean hasUnsubscribe()
hasUnsubscribe in interface cMsgSubdomainInterfacehasUnsubscribe in class cMsgSubdomainAdapterpublic void setUDLRemainder(java.lang.String UDLRemainder)
setUDLRemainder in interface cMsgSubdomainInterfacesetUDLRemainder in class cMsgSubdomainAdapterUDLRemainder - last part of the UDL appropriate to the subdomain handlerpublic void registerClient(cMsgClientInfo info) throws cMsgException
registerClient in interface cMsgSubdomainInterfaceregisterClient in class cMsgSubdomainAdapterinfo - information about clientcMsgException - if unable to registerpublic void handleSendRequest(cMsgMessageFull msg) throws cMsgException
handleSendRequest in interface cMsgSubdomainInterfacehandleSendRequest in class cMsgSubdomainAdaptermsg - 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 cMsgSubdomainInterfacehandleSyncSendRequest in class cMsgSubdomainAdaptermsg - 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 cMsgSubdomainInterfacehandleSubscribeAndGetRequest in class cMsgSubdomainAdaptersubject - 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 cMsgSubdomainInterfacehandleSubscribeRequest in class cMsgSubdomainAdaptersubject - 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 cMsgSubdomainInterfacehandleUnsubscribeRequest in class cMsgSubdomainAdaptersubject - 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 cMsgSubdomainInterfacehandleClientShutdown in class cMsgSubdomainAdaptercMsgException - if channel access exception thrown