public abstract class Factory extends Object
| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
abstract OptionSet |
getOptionSet()
Create or retrieve the OptionSet used for MMTk options.
|
abstract ActivePlan |
newActivePlan()
Create a new ActivePlan instance using the appropriate VM-specific
concrete ActivePlan sub-class.
|
abstract Assert |
newAssert()
Create a new Assert instance using the appropriate VM-specific
concrete Assert sub-class.
|
abstract Barriers |
newBarriers()
Create a new Barriers instance using the appropriate VM-specific
concrete Barriers sub-class.
|
abstract BuildTimeConfig |
newBuildTimeConfig()
Create a new BuildTimeConfig instance using the appropriate VM-specific
concrete BuildTimeConfig sub-class.
|
abstract Collection |
newCollection()
Create a new Collection instance using the appropriate VM-specific
concrete Collection sub-class.
|
abstract Debug |
newDebug() |
abstract MMTk_Events |
newEvents()
Create a new MMTk_Events instance using the appropriate VM-specific
concrete MMTk_Events sub-class.
|
abstract FinalizableProcessor |
newFinalizableProcessor()
Create a new FinalizbleProcessor instance using the appropriate VM-specific
concrete FinalizableProcessor sub-class.
|
abstract 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.
|
abstract 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.
|
abstract ServerInterpreter |
newGCspyServerInterpreter()
Create a new ServerInterpreter instance using the appropriate VM-specific
concrete ServerInterpreter sub-class.
|
abstract 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.
|
abstract 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.
|
abstract Util |
newGCspyUtil()
Create a new Util instance using the appropriate VM-specific
concrete Util sub-class.
|
abstract Lock |
newLock(String name)
Create a new Lock instance using the appropriate VM-specific
concrete Lock sub-class.
|
abstract Memory |
newMemory()
Create a new Memory instance using the appropriate VM-specific
concrete Memory sub-class.
|
abstract Monitor |
newMonitor(String name)
Create a new Monitor instance using the appropriate VM-specific
concrete Lock sub-class.
|
abstract ObjectModel |
newObjectModel()
Create a new ObjectModel instance using the appropriate VM-specific
concrete ObjectModel sub-class.
|
abstract ReferenceProcessor |
newReferenceProcessor(ReferenceProcessor.Semantics semantics)
Creates a new ReferenceProcessor instance using the appropriate VM-specific
concrete ReferenceProcessor sub-class.
|
abstract Scanning |
newScanning()
Create a new Scanning instance using the appropriate VM-specific
concrete Scanning sub-class.
|
abstract Statistics |
newStatistics()
Create a new Statistics instance using the appropriate VM-specific
concrete Statistics sub-class.
|
abstract Strings |
newStrings()
Create a new Strings instance using the appropriate VM-specific
concrete Strings sub-class.
|
abstract SynchronizedCounter |
newSynchronizedCounter()
Create a new SynchronizedCounter instance using the appropriate
VM-specific concrete SynchronizedCounter sub-class.
|
abstract TraceInterface |
newTraceInterface()
Create a new TraceInterface instance using the appropriate VM-specific
concrete TraceInterface sub-class.
|
public Factory()
public abstract OptionSet getOptionSet()
public abstract ActivePlan newActivePlan()
ActivePlanpublic abstract Assert newAssert()
Assertpublic abstract Barriers newBarriers()
Barrierspublic abstract Collection newCollection()
Collectionpublic abstract BuildTimeConfig newBuildTimeConfig()
Collectionpublic abstract Lock newLock(String name)
name - The string to be associated with this lock instanceLockpublic abstract Monitor newMonitor(String name)
name - The string to be associated with this monitor instanceMonitorpublic abstract Memory newMemory()
Memorypublic abstract ObjectModel newObjectModel()
ObjectModelpublic abstract ReferenceProcessor newReferenceProcessor(ReferenceProcessor.Semantics semantics)
semantics - the semantics that the reference processor will useReferenceProcessorpublic abstract FinalizableProcessor newFinalizableProcessor()
FinalizableProcessorpublic abstract Scanning newScanning()
Scanningpublic abstract Statistics newStatistics()
Statisticspublic abstract Strings newStrings()
Stringspublic abstract SynchronizedCounter newSynchronizedCounter()
SynchronizedCounterpublic abstract TraceInterface newTraceInterface()
TraceInterfacepublic abstract MMTk_Events newEvents()
public abstract Util newGCspyUtil()
Utilpublic abstract ServerInterpreter newGCspyServerInterpreter()
ServerInterpreterpublic abstract ServerSpace newGCspyServerSpace(ServerInterpreter serverInterpreter, String serverName, String driverName, String title, String blockInfo, int tileNum, String unused, boolean mainSpace)
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 spaceServerSpacepublic abstract 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)
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 streamsummary - Is a summary enabled?IntStreampublic abstract 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)
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 streamsummary - Is a summary enabled?IntStreampublic abstract 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)
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 streamsummary - Is a summary enabled?IntStream