public abstract class AbstractPlatformConfiguration extends java.lang.Object implements IStarterConfiguration, IRootComponentConfiguration
IRootComponentConfiguration.AWAMECHANISM, IRootComponentConfiguration.KERNEL
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENT_FACTORY |
protected static java.util.Map<IComponentIdentifier,java.util.Map<java.lang.String,java.lang.Object>> |
platformmem
Global platform data.
|
AUTOSHUTDOWN, COMPONENT, CONFIGURATION_FILE, CONFIGURATION_NAME, DATA_ADDRESSBOOK, DATA_DEFAULT_LOCAL_TIMEOUT, DATA_DEFAULT_REMOTE_TIMEOUT, DATA_PARAMETERCOPY, DATA_REALTIMETIMEOUT, DATA_SERVICEREGISTRY, DEBUGFUTURES, DEBUGSERVICES, DEBUGSTEPS, DEFTIMEOUT, FALLBACK_COMPONENT_FACTORY, FALLBACK_PLATFORM_CONFIGURATION, MONITORING, NOSTACKCOMPACTION, OPENGL, PERSIST, PLATFORM_COMPONENT, PLATFORM_NAME, REGISTRY_SYNC
ADDRESS, ASYNCEXECUTION, AWADELAY, AWAEXCLUDES, AWAFAST, AWAINCLUDES, AWAMECHANISMS, AWARENESS, BASECLASSLOADER, BINARYMESSAGES, BOOLEAN_ARGS, CHAT, CLI, CLICONSOLE, CLOCK, CONTEXT, CONTEXTSERVICECLASS, DF, FILETRANSFER, GUI, JCCPLATFORMS, KERNELS, LIBPATH, LIBRARY, LOCALTRANSPORT, LOGGING, LOGGING_LEVEL, MARSHAL, MAVEN_DEPENDENCIES, MESSAGE, MONITORINGCOMP, NETWORKNAME, NETWORKPASS, NIOTCPPORT, NIOTCPTRANSPORT, PERSIST, PLATFORM_ACCESS, PRINTPASS, PROGRAM_ARGUMENTS, REGISTRY_SYNC, RELAYADDRESS, RELAYAWAONLY, RELAYSECURITY, RELAYTRANSPORT, RSPUBLISH, RSPUBLISHCOMPONENT, SAVEONEXIT, SECURITY, SENSORS, SETTINGS, SIMUL, SIMULATION, SSLTCPPORT, SSLTCPTRANSPORT, STRICTCOM, TCPPORT, TCPTRANSPORT, THREADPOOLCLASS, THREADPOOLDEFER, TRUSTEDLAN, UNIQUEIDS, USEPASS, VALIDITYDURATION, VIRTUALNAMES, WELCOME, WSPUBLISH
Modifier | Constructor and Description |
---|---|
|
AbstractPlatformConfiguration() |
|
AbstractPlatformConfiguration(AbstractPlatformConfiguration config)
Copy constructor.
|
protected |
AbstractPlatformConfiguration(java.lang.String[] args)
Constructor that creates a new Configuration based on an args object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkConsistency()
Checks this configuration for consistency errors.
|
void |
enhanceWith(PlatformConfiguration other)
Enhance this config with given other config.
|
static PlatformConfiguration |
getAndroidDefault()
Returns a PlatformConfiguration with the default parameters.
|
static PlatformConfiguration |
getDefault()
Returns a PlatformConfiguration with the default parameters.
|
static PlatformConfiguration |
getDefaultNoGui()
Returns a PlatformConfiguration with the default parameters but without gui.
|
static long |
getLocalDefaultTimeout(IComponentIdentifier platform)
Get the local default timeout.
|
static PlatformConfiguration |
getMinimal()
Returns a minimal platform configuration without any network connectivity.
|
static PlatformConfiguration |
getMinimalRelayAwareness()
Returns a minimal platform configuration that communicates via relay.
|
static java.lang.Object |
getPlatformValue(IComponentIdentifier platform,
java.lang.String key)
Get a global platform value.
|
static long |
getRemoteDefaultTimeout(IComponentIdentifier platform)
Get the remote default timeout.
|
RootComponentConfiguration |
getRootConfig()
Returns the configuration of the root component.
|
static long |
getScaledLocalDefaultTimeout(IComponentIdentifier platform,
double scale)
Get the scaled local default timeout.
|
static long |
getScaledRemoteDefaultTimeout(IComponentIdentifier platform,
double scale)
Get the scaled remote default timeout.
|
StarterConfiguration |
getStarterConfig()
Returns the configuration of the root component.
|
static boolean |
hasPlatformValue(IComponentIdentifier platform,
java.lang.String key)
Get a global platform value.
|
static boolean |
isParameterCopy(IComponentIdentifier platform)
Check if the parameter copy flag is set for a platform.
|
static boolean |
isRealtimeTimeout(IComponentIdentifier platform)
Check if the real time timeout flag is set for a platform.
|
void |
parseArg(java.lang.String key,
java.lang.String val) |
static void |
parseArg(java.lang.String okey,
java.lang.String val,
AbstractPlatformConfiguration config) |
void |
parseArgs(java.lang.String[] args) |
static void |
parseArgs(java.lang.String[] args,
AbstractPlatformConfiguration config) |
static PlatformConfiguration |
processArgs(java.util.Map<java.lang.String,java.lang.String> args)
Deprecated.
since 3.0.7. Use other processArgs methods instead.
|
static PlatformConfiguration |
processArgs(java.lang.String args)
Create a platform configuration.
|
static PlatformConfiguration |
processArgs(java.lang.String[] args)
Create a platform configuration.
|
static void |
putPlatformValue(IComponentIdentifier platform,
java.lang.String key,
java.lang.Object value)
Get a global platform value.
|
static void |
removePlatformMemory(IComponentIdentifier platform)
Get a global platform value.
|
static void |
setLocalDefaultTimeout(IComponentIdentifier platform,
long timeout)
Set the local default timeout.
|
void |
setPlatformModel(IModelInfo model)
Sets the platform model to extract configuration values from it.
|
static void |
setRemoteDefaultTimeout(IComponentIdentifier platform,
long timeout)
Set the remote default timeout.
|
void |
setValue(java.lang.String key,
java.lang.Object value)
Set a value to both configs, not recommended.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addComponent, addComponent, getAutoShutdown, getBooleanValue, getComponentFactory, getComponents, getConfigurationFile, getConfigurationName, getDebugFutures, getDebugServices, getDebugSteps, getDefaultTimeout, getLocalDefaultTimeout, getMonitoring, getNoStackCompaction, getOpenGl, getPersist, getPlatformComponent, getPlatformName, getRemoteDefaultTimeout, setAutoShutdown, setComponents, setConfigurationFile, setConfigurationName, setDebugFutures, setDebugServices, setDebugSteps, setDefaultTimeout, setMonitoring, setNoStackCompaction, setOpenGl, setPersist, setPlatformComponent, setPlatformName
getAddress, getArgs, getAsyncExecution, getAwaDelay, getAwaExcludes, getAwaIncludes, getAwaMechanisms, getAwareness, getBaseClassloader, getBinaryMessages, getChat, getCli, getCliConsole, getClock, getContext, getContextServiceClass, getDf, getFiletransfer, getGui, getJccPlatforms, getKernels, getLibPath, getLibrary, getLocalTransport, getLogging, getLoggingLevel, getMarshal, getMavenDependencies, getMessage, getMonitoringComp, getNetworkName, getNetworkPass, getNioTcpPort, getNioTcpTransport, getPersist, getPrintPass, getRegistrySync, getRelayAddress, getRelayAwaonly, getRelaySecurity, getRelayTransport, getRsPublish, getRsPublishComponent, getSaveOnExit, getSecurity, getSensors, getSettings, getSimul, getSimulation, getSslTcpPort, getSslTcpTransport, getStrictCom, getTcpPort, getTcpTransport, getThreadpoolClass, getThreadpoolDefer, getTrustedLan, getUniqueIds, getUsePass, getValidityDuration, getVirtualNames, getWelcome, getWsPublish, isAwaFast, setAddress, setAsyncExecution, setAwaDelay, setAwaExcludes, setAwaFast, setAwaIncludes, setAwaMechanisms, setAwareness, setBaseClassloader, setBinaryMessages, setChat, setCli, setCliConsole, setClock, setComponentFactory, setContext, setContextServiceClass, setDf, setFiletransfer, setGui, setJccPlatforms, setKernels, setKernels, setLibPath, setLibrary, setLocalTransport, setLogging, setLoggingLevel, setMarshal, setMavenDependencies, setMessage, setMonitoringComp, setNetworkName, setNetworkPass, setNioTcpPort, setNioTcpTransport, setPersist, setPlatformAccess, setPrintPass, setProgramArguments, setRegistrySync, setRelayAddress, setRelayAwaonly, setRelaySecurity, setRelayTransport, setRsPublish, setRsPublishComponent, setSaveOnExit, setSecurity, setSensors, setSettings, setSimul, setSimulation, setSslTcpPort, setSslTcpTransport, setStrictCom, setTcpPort, setTcpTransport, setThreadpoolClass, setThreadpoolDefer, setTrustedLan, setUniqueIds, setUsePass, setValidityDuration, setVirtualNames, setWelcome, setWsPublish
protected static final java.util.Map<IComponentIdentifier,java.util.Map<java.lang.String,java.lang.Object>> platformmem
public static final java.lang.String COMPONENT_FACTORY
public AbstractPlatformConfiguration()
protected AbstractPlatformConfiguration(java.lang.String[] args)
args
- public AbstractPlatformConfiguration(AbstractPlatformConfiguration config)
config
- AbstractPlatformConfigurationpublic static PlatformConfiguration getDefault()
public static PlatformConfiguration getDefaultNoGui()
public static PlatformConfiguration getAndroidDefault()
public static PlatformConfiguration getMinimal()
public static PlatformConfiguration getMinimalRelayAwareness()
public RootComponentConfiguration getRootConfig()
public StarterConfiguration getStarterConfig()
public static PlatformConfiguration processArgs(java.lang.String args)
args
- The command line arguments.public static PlatformConfiguration processArgs(java.lang.String[] args)
args
- The command line arguments.@Deprecated public static PlatformConfiguration processArgs(java.util.Map<java.lang.String,java.lang.String> args)
args
- The command line arguments.public void parseArgs(java.lang.String[] args)
public void parseArg(java.lang.String key, java.lang.String val)
public static void parseArgs(java.lang.String[] args, AbstractPlatformConfiguration config)
public static void parseArg(java.lang.String okey, java.lang.String val, AbstractPlatformConfiguration config)
public void setPlatformModel(IModelInfo model)
setPlatformModel
in interface IStarterConfiguration
model
- public void setValue(java.lang.String key, java.lang.Object value)
key
- value
- public static java.lang.Object getPlatformValue(IComponentIdentifier platform, java.lang.String key)
platform
- The platform name.key
- The key.public static void putPlatformValue(IComponentIdentifier platform, java.lang.String key, java.lang.Object value)
platform
- The platform name.key
- The key.value
- The value.public static boolean hasPlatformValue(IComponentIdentifier platform, java.lang.String key)
platform
- The platform name.key
- The key.public static void removePlatformMemory(IComponentIdentifier platform)
platform
- The platform name.public static long getRemoteDefaultTimeout(IComponentIdentifier platform)
public static long getScaledRemoteDefaultTimeout(IComponentIdentifier platform, double scale)
public static long getLocalDefaultTimeout(IComponentIdentifier platform)
public static long getScaledLocalDefaultTimeout(IComponentIdentifier platform, double scale)
public static void setRemoteDefaultTimeout(IComponentIdentifier platform, long timeout)
public static void setLocalDefaultTimeout(IComponentIdentifier platform, long timeout)
public static boolean isRealtimeTimeout(IComponentIdentifier platform)
public static boolean isParameterCopy(IComponentIdentifier platform)
protected void checkConsistency()
public void enhanceWith(PlatformConfiguration other)
other
- public java.lang.String toString()
toString
in class java.lang.Object