copyright The Portico Project 2008.

org.portico.core
Class MainProperties

java.lang.Object
  extended by org.portico.core.MainProperties

public class MainProperties
extends Object

Class that provides a central location for a number of constant or configuration elements. While I could have provided direct access to the various static variables (rather than providing static methods), there are certain situations where some of the variables are synthetic or a combination of other values. In an attempt to make sure that all access to the information in this class was through the same mechanism, I went the way I did. Don't like it? Neither do I much.


Field Summary
private static String CONFIG_FILE
          The location of the configuration file.
private static boolean DIAGNOSTIC_RUN
          Is this execution just to print the system info?
static String KEY_LOG_LEVEL
          The system property key that defines the log level to use for the RTI
private static Map<String,String> NON_STANDARD
          Map of non-standard arguments supplied on the command line
private static String PLUGIN_DIR
          Directory where plugins are located
private static boolean PRINT_FOM
          Should the RTI log the FOM structure when a federation is created?
private static String RTI_HOME
          The location of the portico installation
private static boolean START_BOOTSTRAPS_STRICT
          Generally, bootstrap failures are not fatal to the RTI.
private static boolean USE_DEAFULT_CONFIG
          Should Portico process the default configuration file first?
private static boolean USE_MOM
          Should the MOM be enabled for new federations or not?
private static boolean USE_MULTICAST_REGISTRY
          Should the discovery registry be started?
private static boolean USE_SHUTDOWN_HOOK
          Will portico use a shutdown hook for proper cleanup or not?
 
Constructor Summary
private MainProperties()
           
 
Method Summary
static String getConfigFile()
           
static Map<String,String> getNonStandardArguments()
           
static String getPluginDirectory()
           
static String getPorticoHome()
           
static boolean isDiagnosticRun()
           
static boolean isPrintFom()
           
static boolean isStrictBootstrapStartup()
           
static void setConfigFile(String file)
           
static void setDiagnosticRun(boolean run)
           
static void setMulticastRegistry(boolean use)
           
static void setPluginDirectory(String pluginDir)
           
static void setPorticoHome(String home)
           
static void setPrintFom(boolean printFom)
           
static void setShutdownHook(boolean hook)
           
static void setStrictBootstrapStartup(boolean strict)
           
static void setUseDefaultConfig(boolean use)
           
static void setUseMom(boolean use)
           
static boolean useDefaultConfig()
           
static boolean useMom()
           
static boolean useMulticastRegsitry()
           
static boolean useShutdownHook()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RTI_HOME

private static String RTI_HOME
The location of the portico installation


CONFIG_FILE

private static String CONFIG_FILE
The location of the configuration file. This should be set through the command line processor and will be used only if it is not empty. The default configuration file (as specified in the RTIExec.CONFIG_DEFAULT field) will be applied before this file so as to provide the default behaviour.


USE_SHUTDOWN_HOOK

private static boolean USE_SHUTDOWN_HOOK
Will portico use a shutdown hook for proper cleanup or not?


USE_DEAFULT_CONFIG

private static boolean USE_DEAFULT_CONFIG
Should Portico process the default configuration file first?


PLUGIN_DIR

private static String PLUGIN_DIR
Directory where plugins are located


DIAGNOSTIC_RUN

private static boolean DIAGNOSTIC_RUN
Is this execution just to print the system info? if it is, the execution will not start


USE_MULTICAST_REGISTRY

private static boolean USE_MULTICAST_REGISTRY
Should the discovery registry be started?


START_BOOTSTRAPS_STRICT

private static boolean START_BOOTSTRAPS_STRICT
Generally, bootstrap failures are not fatal to the RTI. If this is set to true, a failing bootstrap will cause the RTI startup to fail


USE_MOM

private static boolean USE_MOM
Should the MOM be enabled for new federations or not?


PRINT_FOM

private static boolean PRINT_FOM
Should the RTI log the FOM structure when a federation is created? (default: false)


NON_STANDARD

private static Map<String,String> NON_STANDARD
Map of non-standard arguments supplied on the command line


KEY_LOG_LEVEL

public static final String KEY_LOG_LEVEL
The system property key that defines the log level to use for the RTI

See Also:
Constant Field Values
Constructor Detail

MainProperties

private MainProperties()
Method Detail

getPorticoHome

public static String getPorticoHome()

setPorticoHome

public static void setPorticoHome(String home)

getConfigFile

public static String getConfigFile()

setConfigFile

public static void setConfigFile(String file)

useDefaultConfig

public static boolean useDefaultConfig()

setUseDefaultConfig

public static void setUseDefaultConfig(boolean use)

useShutdownHook

public static boolean useShutdownHook()

setShutdownHook

public static void setShutdownHook(boolean hook)

getPluginDirectory

public static String getPluginDirectory()

setPluginDirectory

public static void setPluginDirectory(String pluginDir)

isDiagnosticRun

public static boolean isDiagnosticRun()

setDiagnosticRun

public static void setDiagnosticRun(boolean run)

setMulticastRegistry

public static void setMulticastRegistry(boolean use)

useMulticastRegsitry

public static boolean useMulticastRegsitry()

setStrictBootstrapStartup

public static void setStrictBootstrapStartup(boolean strict)

isStrictBootstrapStartup

public static boolean isStrictBootstrapStartup()

setUseMom

public static void setUseMom(boolean use)

useMom

public static boolean useMom()

setPrintFom

public static void setPrintFom(boolean printFom)

isPrintFom

public static boolean isPrintFom()

getNonStandardArguments

public static Map<String,String> getNonStandardArguments()

copyright The Portico Project 2008.