public class LogFile extends cMsgSubdomainAdapter
| Constructor and Description |
|---|
LogFile() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleClientShutdown()
Close file if no one else is using it.
|
void |
handleSendRequest(cMsgMessageFull msg)
Write message to a file.
|
int |
handleSyncSendRequest(cMsgMessageFull msg)
Write message to a file.
|
boolean |
hasSend()
Method to tell if the "send" cMsg API function is implemented
by this interface implementation in the "handleSendRequest"
method.
|
boolean |
hasSyncSend()
Method to tell if the "syncSend" cMsg API function is implemented
by this interface implementation in the "handleSyncSendRequest"
method.
|
void |
registerClient(cMsgClientInfo info)
Open file in which to store messages using append mode.
|
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, handleSubscribeAndGetRequest, handleSubscribeRequest, handleUnSendAndGetRequest, handleUnsubscribeAndGetRequest, handleUnsubscribeRequest, hasSendAndGet, hasShutdown, hasSubscribe, hasSubscribeAndGet, hasUnsubscribepublic boolean hasSend()
hasSend in interface cMsgSubdomainInterfacehasSend in class cMsgSubdomainAdapterpublic boolean hasSyncSend()
hasSyncSend in interface cMsgSubdomainInterfacehasSyncSend in class cMsgSubdomainAdapterpublic void setUDLRemainder(java.lang.String UDLRemainder)
throws cMsgException
setUDLRemainder in interface cMsgSubdomainInterfacesetUDLRemainder in class cMsgSubdomainAdapterUDLRemainder - last part of the UDL appropriate to the subdomain handlercMsgException - neverpublic void registerClient(cMsgClientInfo info) throws cMsgException
registerClient in interface cMsgSubdomainInterfaceregisterClient in class cMsgSubdomainAdapterinfo - information about clientcMsgException - if cannot find or read filepublic void handleSendRequest(cMsgMessageFull msg) throws cMsgException
handleSendRequest in interface cMsgSubdomainInterfacehandleSendRequest in class cMsgSubdomainAdaptermsg - message from sendercMsgException - neverpublic int handleSyncSendRequest(cMsgMessageFull msg) throws cMsgException
handleSyncSendRequest in interface cMsgSubdomainInterfacehandleSyncSendRequest in class cMsgSubdomainAdaptermsg - message from sendercMsgException - neverpublic void handleClientShutdown()
throws cMsgException
handleClientShutdown in interface cMsgSubdomainInterfacehandleClientShutdown in class cMsgSubdomainAdaptercMsgException - never