| java.lang.Object de.mcs.jmeasurement.SnapShot
SnapShot | public class SnapShot (Code) | | This class contains all data for a snapshot.
author: w.klaas |
Constructor Summary | |
public | SnapShot(String snapshotname) Constructor to create a snapshot with the desired name. |
SnapShot | public SnapShot(String snapshotname)(Code) | | Constructor to create a snapshot with the desired name.
Parameters: snapshotname - name of this snapshot. |
cloneMeasurePoints | final public void cloneMeasurePoints(Map<String, MeasurePoint> orgMeasurePoints)(Code) | | Now cloning all measurepoints for this snapshot.
Parameters: orgMeasurePoints - map with all measure points |
getDate | final public Date getDate()(Code) | | date of the snapshot. |
getFreeMemory | final public long getFreeMemory()(Code) | | free memory of this snapshot. |
getMaxMemory | final public long getMaxMemory()(Code) | | max memory of this snapshot. |
getMeasurePoints | final public MeasurePoint[] getMeasurePoints(String pointName)(Code) | | getting an array of measurement points. The pointname is a regular
expression of the desired points.
Parameters: pointName - regular expression of the desired point names (or null for allpoints) MeasurePoint[] the desired MeasurePoints |
getName | final public String getName()(Code) | | name of the snapshot. |
getProperties | final public Properties getProperties()(Code) | | getting the properties ofthis snapshot.
Properties |
getReport | final public void getReport(String pointname, MeasureDataRenderer renderer, int priority, Writer output) throws RendererMustNotBeNullException, IOException(Code) | | getting a report for this snapshot.
Parameters: pointname - regular expression to match the point names (or null for allpoints) Parameters: renderer - the renderer to use. Parameters: priority - the priority of points, which has to be added to the report. Parameters: output - the writer to report to. throws: RendererMustNotBeNullException - if something goes wrong throws: IOException - if something goes wrong with the writer IO operation. |
getTotalMemory | final public long getTotalMemory()(Code) | | total memory of this snapshot. |
register | final public void register(MeasurePoint measurePoint)(Code) | | Adding a new measurepoint to the point registration.
Parameters: measurePoint - measure point to add |
saveToXML | final public void saveToXML(DataWriter writer) throws SAXException, IOException(Code) | | saving this snapshot to an datawriter.
Parameters: writer - the writer uto use. throws: SAXException - if something goes wrong. throws: IOException - if something goes wrong. |
|
|