Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.connection.configuration
Class ManagedConfiguration

java.lang.Object
  extended by com.genesyslab.platform.commons.connection.configuration.AbstractConnectionConfiguration
      extended by com.genesyslab.platform.commons.connection.configuration.ManagedConfiguration
All Implemented Interfaces:
ClientADDPOptions, ClientConnectionOptions, ConnectionConfiguration, java.lang.Cloneable

public final class ManagedConfiguration
extends AbstractConnectionConfiguration

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

ManagedConfiguration

public ManagedConfiguration(ConnectionConfiguration configuration)
Method Detail

getConfiguration

public ConnectionConfiguration getConfiguration()
Get managed configuration

Returns:

setConfiguration

public void setConfiguration(ConnectionConfiguration configuration)
Set properties according to passed configuration

Parameters:
configuration -

addBeforePropertyChangeHandler

public void addBeforePropertyChangeHandler(java.lang.String propertyKey,
                                           ManagedConfiguration.Handler handler)
Add before property change handler/acceptor

Parameters:
propertyKey -
handler -

removeBeforePropertyChangeHandler

public void removeBeforePropertyChangeHandler(java.lang.String propertyKey,
                                              ManagedConfiguration.Handler handler)
Remove before property change handler/acceptor

Parameters:
propertyKey -
handler -

addAfterPropertyChangeHandler

public void addAfterPropertyChangeHandler(java.lang.String propertyKey,
                                          ManagedConfiguration.Handler handler)
Add after property change handler

Parameters:
propertyKey -
handler -

removeAfterPropertyChangeHandler

public void removeAfterPropertyChangeHandler(java.lang.String propertyKey,
                                             ManagedConfiguration.Handler handler)
Remove after property change handler

Parameters:
propertyKey -
handler -

getOption

public java.lang.String getOption(java.lang.String name,
                                  java.lang.String defaultValue)
Gets string parameter value from the configuration.

Parameters:
name - name (key) of the parameter
defaultValue - value to return if parameter is not found
Returns:
value of the parameter

setOption

public void setOption(java.lang.String name,
                      java.lang.String value)
Sets string parameter in the configuration.

Parameters:
name - name (key) of the parameter
value - string value to set

clone

public ConnectionConfiguration clone()
                              throws java.lang.CloneNotSupportedException
Specified by:
clone in interface ConnectionConfiguration
Overrides:
clone in class AbstractConnectionConfiguration
Throws:
java.lang.CloneNotSupportedException

enableLogging

public static void enableLogging(ILogger logger)
Set the component logger.

Parameters:
logger - The ILogger instance

getLogger

public static ILogger getLogger()
Get the component logger

Returns:
the component logger

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.