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
IOExceptionpublic String getOutputLocation()
getOutputLocation in interface MetricSerializerMXBeanpublic File getOutputFile()
public void resetOutput(String path) throws IOException
resetOutput in interface MetricSerializerMXBeanIOExceptionpublic void resetOutput() throws IOException
resetOutput in interface MetricSerializerMXBeanIOExceptionpublic void flushOuput() throws IOException
IOExceptionpublic void closeOutput() throws IOException
closeOutput in interface MetricSerializerMXBeanIOExceptionpublic int getCount()
getCount in interface MetricSerializerMXBeanpublic long getLastUsage()
getLastUsage in interface MetricSerializerMXBeanCopyright © 2015 Nuxeo SA. All rights reserved.