org.hawk.module.config
Class HawkConfigManager

java.lang.Object
  extended by org.hawk.module.config.HawkConfigManager

public class HawkConfigManager
extends java.lang.Object

This caches all the configs of hawk and target application as well.

See Also:
HawkConfig

Constructor Summary
HawkConfigManager()
           
 
Method Summary
static void cacheConfig()
          This caches the configs
static HawkCache getConfig()
          This returns map containing all configs.
static java.lang.String getHawkMainModule()
          Returns Hawk main module
static java.lang.String getTargetApp()
          This returns the target app's name
static java.lang.String getTargetApp(java.util.Properties props)
          This returns the target application's name
static java.lang.String getTargetMainModule()
          This returns target application's main module
static java.lang.String getTargetMainModule(java.util.Properties props)
          This returns target application's main module
static java.lang.String getTargetModulePackage()
          This returns target application's module package
static java.lang.String getTargetModulePackage(java.util.Properties props)
          This returns target application's module package
static void overrideModulesExecutionSequence()
          This overrides the module execution sequence as defined in the perf.conf which is provided as -D option with java
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HawkConfigManager

public HawkConfigManager()
Method Detail

getTargetApp

public static java.lang.String getTargetApp(java.util.Properties props)
This returns the target application's name

Parameters:
props - Properties containing all key value pair
Returns:
target app's name

getTargetApp

public static java.lang.String getTargetApp()
This returns the target app's name

Returns:
returns the target app's name

cacheConfig

public static void cacheConfig()
This caches the configs


getTargetMainModule

public static java.lang.String getTargetMainModule(java.util.Properties props)
This returns target application's main module

Parameters:
props - containing hawk.conf key value pair
Returns:
returns target application's main module

getTargetMainModule

public static java.lang.String getTargetMainModule()
This returns target application's main module

Returns:
returns target application's main module

getTargetModulePackage

public static java.lang.String getTargetModulePackage(java.util.Properties props)
This returns target application's module package

Parameters:
props - containing hawk.conf key value pair
Returns:
returns target application's module package

getTargetModulePackage

public static java.lang.String getTargetModulePackage()
This returns target application's module package

Returns:
returns target application's module package

getHawkMainModule

public static java.lang.String getHawkMainModule()
Returns Hawk main module

Returns:
returns hawk main module

overrideModulesExecutionSequence

public static void overrideModulesExecutionSequence()
This overrides the module execution sequence as defined in the perf.conf which is provided as -D option with java


getConfig

public static HawkCache getConfig()
This returns map containing all configs.

Returns:
returns map containing all configs.