alma::acs::util::ACSPorts Class Reference

Collaboration diagram for alma::acs::util::ACSPorts:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int giveBasePort ()
String giveManagerPort ()
String giveNamingServicePort ()
String giveNotifyServicePort ()
String giveLoggingServicePort ()
String giveIRPort ()
String giveAlarmNotifyServicePort ()
String giveLogPort ()
String giveCDBPort ()
String giveAlarmServicePort ()
String giveContainerDaemonPort ()
String giveServicesDaemonPort ()
String giveIP ()
String toString ()

Static Public Member Functions

static int getBasePort ()
static String getManagerPort ()
static String getNamingServicePort ()
static String getNotifyServicePort ()
static String getAlarmNotifyServicePort ()
static String getLoggingServicePort ()
static String getIRPort ()
static String getLogPort ()
static String getCDBPort ()
static String getAlarmServicePort ()
static String getContainerDaemonPort ()
static String getServicesDaemonPort ()
static String getIP ()
static ACSPorts globalInstance (int basePort)

Static Public Attributes

static final String ACS_BASE_PORT_VARIABLE = "ACS.baseport"
static final String ACS_BASE_PORT_DEFAULT = "0"

Package Attributes

int basePort

Private Member Functions

 ACSPorts (int basePort)

Static Private Member Functions

static ACSPorts globalInstanceForSystemProperty ()

Static Private Attributes

static Vector< ACSPortsinstances = new Vector<ACSPorts>()

Detailed Description

Used to figure out the dynamic ports ACS is running under.

Caution
Be careful with the method names:

Author:
dfugate October 15, 2003

Constructor & Destructor Documentation

alma::acs::util::ACSPorts::ACSPorts ( int  basePort  )  [inline, private]

Referenced by globalInstance().


Member Function Documentation

static String alma::acs::util::ACSPorts::getAlarmNotifyServicePort (  )  [inline, static]
Returns:
the port the CORBA Alarm Notification Service is running on.

References giveAlarmNotifyServicePort(), and globalInstanceForSystemProperty().

static String alma::acs::util::ACSPorts::getAlarmServicePort (  )  [inline, static]
Returns:
the port the ACS alarm service is running on.

References giveAlarmServicePort(), and globalInstanceForSystemProperty().

static int alma::acs::util::ACSPorts::getBasePort (  )  [inline, static]
Returns:
the "ACS Base Port". This is just an integer ranging from 0-9.

References giveBasePort(), and globalInstanceForSystemProperty().

static String alma::acs::util::ACSPorts::getCDBPort (  )  [inline, static]
Returns:
the port the ACS CDB is running on.

References giveCDBPort(), and globalInstanceForSystemProperty().

static String alma::acs::util::ACSPorts::getContainerDaemonPort (  )  [inline, static]
Returns:
the constant port (2970) the ACS Container daemon is running on.

References giveContainerDaemonPort(), and globalInstanceForSystemProperty().

static String alma::acs::util::ACSPorts::getIP (  )  [inline, static]
Returns:
the stringified IP or "localhost" if an error were to occur.

References giveIP(), and globalInstanceForSystemProperty().

static String alma::acs::util::ACSPorts::getIRPort (  )  [inline, static]
Returns:
the port the CORBA Interface Repository is running on.

References giveIRPort(), and globalInstanceForSystemProperty().

static String alma::acs::util::ACSPorts::getLoggingServicePort (  )  [inline, static]
Returns:
the port the CORBA Logging Service is running on.

References giveLoggingServicePort(), and globalInstanceForSystemProperty().

static String alma::acs::util::ACSPorts::getLogPort (  )  [inline, static]
Returns:
the port the ACS Logging Service is running on.

References giveLogPort(), and globalInstanceForSystemProperty().

static String alma::acs::util::ACSPorts::getManagerPort (  )  [inline, static]
Returns:
the port manager is running on.

References giveManagerPort(), and globalInstanceForSystemProperty().

static String alma::acs::util::ACSPorts::getNamingServicePort (  )  [inline, static]
Returns:
the port the CORBA Naming Service is running on.

References giveNamingServicePort(), and globalInstanceForSystemProperty().

static String alma::acs::util::ACSPorts::getNotifyServicePort (  )  [inline, static]
Returns:
the port the CORBA Notification Service is running on.

References giveNotifyServicePort(), and globalInstanceForSystemProperty().

static String alma::acs::util::ACSPorts::getServicesDaemonPort (  )  [inline, static]
Returns:
the constant port (2980) the ACS Services daemon is running on.

References giveServicesDaemonPort(), and globalInstanceForSystemProperty().

String alma::acs::util::ACSPorts::giveAlarmNotifyServicePort (  )  [inline]
Returns:
the port the CORBA Alarm Notification Service is running on.

References basePort.

Referenced by getAlarmNotifyServicePort().

String alma::acs::util::ACSPorts::giveAlarmServicePort (  )  [inline]
Returns:
the port the ACS alarm service is running on.

References basePort.

Referenced by getAlarmServicePort().

int alma::acs::util::ACSPorts::giveBasePort (  )  [inline]
Returns:
the "ACS Base Port". This is just an integer ranging from 0-9.

References basePort.

Referenced by getBasePort().

String alma::acs::util::ACSPorts::giveCDBPort (  )  [inline]
Returns:
the port the ACS CDB is running on.

References basePort.

Referenced by getCDBPort(), and alma::acs::commandcenter::app::ProjectRunModel::getServicesLocalJavaPort().

String alma::acs::util::ACSPorts::giveContainerDaemonPort (  )  [inline]
Returns:
the constant port (2970) the ACS Container daemon is running on.

Referenced by getContainerDaemonPort().

String alma::acs::util::ACSPorts::giveIP (  )  [inline]
String alma::acs::util::ACSPorts::giveIRPort (  )  [inline]
Returns:
the port the CORBA Interface Repository is running on.

References basePort.

Referenced by getIRPort().

String alma::acs::util::ACSPorts::giveLoggingServicePort (  )  [inline]
Returns:
the port the CORBA Logging Service is running on.

References basePort.

Referenced by getLoggingServicePort().

String alma::acs::util::ACSPorts::giveLogPort (  )  [inline]
Returns:
the port the ACS Logging Service is running on.

References basePort.

Referenced by getLogPort().

String alma::acs::util::ACSPorts::giveManagerPort (  )  [inline]
String alma::acs::util::ACSPorts::giveNamingServicePort (  )  [inline]
Returns:
the port the CORBA Naming Service is running on.

References basePort.

Referenced by getNamingServicePort().

String alma::acs::util::ACSPorts::giveNotifyServicePort (  )  [inline]
Returns:
the port the CORBA Notification Service is running on.

References basePort.

Referenced by getNotifyServicePort().

String alma::acs::util::ACSPorts::giveServicesDaemonPort (  )  [inline]
Returns:
the constant port (2980) the ACS Services daemon is running on.

Referenced by getServicesDaemonPort().

static ACSPorts alma::acs::util::ACSPorts::globalInstance ( int  basePort  )  [inline, static]

Returns an instance of this class that is configured for the specified basePort.

In earlier versions of this class, one had to set a system property to calculate the ports for different instances.

Note that this will create a new instance only if necessary.

Since:
v1.5

References ACSPorts(), and instances.

Referenced by globalInstanceForSystemProperty().

static ACSPorts alma::acs::util::ACSPorts::globalInstanceForSystemProperty (  )  [inline, static, private]
String alma::acs::util::ACSPorts::toString (  )  [inline]

References basePort.


Member Data Documentation

Default base port (integer ranging from 0-9).

Referenced by globalInstanceForSystemProperty().

final String alma::acs::util::ACSPorts::ACS_BASE_PORT_VARIABLE = "ACS.baseport" [static]

Testing purposes only!

Parameters:
args Not used! Name of environment variable defining base port.

Referenced by globalInstanceForSystemProperty().

Vector<ACSPorts> alma::acs::util::ACSPorts::instances = new Vector<ACSPorts>() [static, private]

Referenced by globalInstance().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2