public class HeapSpace extends Object implements HeapSpaceMBean
Constructor and Description |
---|
HeapSpace() |
Modifier and Type | Method and Description |
---|---|
int |
getBlockSize() |
int |
getCreateInterval() |
int |
getLongLifetime() |
double |
getLongProbability() |
int |
getMediumLifetime() |
double |
getMediumProbability() |
int |
getShortLifetime() |
static void |
main(String... args) |
PossibleConfiguration |
parseCommandLine(String... args)
Parses the command line arguments into a
Configuration object. |
void |
run(PossibleConfiguration config) |
void |
run(String... args) |
void |
setBlockSize(int blockSize) |
void |
setCreateInterval(int millis) |
void |
setLongLifetime(int longLifetime) |
void |
setLongProbability(double prob) |
void |
setMediumLifetime(int mediumLifetime) |
void |
setMediumProbability(double prob) |
void |
setShortLifetime(int shortLifetime) |
void |
stop()
Stops the creation of new objects.
|
public void run(String... args) throws InterruptedException, ExecutionException
public void run(PossibleConfiguration config) throws InterruptedException, ExecutionException
config
- must have values.InterruptedException
ExecutionException
public PossibleConfiguration parseCommandLine(String... args)
Configuration
object.args
- the command line argumentsConfiguration
or null
if help was printed.public void stop()
stop
in interface HeapSpaceMBean
public int getBlockSize()
getBlockSize
in interface HeapSpaceMBean
public void setBlockSize(int blockSize)
setBlockSize
in interface HeapSpaceMBean
public void setCreateInterval(int millis)
setCreateInterval
in interface HeapSpaceMBean
public int getCreateInterval()
getCreateInterval
in interface HeapSpaceMBean
public int getShortLifetime()
getShortLifetime
in interface HeapSpaceMBean
public void setShortLifetime(int shortLifetime)
setShortLifetime
in interface HeapSpaceMBean
public int getMediumLifetime()
getMediumLifetime
in interface HeapSpaceMBean
public void setMediumLifetime(int mediumLifetime)
setMediumLifetime
in interface HeapSpaceMBean
public int getLongLifetime()
getLongLifetime
in interface HeapSpaceMBean
public void setLongLifetime(int longLifetime)
setLongLifetime
in interface HeapSpaceMBean
public void setMediumProbability(double prob)
setMediumProbability
in interface HeapSpaceMBean
public double getMediumProbability()
getMediumProbability
in interface HeapSpaceMBean
public void setLongProbability(double prob)
setLongProbability
in interface HeapSpaceMBean
public double getLongProbability()
getLongProbability
in interface HeapSpaceMBean
Copyright © 2025. All rights reserved.