Class SSAMetricPoint

java.lang.Object
jline.streaming.SSAMetricPoint
All Implemented Interfaces:
Serializable

public class SSAMetricPoint extends Object implements Serializable
Internal representation of a metric point from SSA simulation. Used to collect metrics before sending to OTLP receiver. Metric names are aligned with line-est MetricType enum: - queue_length -> QLen - utilization -> Util - throughput -> Tput - response_time -> RespT - arrival_rate -> ArvR
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Labels for this metric (station, class, etc.)
    final String
    Metric name (e.g., "queue_length", "throughput")
    final long
    Timestamp in nanoseconds since epoch
    final double
    Metric value
  • Constructor Summary

    Constructors
    Constructor
    Description
    SSAMetricPoint(String metricName, double value, long timestampNanos, Map<String,String> labels)
    Create a new metric point.
  • Method Summary

    Modifier and Type
    Method
    Description
    arrivalRate(int station, int jobClass, double value, long timestampNanos)
    Create an arrival rate metric point.
    arrivalRate(int station, int jobClass, String stationName, String className, double value, long timestampNanos)
    Create an arrival rate metric point with station/class names.
    queueLength(int station, int jobClass, double value, long timestampNanos)
    Create a queue length metric point.
    queueLength(int station, int jobClass, String stationName, String className, double value, long timestampNanos)
    Create a queue length metric point with station/class names.
    responseTime(int station, int jobClass, double value, long timestampNanos)
    Create a response time metric point.
    responseTime(int station, int jobClass, String stationName, String className, double value, long timestampNanos)
    Create a response time metric point with station/class names.
    throughput(int station, int jobClass, double value, long timestampNanos)
    Create a throughput metric point.
    throughput(int station, int jobClass, String stationName, String className, double value, long timestampNanos)
    Create a throughput metric point with station/class names.
     
    utilization(int station, int jobClass, double value, long timestampNanos)
    Create a utilization metric point.
    utilization(int station, int jobClass, String stationName, String className, double value, long timestampNanos)
    Create a utilization metric point with station/class names.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • metricName

      public final String metricName
      Metric name (e.g., "queue_length", "throughput")
    • value

      public final double value
      Metric value
    • timestampNanos

      public final long timestampNanos
      Timestamp in nanoseconds since epoch
    • labels

      public final Map<String,String> labels
      Labels for this metric (station, class, etc.)
  • Constructor Details

    • SSAMetricPoint

      public SSAMetricPoint(String metricName, double value, long timestampNanos, Map<String,String> labels)
      Create a new metric point.
      Parameters:
      metricName - Name of the metric
      value - Metric value
      timestampNanos - Timestamp in nanoseconds
      labels - Additional labels (can be null)
  • Method Details

    • queueLength

      public static SSAMetricPoint queueLength(int station, int jobClass, double value, long timestampNanos)
      Create a queue length metric point.
      Parameters:
      station - Station index
      jobClass - Job class index
      value - Queue length value
      timestampNanos - Timestamp in nanoseconds
      Returns:
      New SSAMetricPoint
    • queueLength

      public static SSAMetricPoint queueLength(int station, int jobClass, String stationName, String className, double value, long timestampNanos)
      Create a queue length metric point with station/class names.
      Parameters:
      station - Station index
      jobClass - Job class index
      stationName - Station name
      className - Class name
      value - Queue length value
      timestampNanos - Timestamp in nanoseconds
      Returns:
      New SSAMetricPoint
    • utilization

      public static SSAMetricPoint utilization(int station, int jobClass, double value, long timestampNanos)
      Create a utilization metric point.
      Parameters:
      station - Station index
      jobClass - Job class index
      value - Utilization value (0-1)
      timestampNanos - Timestamp in nanoseconds
      Returns:
      New SSAMetricPoint
    • utilization

      public static SSAMetricPoint utilization(int station, int jobClass, String stationName, String className, double value, long timestampNanos)
      Create a utilization metric point with station/class names.
      Parameters:
      station - Station index
      jobClass - Job class index
      stationName - Station name
      className - Class name
      value - Utilization value (0-1)
      timestampNanos - Timestamp in nanoseconds
      Returns:
      New SSAMetricPoint
    • throughput

      public static SSAMetricPoint throughput(int station, int jobClass, double value, long timestampNanos)
      Create a throughput metric point.
      Parameters:
      station - Station index
      jobClass - Job class index
      value - Throughput value (departures/time)
      timestampNanos - Timestamp in nanoseconds
      Returns:
      New SSAMetricPoint
    • throughput

      public static SSAMetricPoint throughput(int station, int jobClass, String stationName, String className, double value, long timestampNanos)
      Create a throughput metric point with station/class names.
      Parameters:
      station - Station index
      jobClass - Job class index
      stationName - Station name
      className - Class name
      value - Throughput value (departures/time)
      timestampNanos - Timestamp in nanoseconds
      Returns:
      New SSAMetricPoint
    • responseTime

      public static SSAMetricPoint responseTime(int station, int jobClass, double value, long timestampNanos)
      Create a response time metric point.
      Parameters:
      station - Station index
      jobClass - Job class index
      value - Response time value
      timestampNanos - Timestamp in nanoseconds
      Returns:
      New SSAMetricPoint
    • responseTime

      public static SSAMetricPoint responseTime(int station, int jobClass, String stationName, String className, double value, long timestampNanos)
      Create a response time metric point with station/class names.
      Parameters:
      station - Station index
      jobClass - Job class index
      stationName - Station name
      className - Class name
      value - Response time value
      timestampNanos - Timestamp in nanoseconds
      Returns:
      New SSAMetricPoint
    • arrivalRate

      public static SSAMetricPoint arrivalRate(int station, int jobClass, double value, long timestampNanos)
      Create an arrival rate metric point.
      Parameters:
      station - Station index
      jobClass - Job class index
      value - Arrival rate value (arrivals/time)
      timestampNanos - Timestamp in nanoseconds
      Returns:
      New SSAMetricPoint
    • arrivalRate

      public static SSAMetricPoint arrivalRate(int station, int jobClass, String stationName, String className, double value, long timestampNanos)
      Create an arrival rate metric point with station/class names.
      Parameters:
      station - Station index
      jobClass - Job class index
      stationName - Station name
      className - Class name
      value - Arrival rate value (arrivals/time)
      timestampNanos - Timestamp in nanoseconds
      Returns:
      New SSAMetricPoint
    • toString

      public String toString()
      Overrides:
      toString in class Object