public class CMSGPortal extends java.lang.Object implements LoggerAppender
Modifier and Type | Field and Description |
---|---|
(package private) Emu |
emu
Store a reference to the EMU here (which is the only object that uses this CMSGPortal object).
|
Constructor and Description |
---|
CMSGPortal(Emu emu)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(LoggingEvent event)
Send a dalogmsg message using the cMsg system.
|
void |
cMsgServerConnect()
Create 2 connections to the run control platform's cMsg domain server.
|
org.jlab.coda.cMsg.cMsg |
getCmsgServer()
Get the connection object to the cMsg server of runcontrol platform.
|
java.lang.String |
getPlatformHost()
Get the IP address the platform is running on.
|
int |
getPlatformPort()
Get the TCP port the platform's cMsg domain server is listening on.
|
org.jlab.coda.cMsg.cMsg |
getRcServer()
Get the connection object to the rc multicast server of runcontrol platform.
|
java.lang.String |
getRcUDL()
Get the UDL used to make the connection to the rc server.
|
void |
rcGuiErrorMessage(java.lang.String text)
Send an error message that ends up on the run control gui.
|
void |
rcGuiInfoMessage(java.lang.String text)
Send an informational message that ends up on the run control gui.
|
void |
rcGuiSevereMessage(java.lang.String text)
Send an error message that ends up on the run control gui.
|
void |
rcGuiWarningMessage(java.lang.String text)
Send a warning message that ends up on the run control gui.
|
void |
sendMHandlerMessage(int val,
java.lang.String type)
Send messages to a callback in this emu so that it can send all rocs
the lowest number of evio events received by this event builder in a
single ET buffer.
|
void |
sendRocMessage(int lowM,
int highM,
int highSafeM)
Send a message to the connected rocs specifying the lowest and highest
number of evio events per single ET buffer that was received by the
input channels to this emu.
|
void |
shutdown()
Disconnect from the runcontrol platform.
|
final Emu emu
public CMSGPortal(Emu emu) throws EmuException
emu
- reference to EMU objectEmuException
- never thrownpublic void cMsgServerConnect() throws EmuException
EmuException
- if platform did not send its IP addresses and cMsg TCP port;
if cannot connect to cMsg domain server in platform.public void shutdown() throws org.jlab.coda.cMsg.cMsgException
org.jlab.coda.cMsg.cMsgException
- never thrownpublic java.lang.String getPlatformHost()
public int getPlatformPort()
public org.jlab.coda.cMsg.cMsg getRcServer()
public org.jlab.coda.cMsg.cMsg getCmsgServer()
public java.lang.String getRcUDL()
public void sendMHandlerMessage(int val, java.lang.String type)
val
- lowest # of evio events found in a single ET buffer or reset
(depending on type value)type
- "M" if val is lowest # of evio events in a single ET buffer as
reported by ET input channel or "reset" if clearing M values at prestartpublic void sendRocMessage(int lowM, int highM, int highSafeM)
lowM
- lowest number of ROC records per single ET buffer
received by the input channels to this emuhighM
- highest number of ROC records per single ET buffer
received by the input channels to this emuhighSafeM
- highest number of ROC records per single ET buffer
that each ROC should be sendingpublic void append(LoggingEvent event)
append
in interface LoggerAppender
event
- event to be loggedpublic void rcGuiInfoMessage(java.lang.String text)
text
- text of messagepublic void rcGuiWarningMessage(java.lang.String text)
text
- text of messagepublic void rcGuiErrorMessage(java.lang.String text)
text
- text of messagepublic void rcGuiSevereMessage(java.lang.String text)
text
- text of message