queued.sdk.java.examples
Class OpenMediaSdkData

java.lang.Object
  extended byqueued.sdk.java.examples.OpenMediaSdkData

public class OpenMediaSdkData
extends java.lang.Object

Reads Configuration Layer data from the OpenMediaSdk.properties file. This data includes information such as the host and port to use, the name of an application to connect to, and so on.

Once this data has been stored in the fields of this class, it is available to the Queued Interaction Java Library's code examples by means of getter and setter methods.


Constructor Summary
OpenMediaSdkData()
           
 
Method Summary
 java.lang.String getApplicationName()
          Returns the application name.
 java.lang.String getConfigServerBackupHost()
          Returns the backup host name.
 int getConfigServerBackupPort()
          Returns the backup port.
 java.lang.String getConfigServerPrimaryHost()
          Returns the primary hostname.
 int getConfigServerPrimaryPort()
          Returns the primary port.
 int getReconnectionAttempts()
          Returns the maximum number of reconnection attempts.
 int getReconnectionPeriod()
          Returns the reconnection period, in milliseconds.
 void loadData()
          Loads the properties from the OpenMediaSdk.properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenMediaSdkData

public OpenMediaSdkData()
Method Detail

getApplicationName

public java.lang.String getApplicationName()
Returns the application name.


getConfigServerBackupHost

public java.lang.String getConfigServerBackupHost()
Returns the backup host name.


getConfigServerBackupPort

public int getConfigServerBackupPort()
Returns the backup port.


getConfigServerPrimaryHost

public java.lang.String getConfigServerPrimaryHost()
Returns the primary hostname.


getConfigServerPrimaryPort

public int getConfigServerPrimaryPort()
Returns the primary port.


getReconnectionPeriod

public int getReconnectionPeriod()
Returns the reconnection period, in milliseconds.


getReconnectionAttempts

public int getReconnectionAttempts()
Returns the maximum number of reconnection attempts.


loadData

public void loadData()
              throws java.lang.Exception
Loads the properties from the OpenMediaSdk.properties file.

Throws:
java.lang.Exception