public class MetricSerializer extends Object implements MetricSerializerMXBean
Modifier and Type | Field and Description |
---|---|
protected int |
count |
protected File |
file |
protected long |
lastUsage |
protected ObjectOutputStream |
outputStream |
Constructor and Description |
---|
MetricSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
closeOutput() |
void |
flushOuput() |
int |
getCount() |
long |
getLastUsage() |
File |
getOutputFile() |
String |
getOutputLocation() |
void |
resetOutput() |
void |
resetOutput(String path) |
void |
toStream(org.javasimon.Sample... samples) |
protected ObjectOutputStream outputStream
protected int count
protected long lastUsage
public MetricSerializer()
public void toStream(org.javasimon.Sample... samples) throws IOException
IOException
public String getOutputLocation()
getOutputLocation
in interface MetricSerializerMXBean
public File getOutputFile()
public void resetOutput(String path) throws IOException
resetOutput
in interface MetricSerializerMXBean
IOException
public void resetOutput() throws IOException
resetOutput
in interface MetricSerializerMXBean
IOException
public void flushOuput() throws IOException
IOException
public void closeOutput() throws IOException
closeOutput
in interface MetricSerializerMXBean
IOException
public int getCount()
getCount
in interface MetricSerializerMXBean
public long getLastUsage()
getLastUsage
in interface MetricSerializerMXBean
Copyright © 2016 Nuxeo SA. All rights reserved.