Package org.apache.hop.core.logging
Class LoggingMetric
- java.lang.Object
-
- org.apache.hop.core.logging.LoggingMetric
-
public class LoggingMetric extends Object
Just a small wrapper class to allow us to pass a few extra details along with a metrics snapshot (like the batch id)
-
-
Constructor Summary
Constructors Constructor Description LoggingMetric(long batchId, IMetricsSnapshot snapshot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBatchId()IMetricsSnapshotgetSnapshot()voidsetBatchId(long batchId)voidsetSnapshot(IMetricsSnapshot snapshot)
-
-
-
Constructor Detail
-
LoggingMetric
public LoggingMetric(long batchId, IMetricsSnapshot snapshot)- Parameters:
batchId-snapshot-
-
-
Method Detail
-
getBatchId
public long getBatchId()
- Returns:
- the batchId
-
setBatchId
public void setBatchId(long batchId)
- Parameters:
batchId- the batchId to set
-
getSnapshot
public IMetricsSnapshot getSnapshot()
- Returns:
- the snapshot
-
setSnapshot
public void setSnapshot(IMetricsSnapshot snapshot)
- Parameters:
snapshot- the snapshot to set
-
-