Class EngineChannelStatus

  • All Implemented Interfaces:
    org.json.simple.JSONAware

    public class EngineChannelStatus
    extends Object
    implements org.json.simple.JSONAware
    POJO for engine status for a PV
    Author:
    mshankar
    • Constructor Detail

      • EngineChannelStatus

        public EngineChannelStatus​(PVMetrics metrics)
    • Method Detail

      • getPvName

        public String getPvName()
      • getEpochSecondsOfLastEvent

        public long getEpochSecondsOfLastEvent()
      • setEpochSecondsOfLastEvent

        public EngineChannelStatus setEpochSecondsOfLastEvent​(long epochSecondsOfLastEvent)
      • getLastRotateLogsEpochSeconds

        public long getLastRotateLogsEpochSeconds()
      • setLastRotateLogsEpochSeconds

        public EngineChannelStatus setLastRotateLogsEpochSeconds​(long lastRotateLogsEpochSeconds)
      • isMonitored

        public boolean isMonitored()
      • getSamplingPeriod

        public double getSamplingPeriod()
      • getConnectionFirstEstablishedEpochSeconds

        public long getConnectionFirstEstablishedEpochSeconds()
      • setConnectionFirstEstablishedEpochSeconds

        public EngineChannelStatus setConnectionFirstEstablishedEpochSeconds​(long connectionFirstEstablishedEpochSeconds)
      • getConnectionLastRestablishedEpochSeconds

        public long getConnectionLastRestablishedEpochSeconds()
      • setConnectionLastRestablishedEpochSeconds

        public EngineChannelStatus setConnectionLastRestablishedEpochSeconds​(long connectionLastRestablishedEpochSeconds)
      • getConnectionLossRegainCount

        public long getConnectionLossRegainCount()
      • setConnectionLossRegainCount

        public EngineChannelStatus setConnectionLossRegainCount​(int connectionLossRegainCount)
      • isConnectionState

        public boolean isConnectionState()
      • setConnectionState

        public EngineChannelStatus setConnectionState​(boolean connectionState)
      • toJSONString

        public String toJSONString()
        Return a RFC4627-compliant JSON version of this POJO.
        Specified by:
        toJSONString in interface org.json.simple.JSONAware
        Returns:
        String RFC4627-compliant JSON