|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.vm.Factory org.jikesrvm.mm.mmtk.Factory
public final class Factory
This is a VM-specific class which defines factory methods for VM-specific types which must be instantiated within MMTk.
Factory
Field Summary | |
---|---|
private static String |
CONFIG_FILE_PROPERTY
|
private static String |
DEFAULT_MMTK_PROPERTIES
|
Constructor Summary | |
---|---|
Factory()
|
Method Summary | |
---|---|
OptionSet |
getOptionSet()
Create or retrieve the OptionSet used for MMTk options. |
ActivePlan |
newActivePlan()
Create a new ActivePlan instance using the appropriate VM-specific concrete ActivePlan sub-class. |
Assert |
newAssert()
Create a new Assert instance using the appropriate VM-specific concrete Assert sub-class. |
Barriers |
newBarriers()
Create a new Barriers instance using the appropriate VM-specific concrete Barriers sub-class. |
BuildTimeConfig |
newBuildTimeConfig()
Create a new BuildTimeConfig instance using the appropriate VM-specific concrete BuildTimeConfig sub-class. |
Collection |
newCollection()
Create a new Collection instance using the appropriate VM-specific concrete Collection sub-class. |
Debug |
newDebug()
Create a new debug object |
MMTk_Events |
newEvents()
Create a new MMTk_Events instance using the appropriate VM-specific concrete MMTk_Events sub-class. |
FinalizableProcessor |
newFinalizableProcessor()
Create a new FinalizbleProcessor instance using the appropriate VM-specific concrete FinalizableProcessor sub-class. |
ByteStream |
newGCspyByteStream(AbstractDriver driver,
String name,
byte minValue,
byte maxValue,
byte zeroValue,
byte defaultValue,
String stringPre,
String stringPost,
int presentation,
int paintStyle,
int indexMaxStream,
Color colour,
boolean summary)
Create a new ByteStream instance using the appropriate VM-specific concrete ByteStream sub-class. |
IntStream |
newGCspyIntStream(AbstractDriver driver,
String name,
int minValue,
int maxValue,
int zeroValue,
int defaultValue,
String stringPre,
String stringPost,
int presentation,
int paintStyle,
int indexMaxStream,
Color colour,
boolean summary)
Create a new IntStream instance using the appropriate VM-specific concrete IntStream sub-class. |
ServerInterpreter |
newGCspyServerInterpreter()
Create a new ServerInterpreter instance using the appropriate VM-specific concrete ServerInterpreter sub-class. |
ServerSpace |
newGCspyServerSpace(ServerInterpreter serverInterpreter,
String serverName,
String driverName,
String title,
String blockInfo,
int tileNum,
String unused,
boolean mainSpace)
Create a new ServerSpace instance using the appropriate VM-specific concrete ServerSpace sub-class. |
ShortStream |
newGCspyShortStream(AbstractDriver driver,
String name,
short minValue,
short maxValue,
short zeroValue,
short defaultValue,
String stringPre,
String stringPost,
int presentation,
int paintStyle,
int indexMaxStream,
Color colour,
boolean summary)
Create a new ShortStream instance using the appropriate VM-specific concrete ShortStream sub-class. |
Util |
newGCspyUtil()
Create a new Util instance using the appropriate VM-specific concrete Util sub-class. |
Lock |
newLock(String name)
Create a new Lock instance using the appropriate VM-specific concrete Lock sub-class. |
Memory |
newMemory()
Create a new Memory instance using the appropriate VM-specific concrete Memory sub-class. |
Monitor |
newMonitor(String name)
Create a new Monitor instance using the appropriate VM-specific concrete Lock sub-class. |
ObjectModel |
newObjectModel()
Create a new ObjectModel instance using the appropriate VM-specific concrete ObjectModel sub-class. |
ReferenceProcessor |
newReferenceProcessor(ReferenceProcessor.Semantics semantics)
Create a new ReferenceProcessor instance using the appropriate VM-specific concrete ReferenceProcessor sub-class. |
Scanning |
newScanning()
Create a new Scanning instance using the appropriate VM-specific concrete Scanning sub-class. |
Statistics |
newStatistics()
Create a new Statistics instance using the appropriate VM-specific concrete Statistics sub-class. |
Strings |
newStrings()
Create a new Strings instance using the appropriate VM-specific concrete Strings sub-class. |
SynchronizedCounter |
newSynchronizedCounter()
Create a new SynchronizedCounter instance using the appropriate VM-specific concrete SynchronizedCounter sub-class. |
TraceInterface |
newTraceInterface()
Create a new TraceInterface instance using the appropriate VM-specific concrete TraceInterface sub-class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String DEFAULT_MMTK_PROPERTIES
private static final String CONFIG_FILE_PROPERTY
Constructor Detail |
---|
public Factory()
Method Detail |
---|
public OptionSet getOptionSet()
Factory
getOptionSet
in class Factory
public ActivePlan newActivePlan()
Factory
newActivePlan
in class Factory
ActivePlan
public Assert newAssert()
Factory
newAssert
in class Factory
Assert
public Barriers newBarriers()
Factory
newBarriers
in class Factory
Barriers
public Collection newCollection()
Factory
newCollection
in class Factory
Collection
public BuildTimeConfig newBuildTimeConfig()
Factory
newBuildTimeConfig
in class Factory
Collection
public Lock newLock(String name)
Factory
newLock
in class Factory
name
- The string to be associated with this lock instance
Lock
public Monitor newMonitor(String name)
Factory
newMonitor
in class Factory
name
- The string to be associated with this monitor instance
Monitor
public Memory newMemory()
Factory
newMemory
in class Factory
Memory
public ObjectModel newObjectModel()
Factory
newObjectModel
in class Factory
ObjectModel
public ReferenceProcessor newReferenceProcessor(ReferenceProcessor.Semantics semantics)
Factory
newReferenceProcessor
in class Factory
ReferenceProcessor
public FinalizableProcessor newFinalizableProcessor()
Factory
newFinalizableProcessor
in class Factory
FinalizableProcessor
public Scanning newScanning()
Factory
newScanning
in class Factory
Scanning
public Statistics newStatistics()
Factory
newStatistics
in class Factory
Statistics
public Strings newStrings()
Factory
newStrings
in class Factory
Strings
public SynchronizedCounter newSynchronizedCounter()
Factory
newSynchronizedCounter
in class Factory
SynchronizedCounter
public TraceInterface newTraceInterface()
Factory
newTraceInterface
in class Factory
TraceInterface
public MMTk_Events newEvents()
Factory
newEvents
in class Factory
public Debug newDebug()
Factory
newDebug
in class Factory
public Util newGCspyUtil()
newGCspyUtil
in class Factory
Util
public ServerInterpreter newGCspyServerInterpreter()
Factory
newGCspyServerInterpreter
in class Factory
ServerInterpreter
public ServerSpace newGCspyServerSpace(ServerInterpreter serverInterpreter, String serverName, String driverName, String title, String blockInfo, int tileNum, String unused, boolean mainSpace)
Factory
newGCspyServerSpace
in class Factory
serverInterpreter
- The server that owns this spaceserverName
- The server's namedriverName
- The space driver's nametitle
- Title for the spaceblockInfo
- A label for each blocktileNum
- Max number of tiles in this spaceunused
- A label for unused blocksmainSpace
- Whether this space is the main space
ServerSpace
public ByteStream newGCspyByteStream(AbstractDriver driver, String name, byte minValue, byte maxValue, byte zeroValue, byte defaultValue, String stringPre, String stringPost, int presentation, int paintStyle, int indexMaxStream, Color colour, boolean summary)
Factory
newGCspyByteStream
in class Factory
driver
- The driver that owns this Streamname
- The name of the stream (e.g. "Used space")minValue
- The minimum value for any item in this stream.
Values less than this will be represented as "minValue-"maxValue
- The maximum value for any item in this stream.
Values greater than this will be represented as "maxValue+"zeroValue
- The zero value for this streamdefaultValue
- The default value for this streamstringPre
- A string to prefix values (e.g. "Used: ")stringPost
- A string to suffix values (e.g. " bytes.")presentation
- How a stream value is to be presented.paintStyle
- How the value is to be painted.indexMaxStream
- The index of the maximum stream if the presentation is *_VAR.colour
- The default colour for tiles of this stream
IntStream
public IntStream newGCspyIntStream(AbstractDriver driver, String name, int minValue, int maxValue, int zeroValue, int defaultValue, String stringPre, String stringPost, int presentation, int paintStyle, int indexMaxStream, Color colour, boolean summary)
Factory
newGCspyIntStream
in class Factory
driver
- The driver that owns this Streamname
- The name of the stream (e.g. "Used space")minValue
- The minimum value for any item in this stream.
Values less than this will be represented as "minValue-"maxValue
- The maximum value for any item in this stream.
Values greater than this will be represented as "maxValue+"zeroValue
- The zero value for this streamdefaultValue
- The default value for this streamstringPre
- A string to prefix values (e.g. "Used: ")stringPost
- A string to suffix values (e.g. " bytes.")presentation
- How a stream value is to be presented.paintStyle
- How the value is to be painted.indexMaxStream
- The index of the maximum stream if the presentation is *_VAR.colour
- The default colour for tiles of this stream
IntStream
public ShortStream newGCspyShortStream(AbstractDriver driver, String name, short minValue, short maxValue, short zeroValue, short defaultValue, String stringPre, String stringPost, int presentation, int paintStyle, int indexMaxStream, Color colour, boolean summary)
Factory
newGCspyShortStream
in class Factory
driver
- The driver that owns this Streamname
- The name of the stream (e.g. "Used space")minValue
- The minimum value for any item in this stream.
Values less than this will be represented as "minValue-"maxValue
- The maximum value for any item in this stream.
Values greater than this will be represented as "maxValue+"zeroValue
- The zero value for this streamdefaultValue
- The default value for this streamstringPre
- A string to prefix values (e.g. "Used: ")stringPost
- A string to suffix values (e.g. " bytes.")presentation
- How a stream value is to be presented.paintStyle
- How the value is to be painted.indexMaxStream
- The index of the maximum stream if the presentation is *_VAR.colour
- The default colour for tiles of this stream
IntStream
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |