
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< ACSPorts > | instances = new Vector<ACSPorts>() |
Used to figure out the dynamic ports ACS is running under.
Caution
Be careful with the method names:
giveXXX() is instance
| alma::acs::util::ACSPorts::ACSPorts | ( | int | basePort | ) | [inline, private] |
Referenced by globalInstance().
| static String alma::acs::util::ACSPorts::getAlarmNotifyServicePort | ( | ) | [inline, static] |
References giveAlarmNotifyServicePort(), and globalInstanceForSystemProperty().
| static String alma::acs::util::ACSPorts::getAlarmServicePort | ( | ) | [inline, static] |
References giveAlarmServicePort(), and globalInstanceForSystemProperty().
| static int alma::acs::util::ACSPorts::getBasePort | ( | ) | [inline, static] |
References giveBasePort(), and globalInstanceForSystemProperty().
| static String alma::acs::util::ACSPorts::getCDBPort | ( | ) | [inline, static] |
References giveCDBPort(), and globalInstanceForSystemProperty().
| static String alma::acs::util::ACSPorts::getContainerDaemonPort | ( | ) | [inline, static] |
References giveContainerDaemonPort(), and globalInstanceForSystemProperty().
| static String alma::acs::util::ACSPorts::getIP | ( | ) | [inline, static] |
References giveIP(), and globalInstanceForSystemProperty().
| static String alma::acs::util::ACSPorts::getIRPort | ( | ) | [inline, static] |
References giveIRPort(), and globalInstanceForSystemProperty().
| static String alma::acs::util::ACSPorts::getLoggingServicePort | ( | ) | [inline, static] |
References giveLoggingServicePort(), and globalInstanceForSystemProperty().
| static String alma::acs::util::ACSPorts::getLogPort | ( | ) | [inline, static] |
References giveLogPort(), and globalInstanceForSystemProperty().
| static String alma::acs::util::ACSPorts::getManagerPort | ( | ) | [inline, static] |
References giveManagerPort(), and globalInstanceForSystemProperty().
| static String alma::acs::util::ACSPorts::getNamingServicePort | ( | ) | [inline, static] |
References giveNamingServicePort(), and globalInstanceForSystemProperty().
| static String alma::acs::util::ACSPorts::getNotifyServicePort | ( | ) | [inline, static] |
References giveNotifyServicePort(), and globalInstanceForSystemProperty().
| static String alma::acs::util::ACSPorts::getServicesDaemonPort | ( | ) | [inline, static] |
References giveServicesDaemonPort(), and globalInstanceForSystemProperty().
| String alma::acs::util::ACSPorts::giveAlarmNotifyServicePort | ( | ) | [inline] |
References basePort.
Referenced by getAlarmNotifyServicePort().
| String alma::acs::util::ACSPorts::giveAlarmServicePort | ( | ) | [inline] |
References basePort.
Referenced by getAlarmServicePort().
| int alma::acs::util::ACSPorts::giveBasePort | ( | ) | [inline] |
References basePort.
Referenced by getBasePort().
| String alma::acs::util::ACSPorts::giveCDBPort | ( | ) | [inline] |
References basePort.
Referenced by getCDBPort(), and alma::acs::commandcenter::app::ProjectRunModel::getServicesLocalJavaPort().
| String alma::acs::util::ACSPorts::giveContainerDaemonPort | ( | ) | [inline] |
Referenced by getContainerDaemonPort().
| String alma::acs::util::ACSPorts::giveIP | ( | ) | [inline] |
Referenced by getIP(), alma::acs::commandcenter::engine::ExecuteManager::startLocalScript(), and alma::acs::commandcenter::engine::ExecuteAcs::startLocalScript().
| String alma::acs::util::ACSPorts::giveIRPort | ( | ) | [inline] |
References basePort.
Referenced by getIRPort().
| String alma::acs::util::ACSPorts::giveLoggingServicePort | ( | ) | [inline] |
References basePort.
Referenced by getLoggingServicePort().
| String alma::acs::util::ACSPorts::giveLogPort | ( | ) | [inline] |
References basePort.
Referenced by getLogPort().
| String alma::acs::util::ACSPorts::giveManagerPort | ( | ) | [inline] |
References basePort.
Referenced by alma::acs::commandcenter::app::ProjectRunModel::getManagerLocalJavaPort(), getManagerPort(), alma::acs::commandcenter::engine::ExecuteManager::startLocalScript(), and alma::acs::commandcenter::engine::ExecuteAcs::startLocalScript().
| String alma::acs::util::ACSPorts::giveNamingServicePort | ( | ) | [inline] |
References basePort.
Referenced by getNamingServicePort().
| String alma::acs::util::ACSPorts::giveNotifyServicePort | ( | ) | [inline] |
References basePort.
Referenced by getNotifyServicePort().
| String alma::acs::util::ACSPorts::giveServicesDaemonPort | ( | ) | [inline] |
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.
References ACSPorts(), and instances.
Referenced by globalInstanceForSystemProperty().
| static ACSPorts alma::acs::util::ACSPorts::globalInstanceForSystemProperty | ( | ) | [inline, static, private] |
References ACS_BASE_PORT_DEFAULT, ACS_BASE_PORT_VARIABLE, and globalInstance().
Referenced by getAlarmNotifyServicePort(), getAlarmServicePort(), getBasePort(), getCDBPort(), getContainerDaemonPort(), getIP(), getIRPort(), getLoggingServicePort(), getLogPort(), getManagerPort(), getNamingServicePort(), getNotifyServicePort(), and getServicesDaemonPort().
| String alma::acs::util::ACSPorts::toString | ( | ) | [inline] |
References basePort.
final String alma::acs::util::ACSPorts::ACS_BASE_PORT_DEFAULT = "0" [static] |
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!
| args | Not used! Name of environment variable defining base port. |
Referenced by globalInstanceForSystemProperty().
int alma::acs::util::ACSPorts::basePort [package] |
Vector<ACSPorts> alma::acs::util::ACSPorts::instances = new Vector<ACSPorts>() [static, private] |
Referenced by globalInstance().
1.6.2