Public Member Functions | Static Public Member Functions | Static Public Attributes | Package Attributes

alma.acs.util.ACSPorts Class Reference

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

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

Member Function Documentation

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

References alma.acs.util.ACSPorts.giveAlarmNotifyServicePort().

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

References alma.acs.util.ACSPorts.giveAlarmServicePort().

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

References alma.acs.util.ACSPorts.giveBasePort().

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

References alma.acs.util.ACSPorts.giveCDBPort().

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

References alma.acs.util.ACSPorts.giveContainerDaemonPort().

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

References alma.acs.util.ACSPorts.giveIP().

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

References alma.acs.util.ACSPorts.giveIRPort().

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

References alma.acs.util.ACSPorts.giveLoggingServicePort().

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

References alma.acs.util.ACSPorts.giveLogPort().

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

References alma.acs.util.ACSPorts.giveManagerPort().

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

References alma.acs.util.ACSPorts.giveNamingServicePort().

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

References alma.acs.util.ACSPorts.giveNotifyServicePort().

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

References alma.acs.util.ACSPorts.giveServicesDaemonPort().

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

References alma.acs.util.ACSPorts.basePort.

Referenced by alma.acs.util.ACSPorts.getAlarmNotifyServicePort().

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

References alma.acs.util.ACSPorts.basePort.

Referenced by alma.acs.util.ACSPorts.getAlarmServicePort().

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

References alma.acs.util.ACSPorts.basePort.

Referenced by alma.acs.util.ACSPorts.getBasePort().

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

Referenced by alma.acs.util.ACSPorts.getContainerDaemonPort().

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

References alma.acs.util.ACSPorts.basePort.

Referenced by alma.acs.util.ACSPorts.getIRPort().

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

References alma.acs.util.ACSPorts.basePort.

Referenced by alma.acs.util.ACSPorts.getLoggingServicePort().

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

References alma.acs.util.ACSPorts.basePort.

Referenced by alma.acs.util.ACSPorts.getLogPort().

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

References alma.acs.util.ACSPorts.basePort.

Referenced by alma.acs.util.ACSPorts.getNamingServicePort().

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

References alma.acs.util.ACSPorts.basePort.

Referenced by alma.acs.util.ACSPorts.getNotifyServicePort().

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

Referenced by alma.acs.util.ACSPorts.getServicesDaemonPort().

static ACSPorts alma.acs.util.ACSPorts.globalInstance ( int  basePort  )  [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
String alma.acs.util.ACSPorts.toString (  ) 

Member Data Documentation

final String alma.acs.util.ACSPorts.ACS_BASE_PORT_DEFAULT = "0" [static]

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

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.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties