public class ServiceContainerConfiguration extends Object
| Constructor and Description |
|---|
ServiceContainerConfiguration(Preferences prefs)
Wraps a preferences object in this instance.
|
| Modifier and Type | Method and Description |
|---|---|
CommandAuthenticator |
getCommandAuthenticator()
Returns an implementation of the configured
CommandAuthenticator that should be used to authenticate
incoming commands. |
String |
getConnectorBindAddress()
Returns the connector's bind address.
|
int |
getConnectorBindPort()
Returns the connector's bind port.
|
long |
getConnectorLeasePeriod()
Returns the connector's lease period, in milliseconds.
|
String |
getConnectorRemoteEndpoint()
This is a convienence method that builds a full remote endpoint string that combines
getConnectorTransport(), getConnectorBindAddress(), getConnectorBindPort(),
getConnectorTransportParams() and getConnectorRHQType(). |
String |
getConnectorRHQType()
Returns the connector's RHQ type (indicating if the remoting server resides in the RHQ Server or RHQ Agent).
|
String |
getConnectorSecurityClientAuthMode()
Returns the client authentication mode.
|
String |
getConnectorSecurityKeystoreAlgorithm()
Returns the algorithm used to manage the keys in the keystore.
|
String |
getConnectorSecurityKeystoreAlias()
Returns the key alias of the key in the keystore.
|
String |
getConnectorSecurityKeystoreFile()
Returns the path to the keystore file.
|
String |
getConnectorSecurityKeystoreKeyPassword()
Returns the password to gain access to the key in the keystore.
|
String |
getConnectorSecurityKeystorePassword()
Returns the password to the keystore file itself.
|
String |
getConnectorSecurityKeystoreType()
Returns the type of keystore.
|
String |
getConnectorSecuritySocketProtocol()
Returns the protocol used over the secure socket.
|
String |
getConnectorSecurityTruststoreAlgorithm()
Returns the algorithm used to manage the keys in the truststore.
|
String |
getConnectorSecurityTruststoreFile()
Returns the path to the truststore file.
|
String |
getConnectorSecurityTruststorePassword()
Returns the password of the truststore file itself.
|
String |
getConnectorSecurityTruststoreType()
Returns the type of the truststore file.
|
String |
getConnectorTransport()
Returns the connector's transport type (socket, http, etc).
|
String |
getConnectorTransportParams()
Returns the connector's transport parameters which are used to further customize the connector and its transport
subsystem.
|
File |
getDataDirectory()
Returns the data directory where all internally persisted data can be written to.
|
String |
getDataDirectoryIfDefined()
This will return the data directory string as found in the preferences.
|
int |
getGlobalConcurrencyLimit()
Returns the global concurrency limit on the number of commands that are allowed to be received concurrently (i.e.
|
String |
getMBeanServerName()
Returns the name of the MBeanServer that will be created to house all the services.
|
String |
getMulticastDetectorBindAddress()
Returns the multicast detector's bind address which is what the network interface binds to.
|
long |
getMulticastDetectorDefaultTimeDelay()
Returns the multicast detector's default time delay.
|
long |
getMulticastDetectorHeartbeatTimeDelay()
Returns the multicast detector's heartbeat time delay.
|
String |
getMulticastDetectorMulticastAddress()
Returns the multicast detector's multicast address used for network registry messages (servers coming and going).
|
int |
getMulticastDetectorPort()
Returns the multicast detector's port.
|
Preferences |
getPreferences()
Returns the raw preferences containing the service container configuration.
|
long |
getRemoteStreamMaxIdleTime()
Returns the maximum amount of milliseconds a remote
output or
input stream server-side component hosted in a RemoteOutputStreamCommandService
or RemoteInputStreamCommandService is allowed to be idle before it is automatically closed and removed. |
int |
getServiceContainerConfigurationVersion()
Returns the version of the configuration schema.
|
String |
getStartupCommandServices()
Returns the command services that are to be automatically deployed when the services are started up.
|
String |
getStartupRemotePojos()
Returns the definitions of the POJOs that are to be automatically deployed as remote services at start up.
|
boolean |
isCommandServiceDirectoryDynamicDiscoveryEnabled()
Returns the flag to indicate if the command service directory has been enabled to perform dynamic discovery of
new command services that are added to (or old services removed from) the system after the initial startup
discovery.
|
boolean |
isCommunicationsDisabled()
Returns
true if the communication services should be disabled, false if they should be
created normally. |
boolean |
isMulticastDetectorEnabled()
Returns the flag to indicate if the multicast detector should be enabled or not.
|
void |
tagWithServiceContainerConfigurationVersion()
This tags the existing preferences by setting the configuration schema version preference appropriately.
|
String |
toString() |
public ServiceContainerConfiguration(Preferences prefs)
prefs - the service container configuration preferencesIllegalArgumentException - if prefs is nullpublic Preferences getPreferences()
public int getServiceContainerConfigurationVersion()
public void tagWithServiceContainerConfigurationVersion()
public int getGlobalConcurrencyLimit()
ConcurrencyManager).
If this returns a value of 0 or less, there will be no global limit on the number of messages that can be received and processed concurrently.
public String getMBeanServerName()
null will be returned, which indicates that the
JVM's platform MBeanServer should be used.public boolean isCommunicationsDisabled()
true if the communication services should be disabled, false if they should be
created normally. It is rare that you would want to configure this setting to be true.public File getDataDirectory()
Because this does alittle extra work, it may not be suitable to call if you just want to get the value of the
data directory or if you just want to know if its defined or not. In those instances, use
getDataDirectoryIfDefined() instead.
public String getDataDirectoryIfDefined()
null is returned.null if it is not definedgetDataDirectory()public boolean isMulticastDetectorEnabled()
true means the detector should be enabled)public String getMulticastDetectorMulticastAddress()
null if not set in the preferences)public String getMulticastDetectorBindAddress()
null if not set in the preferences)public long getMulticastDetectorDefaultTimeDelay()
getMulticastDetectorHeartbeatTimeDelay().Long.MIN_VALUE if not set in the preferences)public long getMulticastDetectorHeartbeatTimeDelay()
getMulticastDetectorDefaultTimeDelay()
.Long.MIN_VALUE if not set in the preferences)public int getMulticastDetectorPort()
Integer.MIN_VALUE if not set in the preferences)public String getConnectorRHQType()
public String getConnectorTransport()
public String getConnectorBindAddress()
public int getConnectorBindPort()
public String getConnectorTransportParams()
public String getConnectorRemoteEndpoint()
getConnectorTransport(), getConnectorBindAddress(), getConnectorBindPort(),
getConnectorTransportParams() and getConnectorRHQType().public long getConnectorLeasePeriod()
Long.MIN_VALUE if not set in the preferences)public String getConnectorSecuritySocketProtocol()
public String getConnectorSecurityClientAuthMode()
SSLSocketBuilder.CLIENT_AUTH_MODE_NONE - clients are not authenticatedSSLSocketBuilder.CLIENT_AUTH_MODE_WANT - clients are authenticated if they provide a cert; if they
do not, anonymous connections are allowedSSLSocketBuilder.CLIENT_AUTH_MODE_NEED - clients must supply a cert and they must be
authenticatedSSLSocketBuilder.CLIENT_AUTH_MODE_NONE - that will be returned if the client auth mode was
not found in the configuration.
Note: To support Tomcat syntax, the client authentication mode value is allowed to be "true" or "false".
"true" maps to SSLSocketBuilder.CLIENT_AUTH_MODE_NEED,
"false" maps to SSLSocketBuilder.CLIENT_AUTH_MODE_NONE.public String getConnectorSecurityKeystoreFile()
String as opposed to File since
some underlying remoting code may allow for this filepath to be relative to a jar inside the classloader.public String getConnectorSecurityKeystoreAlgorithm()
public String getConnectorSecurityKeystoreType()
public String getConnectorSecurityKeystorePassword()
public String getConnectorSecurityKeystoreKeyPassword()
keystore password.public String getConnectorSecurityKeystoreAlias()
public String getConnectorSecurityTruststoreFile()
String as opposed to File since
some underlying remoting code may allow for this filepath to be relative to a jar inside the classloader.public String getConnectorSecurityTruststoreAlgorithm()
public String getConnectorSecurityTruststoreType()
public String getConnectorSecurityTruststorePassword()
public String getStartupCommandServices()
public String getStartupRemotePojos()
public long getRemoteStreamMaxIdleTime()
output or
input stream server-side component hosted in a RemoteOutputStreamCommandService
or RemoteInputStreamCommandService is allowed to be idle before it is automatically closed and removed.
This means that a client must attempt to access the remote stream every X milliseconds (where X is the value this
method returns) or that stream will no longer be available. Note that this does not mean a client must read/write
the entire stream in this amount of time, it only means a client must make a request on the stream every X
milliseconds (be it to read or write a byte, mark it, see how many bytes are available, etc).public boolean isCommandServiceDirectoryDynamicDiscoveryEnabled()
true if dynamic discovery of command services is enabled; false if the initial
set of getStartupCommandServices() are the only ones that will be enabled during the lifetime
of the service containerpublic CommandAuthenticator getCommandAuthenticator() throws Exception
CommandAuthenticator that should be used to authenticate
incoming commands.null if no authenticator is configuredException - if failed to instantiate the configured class namepublic String toString()
toString in class ObjectObject.toString()Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.