Creates and updates a memory-mapped file suitable for reading by the PCP MMV PMDA. The method used to 'render' the Java values into the file (converting them to a corresponding PCP Type and byte array) are determined by {@link TypeHandler TypeHandlers}; some default TypeHandlers are supplied (see {@link DefaultTypeHandlers#getDefaultMappings()}) but additional ones can be supplied for a particular Java class ( {@link #registerType(Class,TypeHandler)}, or on a metric-by-metric basis.
Standard lifecycle for this class is:Adding metrics after the file is started will result in an {@link IllegalStateException}, as will updating metric values before it's started.
This class currently has a few important limitations:
|
|