public interface MPSPortal
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHANNEL_CONNECTED_KEY
Description of the Field
|
static java.lang.String |
CHANNEL_PV_KEY
Description of the Field
|
static java.lang.String |
DATE_FORMAT
Date format for passing dates as strings
|
static int |
EVENT_ID_COUNT
count of the event IDs
|
static int |
INPUT_CHANNEL_EVENT_ID
key used in the event time table to indicate an MPS channel event
|
static int |
MPS_CHANNEL_EVENT_ID
key used in the event time table to indicate an MPS channel event
|
static int |
MPS_EVENT_BUFFER_SIZE
size of the MPS event buffer
|
static int |
MPS_EVENT_ID
key used in the event time table to indicate an MPS event
|
static java.lang.String |
SIGNAL_EVENTS_KEY
key used in the event time table to indicate signal events
|
static java.lang.String |
TIMESTAMP_KEY
key used in the latest MPS event table
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFirstHitText(int monitorIndex)
Get the summary of first hit statistics
|
java.lang.String |
getHostName()
Get the name of the host where the application is running.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getInputChannelInfo(int monitorIndex)
Get the list of all Input PVs we are attempting to monitor and log.
|
java.util.Date[] |
getLastEventTimes(int monitorIndex)
Get an arry of timestamps corresponding to the different event ids.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getLatestMPSEvents(int monitorIndex)
Get the list of latest MPS events
|
java.util.Date |
getLaunchTime()
Get the launch time of the service.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getMPSChannelInfo(int monitorIndex)
Get the list of all MPS PVs we are attempting to monitor and log.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getMPSEventsSince(int monitorIndex,
java.lang.String timeStr)
Get the list of MPS events since the specified time
|
java.lang.String |
getMPSTripSummary(int monitorIndex)
Get the summary of MPS trips.
|
java.util.List<java.lang.String> |
getMPSTypes()
Get the list of MPS latch types.
|
int |
getProcessID()
Get the process ID of the process in which the service runs or 0 if it is unknown
|
boolean |
isRunning(int monitorIndex)
Determing if the correlator is running.
|
boolean |
logsStatistics()
determine whether the monitors log statistics
|
void |
reloadSignals(int monitorIndex)
Reload the MPS signals from the signal data source for the specified monitor.
|
void |
restartCorrelator(int monitorIndex)
Restart the poster after a pause
|
void |
shutdown(int code)
Shutdown the process.
|
void |
stopCorrelator(int monitorIndex)
Stop looking for MPS trips
|
static final java.lang.String DATE_FORMAT
static final int MPS_EVENT_BUFFER_SIZE
static final java.lang.String CHANNEL_PV_KEY
static final java.lang.String CHANNEL_CONNECTED_KEY
static final java.lang.String TIMESTAMP_KEY
static final java.lang.String SIGNAL_EVENTS_KEY
static final int MPS_CHANNEL_EVENT_ID
static final int INPUT_CHANNEL_EVENT_ID
static final int MPS_EVENT_ID
static final int EVENT_ID_COUNT
int getProcessID()
void shutdown(int code)
code
- The shutdown code which is normally just 0.java.lang.String getHostName()
java.util.Date getLaunchTime()
boolean logsStatistics()
java.util.List<java.lang.String> getMPSTypes()
boolean isRunning(int monitorIndex)
monitorIndex
- index of the monitor to test if its correlator is runningvoid stopCorrelator(int monitorIndex)
monitorIndex
- index of the monitor that should stop its correlatorvoid restartCorrelator(int monitorIndex)
monitorIndex
- index of the monitor that should restart its correlatorvoid reloadSignals(int monitorIndex)
monitorIndex
- index of the monitor that should reload its signalsjava.util.Date[] getLastEventTimes(int monitorIndex)
monitorIndex
- index of the monitor whose timestamps are requestedjava.util.List<java.util.Map<java.lang.String,java.lang.Object>> getMPSChannelInfo(int monitorIndex)
monitorIndex
- index of the monitor whose channel info is requestedjava.util.List<java.util.Map<java.lang.String,java.lang.Object>> getInputChannelInfo(int monitorIndex)
monitorIndex
- index of the monitor whose channel info is requestedjava.lang.String getFirstHitText(int monitorIndex)
monitorIndex
- index of the monitor whose statistics are to be fetchedjava.lang.String getMPSTripSummary(int monitorIndex)
monitorIndex
- index of the monitor whose statistics are to be fetchedjava.util.List<java.util.Map<java.lang.String,java.lang.Object>> getMPSEventsSince(int monitorIndex, java.lang.String timeStr)
monitorIndex
- index of the monitor whose statistics are to be fetchedtimeStr
- a string representation of the reference timejava.util.List<java.util.Map<java.lang.String,java.lang.Object>> getLatestMPSEvents(int monitorIndex)
monitorIndex
- index of the monitor whose statistics are to be fetched