|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.portico.core.MainProperties
public class MainProperties
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 |
---|
private static String RTI_HOME
private static String CONFIG_FILE
private static boolean USE_SHUTDOWN_HOOK
private static boolean USE_DEAFULT_CONFIG
private static String PLUGIN_DIR
private static boolean DIAGNOSTIC_RUN
private static boolean USE_MULTICAST_REGISTRY
private static boolean START_BOOTSTRAPS_STRICT
private static boolean USE_MOM
private static boolean PRINT_FOM
private static Map<String,String> NON_STANDARD
public static final String KEY_LOG_LEVEL
Constructor Detail |
---|
private MainProperties()
Method Detail |
---|
public static String getPorticoHome()
public static void setPorticoHome(String home)
public static String getConfigFile()
public static void setConfigFile(String file)
public static boolean useDefaultConfig()
public static void setUseDefaultConfig(boolean use)
public static boolean useShutdownHook()
public static void setShutdownHook(boolean hook)
public static String getPluginDirectory()
public static void setPluginDirectory(String pluginDir)
public static boolean isDiagnosticRun()
public static void setDiagnosticRun(boolean run)
public static void setMulticastRegistry(boolean use)
public static boolean useMulticastRegsitry()
public static void setStrictBootstrapStartup(boolean strict)
public static boolean isStrictBootstrapStartup()
public static void setUseMom(boolean use)
public static boolean useMom()
public static void setPrintFom(boolean printFom)
public static boolean isPrintFom()
public static Map<String,String> getNonStandardArguments()
|
copyright The Portico Project 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |