java.lang.Object | |
↳ | sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile |
Class to provide translations from the local Vm Identifier name space into the file system name space and vice-versa.
Provides a factory for creating a File object to the backing store file for instrumentation shared memory region for a JVM identified by its Local Java Virtual Machine Identifier, or lvmid.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | dirNamePrefix | The file name prefix for PerfData shared memory files. | |||||||||
String | fileNamePattern | The file name pattern for PerfData shared memory files. | |||||||||
String | tmpFileNamePattern | The file name pattern for 1.4.1 PerfData shared memory files. | |||||||||
String | userDirNamePattern | The directory name pattern for the user directories. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
tmpDirName | The name of the of the system dependent temporary directory |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get a File object for the instrumentation backing store file
for the JVM identified by the given local Vm Identifier.
| |||||||||||
Return the File object for the backing store file for the specified Java
Virtual Machine.
| |||||||||||
Method to extract a local Java Virtual Machine Identifier from the
file name of the given File object.
| |||||||||||
Return the name of the temporary directory to be searched
for HotSpot PerfData backing store files for a given user.
| |||||||||||
Return the name of the temporary directory being searched for
HotSpot PerfData backing store files.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The file name prefix for PerfData shared memory files.
This prefix must be kept in sync with the prefix used by the JVM.
The file name pattern for PerfData shared memory files.
This pattern must be kept in synch with the file name pattern used by the 1.4.2 and later HotSpot JVM.
The file name pattern for 1.4.1 PerfData shared memory files.
This pattern must be kept in synch with the file name pattern used by the 1.4.1 HotSpot JVM.
The directory name pattern for the user directories.
Get a File object for the instrumentation backing store file for the JVM identified by the given local Vm Identifier.
This method looks for the most up to date backing store file for the given lvmid. It will search all the user specific directories in the temporary directory for the host operating system, which may be influenced by platform specific environment variables.
lvmid | the local Java Virtual Machine Identifier for the target |
---|
Return the File object for the backing store file for the specified Java Virtual Machine.
This method looks for the most up to date backing store file for the JVM identified by the given user name and lvmid. The directory searched is the temporary directory for the host operating system, which may be influenced by environment variables.
user | the user name |
---|---|
lvmid | the local Java Virtual Machine Identifier for the target |
Method to extract a local Java Virtual Machine Identifier from the file name of the given File object.
file | A File object representing the name of a shared memory region for a target JVM |
---|
IllegalArgumentException | Thrown if the file name does not conform to the expected pattern |
---|
Return the name of the temporary directory to be searched for HotSpot PerfData backing store files for a given user.
This method generally returns the name of a subdirectory of the directory indicated in the java.io.tmpdir property. However, on some platforms it may return a different directory, as the JVM implementation may store the PerfData backing store files in a different directory for performance reasons.
Return the name of the temporary directory being searched for HotSpot PerfData backing store files.
This method generally returns the value of the java.io.tmpdir property. However, on some platforms it may return a different directory, as the JVM implementation may store the PerfData backing store files in a different directory for performance reasons.