Class AbstractMain
java.lang.Object
org.palladiosimulator.protocom.framework.java.se.AbstractMain
Abstract parent class of the main class of a QoS prototype. The class includes static, i.e., not
generator or model dependent, code like command line reading, taking measurements or setting up
prototyped resources.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DegreeOfAccuracyEnum
static String
Returns an assembly context from an argument string array.protected abstract String[][]
Returns an array of systems (class + name tuple).protected abstract void
protected abstract void
Starts all system elements by calling their main methods.protected abstract void
initialiseThreads
(de.uka.ipd.sdq.sensorframework.entities.Experiment exp, de.uka.ipd.sdq.sensorframework.entities.ExperimentRun expRun) Initialise threads and perform warmup, if requested.protected void
Main method to run the generated prototype.protected abstract void
Setup of resourceprotected void
-
Field Details
-
LOGGER
protected static final org.apache.log4j.Logger LOGGERRoot LOGGER of the whole application. Changing its configuration impacts all log output. -
threads
Threads used to simulate users. -
runProps
-
-
Constructor Details
-
AbstractMain
public AbstractMain()
-
-
Method Details
-
run
Main method to run the generated prototype. It implements the main workflow, i.e., parsing cmd line, setting up resources, datastores, RMI registry, etc.- Parameters:
args
- Command line arguments given for the prototype according to Apache CLI's configuration
-
startMeasurements
protected void startMeasurements() -
initAllocationStorage
protected abstract void initAllocationStorage() -
setupResources
protected abstract void setupResources()Setup of resource -
initialiseSystems
protected abstract void initialiseSystems()Starts all system elements by calling their main methods. -
getSystems
Returns an array of systems (class + name tuple).- Returns:
- [0]: class, [1]: name of each system element in this model
-
getAccuracy
-
initialiseThreads
protected abstract void initialiseThreads(de.uka.ipd.sdq.sensorframework.entities.Experiment exp, de.uka.ipd.sdq.sensorframework.entities.ExperimentRun expRun) Initialise threads and perform warmup, if requested.- Parameters:
exp
-expRun
-
-
getAssemblyContextFromArguments
Returns an assembly context from an argument string array.- Parameters:
args
-- Returns:
-