|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jlab.coda.cMsg.cMsgDomainAdapter
org.jlab.coda.cMsg.FileDomain.File
public class File
This class implements a client in the cMsg File domain.
Field Summary |
---|
Fields inherited from class org.jlab.coda.cMsg.cMsgDomainAdapter |
---|
connected, description, domain, host, name, receiving, shutdownHandler, UDL, UDLremainder |
Constructor Summary | |
---|---|
File()
Constructor for File domain. |
Method Summary | |
---|---|
void |
connect()
Opens file. |
void |
disconnect()
Closes file. |
void |
flush(int timeout)
Flushes output. |
void |
send(cMsgMessage msg)
Writes to file. |
int |
syncSend(cMsgMessage message,
int timeout)
Calls send to write to file. |
Methods inherited from class org.jlab.coda.cMsg.cMsgDomainAdapter |
---|
getDescription, getDomain, getHost, getName, getShutdownHandler, getString, getUDL, getUDLRemainder, isConnected, isReceiving, monitor, sendAndGet, setDescription, setName, setShutdownHandler, setUDL, setUDLRemainder, shutdownClients, shutdownServers, start, stop, subscribe, subscribeAndGet, unsubscribe |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public File() throws cMsgException
cMsgException
- if domain in not implemented or there are problemsMethod Detail |
---|
public void connect() throws cMsgException
connect
in interface cMsgDomainInterface
connect
in class cMsgDomainAdapter
cMsgException
- if there are communication problemspublic void disconnect()
disconnect
in interface cMsgDomainInterface
disconnect
in class cMsgDomainAdapter
public void send(cMsgMessage msg) throws cMsgException
send
in interface cMsgDomainInterface
send
in class cMsgDomainAdapter
msg
- message to send
cMsgException
- if file is closed (connect was not called, or disconnect was called)public int syncSend(cMsgMessage message, int timeout) throws cMsgException
syncSend
in interface cMsgDomainInterface
syncSend
in class cMsgDomainAdapter
message
- messagetimeout
- time in milliseconds to wait for a response
cMsgException
- if file is closed (connect was not called, or disconnect was called)public void flush(int timeout) throws cMsgException
flush
in interface cMsgDomainInterface
flush
in class cMsgDomainAdapter
timeout
- time in milliseconds to wait for completion
cMsgException
- if file is closed (connect was not called, or disconnect was called)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |