public class HeapDump extends Object implements HeapDumpMBean
Constructor and Description |
---|
HeapDump() |
Modifier and Type | Method and Description |
---|---|
String |
createHeapDump() |
String[] |
getCmd() |
int |
getCurrentHeaps() |
int |
getMaxHeaps() |
String |
getOutputFileName() |
long |
getPid() |
long |
getQuietPeriod() |
boolean |
isEnabled() |
boolean |
onMemoryShortage() |
void |
setCmd(String[] cmd) |
void |
setCurrentHeaps(int currentHeaps) |
void |
setEnabled(boolean enabled) |
void |
setMaxHeaps(int maxHeaps) |
void |
setOutputFileName(String name) |
void |
setQuietPeriod(long millis) |
public long getPid()
getPid
in interface HeapDumpMBean
public String[] getCmd()
getCmd
in interface HeapDumpMBean
public void setCmd(String[] cmd)
setCmd
in interface HeapDumpMBean
public String getOutputFileName()
getOutputFileName
in interface HeapDumpMBean
public void setOutputFileName(String name)
setOutputFileName
in interface HeapDumpMBean
public boolean isEnabled()
isEnabled
in interface HeapDumpMBean
public void setEnabled(boolean enabled)
setEnabled
in interface HeapDumpMBean
public int getMaxHeaps()
getMaxHeaps
in interface HeapDumpMBean
public void setMaxHeaps(int maxHeaps)
setMaxHeaps
in interface HeapDumpMBean
public int getCurrentHeaps()
getCurrentHeaps
in interface HeapDumpMBean
public void setCurrentHeaps(int currentHeaps)
setCurrentHeaps
in interface HeapDumpMBean
public long getQuietPeriod()
getQuietPeriod
in interface HeapDumpMBean
public void setQuietPeriod(long millis)
setQuietPeriod
in interface HeapDumpMBean
public String createHeapDump() throws IOException, InterruptedException
createHeapDump
in interface HeapDumpMBean
IOException
InterruptedException
public boolean onMemoryShortage()
onMemoryShortage
in interface HeapDumpMBean
Copyright © GigaSpaces.