org.nuxeo.runtime.management.metrics
Class MetricSerializer
java.lang.Object
org.nuxeo.runtime.management.metrics.MetricSerializer
- All Implemented Interfaces:
- MetricSerializerMXBean
public class MetricSerializer
- extends Object
- implements MetricSerializerMXBean
MetricSerializer
public MetricSerializer()
toStream
public void toStream(org.javasimon.Sample... samples)
throws IOException
- Throws:
IOException
getOutputLocation
public String getOutputLocation()
- Specified by:
getOutputLocation
in interface MetricSerializerMXBean
getOutputFile
public File getOutputFile()
resetOutput
public void resetOutput(String path)
throws IOException
- Specified by:
resetOutput
in interface MetricSerializerMXBean
- Throws:
IOException
resetOutput
public void resetOutput()
throws IOException
- Specified by:
resetOutput
in interface MetricSerializerMXBean
- Throws:
IOException
flushOuput
public void flushOuput()
throws IOException
- Throws:
IOException
closeOutput
public void closeOutput()
throws IOException
- Specified by:
closeOutput
in interface MetricSerializerMXBean
- Throws:
IOException
getCount
public int getCount()
- Specified by:
getCount
in interface MetricSerializerMXBean
getLastUsage
public long getLastUsage()
- Specified by:
getLastUsage
in interface MetricSerializerMXBean
Copyright © 2011 Nuxeo SAS. All Rights Reserved.