All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.emc.mongoose.api.metrics.logging.ExtResultsXmlLogMessage Maven / Gradle / Ivy

There is a newer version: 4.0.0-alpha5
Show newest version
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