|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.connection.configuration.AbstractConnectionConfiguration
com.genesyslab.platform.commons.connection.configuration.ManagedConfiguration
public final class ManagedConfiguration
Managed configuration is wrapper for ConnectionConfiguration. It provide possibility to handle configuration change events (before/after)
Nested Class Summary | |
---|---|
static class |
ManagedConfiguration.ChangeEvent
The event used in query to change the a property or used to inform about a property change. |
static interface |
ManagedConfiguration.Handler
Used for configuration property change handling. |
Nested classes/interfaces inherited from interface com.genesyslab.platform.commons.connection.configuration.ClientADDPOptions |
---|
ClientADDPOptions.AddpTraceMode |
Field Summary |
---|
Fields inherited from interface com.genesyslab.platform.commons.connection.configuration.ClientConnectionOptions |
---|
IP_VERSION_4_6, IP_VERSION_6_4 |
Constructor Summary | |
---|---|
ManagedConfiguration(ConnectionConfiguration configuration)
|
Method Summary | |
---|---|
void |
addAfterPropertyChangeHandler(java.lang.String propertyKey,
ManagedConfiguration.Handler handler)
Add after property change handler |
void |
addBeforePropertyChangeHandler(java.lang.String propertyKey,
ManagedConfiguration.Handler handler)
Add before property change handler/acceptor |
ConnectionConfiguration |
clone()
|
static void |
enableLogging(ILogger logger)
Set the component logger. |
boolean |
equals(java.lang.Object obj)
|
ConnectionConfiguration |
getConfiguration()
Get managed configuration |
static ILogger |
getLogger()
Get the component logger |
java.lang.String |
getOption(java.lang.String name,
java.lang.String defaultValue)
Gets string parameter value from the configuration. |
int |
hashCode()
|
void |
removeAfterPropertyChangeHandler(java.lang.String propertyKey,
ManagedConfiguration.Handler handler)
Remove after property change handler |
void |
removeBeforePropertyChangeHandler(java.lang.String propertyKey,
ManagedConfiguration.Handler handler)
Remove before property change handler/acceptor |
void |
setConfiguration(ConnectionConfiguration configuration)
Set properties according to passed configuration |
void |
setOption(java.lang.String name,
java.lang.String value)
Sets string parameter in the configuration. |
java.lang.String |
toString()
|
Methods inherited from class com.genesyslab.platform.commons.connection.configuration.AbstractConnectionConfiguration |
---|
getAddpClientTimeout, getAddpServerTimeout, getAddpTrace, getAddpTraceMode, getBoolean, getBoolean, getInteger, getInteger, getIPVersion, getLocalBindingHost, getLocalBindingPort, getOption, getStringsEncoding, getTLSVersion, isIPv6Enabled, isTLSEnabled, isUseAddp, setAddpClientTimeout, setAddpServerTimeout, setAddpTrace, setAddpTraceMode, setBoolean, setInteger, setIPv6Enabled, setIPVersion, setLocalBindingHost, setLocalBindingPort, setStringsEncoding, setTLSEnabled, setTLSVersion, setUseAddp |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ManagedConfiguration(ConnectionConfiguration configuration)
Method Detail |
---|
public ConnectionConfiguration getConfiguration()
public void setConfiguration(ConnectionConfiguration configuration)
configuration
- public void addBeforePropertyChangeHandler(java.lang.String propertyKey, ManagedConfiguration.Handler handler)
propertyKey
- handler
- public void removeBeforePropertyChangeHandler(java.lang.String propertyKey, ManagedConfiguration.Handler handler)
propertyKey
- handler
- public void addAfterPropertyChangeHandler(java.lang.String propertyKey, ManagedConfiguration.Handler handler)
propertyKey
- handler
- public void removeAfterPropertyChangeHandler(java.lang.String propertyKey, ManagedConfiguration.Handler handler)
propertyKey
- handler
- public java.lang.String getOption(java.lang.String name, java.lang.String defaultValue)
name
- name (key) of the parameterdefaultValue
- value to return if parameter is not found
public void setOption(java.lang.String name, java.lang.String value)
name
- name (key) of the parametervalue
- string value to setpublic ConnectionConfiguration clone() throws java.lang.CloneNotSupportedException
clone
in interface ConnectionConfiguration
clone
in class AbstractConnectionConfiguration
java.lang.CloneNotSupportedException
public static void enableLogging(ILogger logger)
logger
- The ILogger instancepublic static ILogger getLogger()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |