|
Jvmstat | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile
public class 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.
File
Field Summary | |
---|---|
static String |
dirNamePrefix
The file name prefix for PerfData shared memory files. |
static String |
fileNamePattern
The file name pattern for PerfData shared memory files. |
static String |
tmpDirName
The name of the of the system dependent temporary directory |
static String |
tmpFileNamePattern
The file name pattern for 1.4.1 PerfData shared memory files. |
static String |
userDirNamePattern
The directory name pattern for the user directories. |
Method Summary | |
---|---|
static File |
getFile(int lvmid)
Get a File object for the instrumentation backing store file for the JVM identified by the given local Vm Identifier. |
static File |
getFile(String user,
int lvmid)
Return the File object for the backing store file for the specified Java Virtual Machine. |
static int |
getLocalVmId(File file)
Method to extract a local Java Virtual Machine Identifier from the file name of the given File object. |
static String |
getTempDirectory()
Return the name of the temporary directory being searched for HotSpot PerfData backing store files. |
static String |
getTempDirectory(String user)
Return the name of the temporary directory to be searched for HotSpot PerfData backing store files for a given user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String tmpDirName
public static final String dirNamePrefix
This prefix must be kept in sync with the prefix used by the JVM.
public static final String userDirNamePattern
public static final String fileNamePattern
This pattern must be kept in synch with the file name pattern used by the 1.4.2 and later HotSpot JVM.
public static final String tmpFileNamePattern
This pattern must be kept in synch with the file name pattern used by the 1.4.1 HotSpot JVM.
Method Detail |
---|
public static File getFile(int lvmid)
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
File
,
getTempDirectory()
public static File getFile(String user, int lvmid)
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 namelvmid
- the local Java Virtual Machine Identifier for the target
File
,
getTempDirectory()
public static int getLocalVmId(File file)
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 patternpublic static String getTempDirectory()
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.
public static String getTempDirectory(String 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.
|
Jvmstat | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |