Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 giveContainerDaemonPort ()
String giveServicesDaemonPort ()
String giveIP ()
String toString ()

Static Public Member Functions

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

Static Public Attributes

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

Package Attributes

int basePort

Private Member Functions

 ACSPorts (int basePort)

Static Private Member Functions

ACSPorts globalInstanceForSystemProperty ()

Static Private Attributes

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]
 


Member Function Documentation

String alma::acs::util::ACSPorts::getAlarmNotifyServicePort  )  [inline, static]
 

Returns:
the port the CORBA Alarm Notification Service is running on.

int alma::acs::util::ACSPorts::getBasePort  )  [inline, static]
 

Returns:
the "ACS Base Port". This is just an integer ranging from 0-9.

String alma::acs::util::ACSPorts::getCDBPort  )  [inline, static]
 

Returns:
the port the ACS CDB is running on.

String alma::acs::util::ACSPorts::getContainerDaemonPort  )  [inline, static]
 

Returns:
the constant port (3013) the ACS Container daemon is running on.

String alma::acs::util::ACSPorts::getIP  )  [inline, static]
 

Returns:
the stringified IP or "localhost" if an error were to occur.

String alma::acs::util::ACSPorts::getIRPort  )  [inline, static]
 

Returns:
the port the CORBA Interface Repository is running on.

String alma::acs::util::ACSPorts::getLoggingServicePort  )  [inline, static]
 

Returns:
the port the CORBA Logging Service is running on.

String alma::acs::util::ACSPorts::getLogPort  )  [inline, static]
 

Returns:
the port the ACS Logging Service is running on.

String alma::acs::util::ACSPorts::getManagerPort  )  [inline, static]
 

Returns:
the port manager is running on.

String alma::acs::util::ACSPorts::getNamingServicePort  )  [inline, static]
 

Returns:
the port the CORBA Naming Service is running on.

String alma::acs::util::ACSPorts::getNotifyServicePort  )  [inline, static]
 

Returns:
the port the CORBA Notification Service is running on.

String alma::acs::util::ACSPorts::getServicesDaemonPort  )  [inline, static]
 

Returns:
the constant port (3014) the ACS Services daemon is running on.

String alma::acs::util::ACSPorts::giveAlarmNotifyServicePort  )  [inline]
 

Returns:
the port the CORBA Alarm Notification Service is running on.

int alma::acs::util::ACSPorts::giveBasePort  )  [inline]
 

Returns:
the "ACS Base Port". This is just an integer ranging from 0-9.

String alma::acs::util::ACSPorts::giveCDBPort  )  [inline]
 

Returns:
the port the ACS CDB is running on.

String alma::acs::util::ACSPorts::giveContainerDaemonPort  )  [inline]
 

Returns:
the constant port (3013) the ACS Container daemon is running on.

String alma::acs::util::ACSPorts::giveIP  )  [inline]
 

Returns:
this host's IP address

String alma::acs::util::ACSPorts::giveIRPort  )  [inline]
 

Returns:
the port the CORBA Interface Repository is running on.

String alma::acs::util::ACSPorts::giveLoggingServicePort  )  [inline]
 

Returns:
the port the CORBA Logging Service is running on.

String alma::acs::util::ACSPorts::giveLogPort  )  [inline]
 

Returns:
the port the ACS Logging Service is running on.

String alma::acs::util::ACSPorts::giveManagerPort  )  [inline]
 

Returns:
the port manager is running on.

String alma::acs::util::ACSPorts::giveNamingServicePort  )  [inline]
 

Returns:
the port the CORBA Naming Service is running on.

String alma::acs::util::ACSPorts::giveNotifyServicePort  )  [inline]
 

Returns:
the port the CORBA Notification Service is running on.

String alma::acs::util::ACSPorts::giveServicesDaemonPort  )  [inline]
 

Returns:
the constant port (3014) the ACS Services daemon is running on.

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

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

Since:
v1.5

String alma::acs::util::ACSPorts::toString  )  [inline]
 


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]
 

Name of environment variable defining base port.

int alma::acs::util::ACSPorts::basePort [package]
 

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


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:54:35 2009 for ACS Java API by doxygen 1.3.8