|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.omsdk.commons.InitializationParameters
Placeholder for the parameters required to initialize the library.
Use this class as shown in this code snippet.
OMSDKConnector.initialize(InitializationParameters)
Constructor Summary | |
InitializationParameters(java.lang.String primaryHost,
int primaryPort,
java.lang.String backupHost,
int backupPort,
java.lang.String applicationName,
ApplicationType applicationType,
int reconnectionPeriod,
int reconnectionAttempts)
Constructor with required parameters for connecting to the primary and backup Configuration Layers. |
|
InitializationParameters(java.lang.String primaryHost,
int primaryPort,
java.lang.String backupHost,
int backupPort,
java.lang.String applicationName,
int reconnectionPeriod,
int reconnectionAttempts)
Deprecated. Deprecated. Application type should be provided explicitly. Use #InitializationParameters(String, int, String, int, String, int, int, int) instead |
Method Summary | |
void |
addInitializationServices(InitializationServices services)
Adds the services that the OMSDKConnector component
initializes. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.lang.String |
getApplicationName()
Returns the name of the entry defined in the Configuration Layer for this application. |
int |
getApplicationType()
|
java.lang.String |
getBackupHost()
Returns the Configuration Layer's backup host. |
int |
getBackupPort()
Returns the Configuration Layer's backup port. |
java.lang.String |
getPrimaryHost()
Returns the Configuration Layer's primary host. |
int |
getPrimaryPort()
Returns the Configuration Layer's primary port. |
int |
getReconnectionAttempts()
Returns the number of possible reconnection attempts. |
int |
getReconnectionPeriod()
Returns the period, in milliseconds, between two reconnection attempts. |
java.util.Set |
getServices()
Returns the services used for initializing the OMSDKConnector . |
java.lang.String |
getStartupLogFilePath()
Returns the path to the log file. |
boolean |
isStartupConsoleTraceOn()
Returns whether or not the log console is enabled. |
boolean |
isStartupFileTraceOn()
Returns whether or not the log file is enabled. |
void |
setStartupConsoleTraceOn(boolean startupConsoleTraceOn)
Enables or disables the log console. |
void |
setStartupFileTraceOn(boolean startupFileTraceOn)
Enables or disables the log file. |
void |
setStartupLogFilePath(java.lang.String startupLogFilePath)
Sets the path to the log file. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InitializationParameters(java.lang.String primaryHost, int primaryPort, java.lang.String backupHost, int backupPort, java.lang.String applicationName, int reconnectionPeriod, int reconnectionAttempts)
#InitializationParameters(String, int, String, int, String, int, int, int)
instead
primaryHost
- host name of the primary Configuration Layer to which
the library connects.primaryPort
- port number of the primary Configuration Layer to
which the library connects.backupHost
- host name of the backup Configuration Layer to which
the library connects. Can be null
if
there is no backup server.backupPort
- port number of the backup Configuration Layer to which
the library connects. Can be null. Considered only if
the backupHost parameter is not null.applicationName
- name of the application entry in the Configuration
Layer.reconnectionPeriod
- period, in milliseconds, between reconnection
attempts. reconnectionAttempts
- number of reconnection attempts. public InitializationParameters(java.lang.String primaryHost, int primaryPort, java.lang.String backupHost, int backupPort, java.lang.String applicationName, ApplicationType applicationType, int reconnectionPeriod, int reconnectionAttempts)
primaryHost
- host name of the primary Configuration Layer to which
the library connects.primaryPort
- port number of the primary Configuration Layer to
which the library connects.backupHost
- host name of the backup Configuration Layer to which
the library connects. Can be null
if
there is no backup server.backupPort
- port number of the backup Configuration Layer to which
the library connects. Can be null. Considered only if
the backupHost parameter is not null.applicationName
- name of the application entry in the Configuration
Layer.applicationType
- type of the application entry in the Configuration
Layer.reconnectionPeriod
- period, in milliseconds, between reconnection
attempts. reconnectionAttempts
- number of reconnection attempts. Method Detail |
public java.lang.String getApplicationName()
public java.lang.String getPrimaryHost()
public int getPrimaryPort()
public java.lang.String getBackupHost()
public int getBackupPort()
public int getReconnectionPeriod()
public int getReconnectionAttempts()
public java.util.Set getServices()
OMSDKConnector
.
Set
of ServiceType
items.public void addInitializationServices(InitializationServices services)
OMSDKConnector
component
initializes.
services
- services to addpublic boolean isStartupConsoleTraceOn()
true
if the log console is enabled.public void setStartupConsoleTraceOn(boolean startupConsoleTraceOn)
startupConsoleTraceOn
- true
to enable the log console.public boolean isStartupFileTraceOn()
true
if file log is enabledpublic void setStartupFileTraceOn(boolean startupFileTraceOn)
startupFileTraceOn
- true
to enable the log file.public java.lang.String getStartupLogFilePath()
public void setStartupLogFilePath(java.lang.String startupLogFilePath)
startupLogFilePath
- the path to the log file.public java.lang.Object clone()
public java.lang.String toString()
public int getApplicationType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |