Class HelplineEvaluation
- java.lang.Object
- 
- jadex.micro.examples.helplinemega.HelplineEvaluation
 
- 
 public class HelplineEvaluation extends java.lang.ObjectMain class allowing to run different evaluation scenarios for helpline scalability.
- 
- 
Constructor SummaryConstructors Constructor Description HelplineEvaluation()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description protected static IPlatformConfigurationcreateConfig()Create a new default config.protected static IExternalAccess[]createHelplinePlatforms(IPlatformConfiguration config, int cnt, java.lang.String[] args)Create a number of platforms (e.g.protected static voidcreateOutputFile()Create the output file and return the file name.protected static longcreatePersons(IExternalAccess[] platforms, int cnt, java.lang.String[] args)Create a number of person-specific helpline components on the given platforms.protected static IExternalAccess[]createPlatforms(IPlatformConfiguration config, int cnt, java.lang.String type, java.lang.String[] args)Create a number of platforms (e.g.protected static voidcreateRelayAndSSPs(IPlatformConfiguration config, java.lang.String[] args)Create a local relay and SSP platformsprotected static voidcreateSPs(IPlatformConfiguration config, int cnt, java.lang.String[] args)Create a number of SP platforms.protected static IPlatformConfigurationgetConfig(java.lang.String[] args)Parse args into config and extract settings into static fields.static doublegetProcessCpuLoad()static voidmain(java.lang.String[] args)protected static voidwriteEntry(double creation, double search, int numfound)Write an entry to the output file.
 
- 
- 
- 
Method Detail- 
mainpublic static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
getConfigprotected static IPlatformConfiguration getConfig(java.lang.String[] args) Parse args into config and extract settings into static fields.- Parameters:
- args- The program arguments.
- Returns:
- The parsed platform configuration.
 
 - 
createRelayAndSSPsprotected static void createRelayAndSSPs(IPlatformConfiguration config, java.lang.String[] args) Create a local relay and SSP platforms- Parameters:
- config- The platform config.
 
 - 
createSPsprotected static void createSPs(IPlatformConfiguration config, int cnt, java.lang.String[] args) Create a number of SP platforms.- Parameters:
- config- The platform config.
- cnt- The number of platforms
 
 - 
createHelplinePlatformsprotected static IExternalAccess[] createHelplinePlatforms(IPlatformConfiguration config, int cnt, java.lang.String[] args) Create a number of platforms (e.g. SPs or helpline nodes).- Parameters:
- config- The platform config.
- cnt- The number of platforms
- Returns:
- The created platforms.
 
 - 
createPlatformsprotected static IExternalAccess[] createPlatforms(IPlatformConfiguration config, int cnt, java.lang.String type, java.lang.String[] args) Create a number of platforms (e.g. SPs or helpline nodes).- Parameters:
- config- The platform config.
- cnt- The number of platforms
- Returns:
- The created platforms.
 
 - 
createPersonsprotected static long createPersons(IExternalAccess[] platforms, int cnt, java.lang.String[] args) throws java.lang.Exception Create a number of person-specific helpline components on the given platforms.- Parameters:
- platforms- The platforms to create new nodes on.
- cnt- The number of components to create on each platform.
- Returns:
- The time needed for creation of cnt services as preformatted string.
- Throws:
- java.lang.Exception
 
 - 
createOutputFileprotected static void createOutputFile() throws java.io.IOExceptionCreate the output file and return the file name.- Throws:
- java.io.IOException
 
 - 
writeEntryprotected static void writeEntry(double creation, double search, int numfound) throws java.io.IOExceptionWrite an entry to the output file.- Parameters:
- creation- Service creation time.
- search- Service search time.
- numfound- Number of services found by search.
- Throws:
- java.io.IOException
 
 - 
createConfigprotected static IPlatformConfiguration createConfig() Create a new default config.
 - 
getProcessCpuLoadpublic static double getProcessCpuLoad() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 
- 
 
-