public interface RemoteLogging
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHANNEL_CONNECTED |
static java.lang.String |
CHANNEL_SIGNAL |
Modifier and Type | Method and Description |
---|---|
int |
getChannelCount(java.lang.String groupType)
Get the number of channels we wish to log.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getChannels(java.lang.String groupType)
Get the list of channel info tables.
|
java.util.List<java.lang.String> |
getGroupTypes()
Get the list of group types
|
java.util.Date |
getHeartbeat()
Get a heartbeat from the service.
|
java.lang.String |
getHostName()
Get the name of the host where the application is running.
|
java.util.Date |
getLastChannelEventTime(java.lang.String groupType)
Get the timestamp of the last channel event (e.g.
|
java.util.Date |
getLastLoggerEventTime(java.lang.String groupType)
Get the timestamp of the last logger event
|
java.lang.String |
getLastPublishedSnapshotDump(java.lang.String groupType)
Get the textual dump of the last published snapshot
|
java.util.Date |
getLaunchTime()
Get the launch time of the service.
|
double |
getLoggingPeriod(java.lang.String groupType)
Get the logging period.
|
java.util.Date |
getTimestampOfLastPublishedSnapshot(java.lang.String groupType)
Get the timestamp of the last published snapshot
|
boolean |
hasLoggerSession(java.lang.String groupID)
Determine if a logger session exists for the specified group
|
boolean |
isLogging(java.lang.String groupType)
Determine if the logger is presently logging
|
void |
publishSnapshots()
publish snapshots in the snapshot buffer
|
boolean |
reloadLoggerSession(java.lang.String groupType)
reload the logger session identified by the group type
|
void |
restartLogger()
Stop logging, reload groups from the database and resume logging.
|
void |
resumeLogging()
Resume the logger logging.
|
void |
setLoggingPeriod(java.lang.String groupType,
double period)
Set the period between events where we take and store machine snapshots for the specified group.
|
void |
shutdown(int code)
Shutdown the process without waiting for a response.
|
void |
stopLogging()
Stop the logger.
|
int |
takeAndPublishSnapshot(java.lang.String groupID,
java.lang.String comment)
Take a snapshot and publish it.
|
static final java.lang.String CHANNEL_SIGNAL
static final java.lang.String CHANNEL_CONNECTED
void setLoggingPeriod(java.lang.String groupType, double period)
groupType
- identifies the group by typeperiod
- The period in seconds between events where we take and store machine snapshots.void publishSnapshots()
int takeAndPublishSnapshot(java.lang.String groupID, java.lang.String comment)
groupID
- ID of the group for which to take the snapshotcomment
- snapshot commentdouble getLoggingPeriod(java.lang.String groupType)
groupType
- identifies the group by typeboolean hasLoggerSession(java.lang.String groupID)
groupID
- group ID of the logger session for which to lookboolean isLogging(java.lang.String groupType)
groupType
- identifies the group by typeboolean reloadLoggerSession(java.lang.String groupType)
void restartLogger()
void resumeLogging()
void stopLogging()
void shutdown(int code)
code
- The shutdown code which is normally just 0.java.lang.String getHostName()
java.util.Date getLaunchTime()
java.util.Date getHeartbeat()
java.util.Date getLastChannelEventTime(java.lang.String groupType)
groupType
- identifies the group by typejava.util.Date getLastLoggerEventTime(java.lang.String groupType)
groupType
- identifies the group by typejava.util.List<java.lang.String> getGroupTypes()
int getChannelCount(java.lang.String groupType)
groupType
- identifies the group by typejava.util.List<java.util.Map<java.lang.String,java.lang.Object>> getChannels(java.lang.String groupType)
groupType
- identifies the group by typejava.util.Date getTimestampOfLastPublishedSnapshot(java.lang.String groupType)
groupType
- identifies the group by typejava.lang.String getLastPublishedSnapshotDump(java.lang.String groupType)
groupType
- identifies the group by type