Package org.pentaho.di.core.logging
Class LoggingMetric
java.lang.Object
org.pentaho.di.core.logging.LoggingMetric
Just a small wrapper class to allow us to pass a few extra details along with a metrics snapshot (like the batch id)
- Author:
- matt
-
Constructor Summary
ConstructorDescriptionLoggingMetric
(long batchId, org.pentaho.di.core.metrics.MetricsSnapshotInterface snapshot) -
Method Summary
Modifier and TypeMethodDescriptionlong
org.pentaho.di.core.metrics.MetricsSnapshotInterface
void
setBatchId
(long batchId) void
setSnapshot
(org.pentaho.di.core.metrics.MetricsSnapshotInterface snapshot)
-
Constructor Details
-
LoggingMetric
public LoggingMetric(long batchId, org.pentaho.di.core.metrics.MetricsSnapshotInterface snapshot) - Parameters:
batchId
-snapshot
-
-
-
Method Details
-
getBatchId
public long getBatchId()- Returns:
- the batchId
-
setBatchId
public void setBatchId(long batchId) - Parameters:
batchId
- the batchId to set
-
getSnapshot
public org.pentaho.di.core.metrics.MetricsSnapshotInterface getSnapshot()- Returns:
- the snapshot
-
setSnapshot
public void setSnapshot(org.pentaho.di.core.metrics.MetricsSnapshotInterface snapshot) - Parameters:
snapshot
- the snapshot to set
-