Class HealthCheckInfo

java.lang.Object
byps.BValueClass
de.elo.ix.client.ValueClass
de.elo.ix.client.health.HealthCheckInfo
All Implemented Interfaces:
Serializable

public class HealthCheckInfo extends ValueClass
This class represents one value for health check evaluation.
Since:
10.00.020.015
See Also:
  • Field Details

    • name

      protected String name
      Value name.
    • timeStamp

      protected String timeStamp
      Since:
      20.00.000.002
    • stringValue

      protected String stringValue
      String value. Either this or doubleValue has to be set.
    • doubleValue

      protected double doubleValue
      Numeric value. Either this value or stringValue has to be set.
    • sampleSize

      protected long sampleSize
      Sample size for mean values. If doubleValue is a arithmetic mean, this value gives the number of the underlying samples. If stringValue is set, this value has to be 0.
    • minValue

      protected long minValue
      Minimaler Wert für mean values.

      EIX-1408

      Since:
      20.00.000.001
    • maxValue

      protected long maxValue
      Maximaler Wert für mean values.

      EIX-1408

      Since:
      20.00.000.001
    • operation

      protected HealthCheckValueOperation operation
      Operation to process when updating the value.
      Since:
      10.00.020.016
    • type

      protected HealthCheckInfoType type
      Type defining interpretation of the given data.

      EIX-1408

      Since:
      20.00.000.001
  • Constructor Details

    • HealthCheckInfo

      public HealthCheckInfo()
    • HealthCheckInfo

      public HealthCheckInfo(HealthCheckInfo rhs)
    • HealthCheckInfo

      public HealthCheckInfo(String name, double doubleValue)
    • HealthCheckInfo

      public HealthCheckInfo(String name, double doubleValue, int sampleSize)
    • HealthCheckInfo

      public HealthCheckInfo(String name, double meanValue, long minValue, long maxValue, int sampleSize)
      Constructor for a HCI of the type MinMaxAvg

      EIX-1408

      Parameters:
      name -
      meanValue -
      minValue -
      maxValue -
      sampleSize -
      Since:
      20.00.000.001
    • HealthCheckInfo

      public HealthCheckInfo(String name, String stringValue)
    • HealthCheckInfo

      public HealthCheckInfo(String name, double doubleValue, HealthCheckInfoType hciType)

      EIX-1408

      Parameters:
      name -
      doubleValue -
      hciType -
      Since:
      20.00.000.001
    • HealthCheckInfo

      public HealthCheckInfo(String name, double doubleValue, HealthCheckInfoType hciType, String timeStamp)
    • HealthCheckInfo

      public HealthCheckInfo(String name, double meanValue, long minValue, long maxValue, int sampleSize, HealthCheckInfoType hciType)
      Creates a HealthCheckInfo with the given

      EIX-1408

      Parameters:
      name -
      meanValue -
      minValue -
      maxValue -
      sampleSize -
      hciType -
      Since:
      20.00.000.001
    • HealthCheckInfo

      public HealthCheckInfo(String name, String stringValue, HealthCheckInfoType hciType)

      EIX-1408

      Parameters:
      name -
      stringValue -
      hciType -
      Since:
      20.00.000.001
  • Method Details

    • updateMeanValue

      public void updateMeanValue(double meanValue)
      Update eines Mean Values. Berechnet wird der neue Mean Value sowie Min- und Max Werte.

      EIX-1408

      Since:
      20.00.000.001
    • updateMeanValueWithSampleSize

      public void updateMeanValueWithSampleSize(double meanValue, long sampleSize)
      Update eines Mean Value mit Sample Size EIX-2120
      Parameters:
      meanValue -
      sampleSize -
    • updateMeanValues

      public void updateMeanValues(double meanValue, long sampleSize, double min, double max)
    • updateMeanValues

      public void updateMeanValues(HealthCheckInfo hCI)
    • updateCounterValue

      public void updateCounterValue(double counter)
      Update eines Counter-Values

      EIX-1408

      Since:
      20.00.000.001
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getStringValue

      public String getStringValue()
    • setStringValue

      public void setStringValue(String stringValue)
    • getDoubleValue

      public double getDoubleValue()
    • setDoubleValue

      public void setDoubleValue(double doubleValue)
    • getSampleSize

      public long getSampleSize()
    • setSampleSize

      public void setSampleSize(long sampleSize)
    • getOperation

      public HealthCheckValueOperation getOperation()
    • setOperation

      public void setOperation(HealthCheckValueOperation operation)
    • getType

      public HealthCheckInfoType getType()
      EIX-1408 added HealthCheckInfoType. Ich denke hier sollte der Type zurückgegeben werden...
      Returns:
    • setType

      public void setType(HealthCheckInfoType type)
    • getMinValue

      public long getMinValue()
    • setMinValue

      public void setMinValue(long minValue)
    • getMaxValue

      public long getMaxValue()
    • setMaxValue

      public void setMaxValue(long maxValue)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringShort

      public String toStringShort()
      Kurzfassung von toString für Logging EIX-1803
      Returns:
    • translateTypes

      public static String translateTypes(HealthCheckInfoType type)
      "Übersetzt" die HCS-Typen für Logging EIX-1803
      Parameters:
      type -
      Returns:
    • stringToHealthCheckInfoType

      public static HealthCheckInfoType stringToHealthCheckInfoType(String type)
    • getTimeStamp

      public String getTimeStamp()
    • setTimeStamp

      public void setTimeStamp(String timeStamp)