com.emc.mongoose.api.metrics.logging.ExtResultsXmlLogMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoose-api-metrics Show documentation
Show all versions of mongoose-api-metrics Show documentation
Mongoose is a high-load storage performance testing tool
package com.emc.mongoose.api.metrics.logging;
import static com.emc.mongoose.api.common.Constants.MIB;
import static com.emc.mongoose.api.metrics.MetricsContext.Snapshot;
import com.emc.mongoose.api.metrics.MetricsContext;
import com.emc.mongoose.api.model.io.IoType;
import com.emc.mongoose.ui.log.LogMessageBase;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import org.apache.logging.log4j.message.AsynchronouslyFormattable;
/**
Created by andrey on 12.12.16.
*/
@AsynchronouslyFormattable
public final class ExtResultsXmlLogMessage
extends LogMessageBase {
private static final DateFormat FMT_DATE_RESULTS = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss") {
{
setTimeZone(TimeZone.getTimeZone("UTC"));
}
};
private final MetricsContext metricsCtx;
public ExtResultsXmlLogMessage(final MetricsContext metricsCtx) {
this.metricsCtx = metricsCtx;
}
@Override
public final void formatTo(final StringBuilder buffer) {
buffer.append(" \n");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy