00001 #ifndef ACSUTIL_PORTS_H 00002 #define ACSUTIL_PORTS_H 00003 /******************************************************************************* 00004 * ALMA - Atacama Large Millimiter Array 00005 * (c) Associated Universities Inc., 2003 00006 * 00007 *This library is free software; you can redistribute it and/or 00008 *modify it under the terms of the GNU Lesser General Public 00009 *License as published by the Free Software Foundation; either 00010 *version 2.1 of the License, or (at your option) any later version. 00011 * 00012 *This library is distributed in the hope that it will be useful, 00013 *but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 *Lesser General Public License for more details. 00016 * 00017 *You should have received a copy of the GNU Lesser General Public 00018 *License along with this library; if not, write to the Free Software 00019 *Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 * 00021 * "@(#) $Id: acsutilPorts.h,v 1.8 2009/09/28 08:40:13 msekoran Exp $" 00022 * 00023 * who when what 00024 * -------- -------- ---------------------------------------------- 00025 * david 2003-07-04 created 00026 */ 00028 #ifndef __cplusplus 00029 #error This is a C++ include file and cannot be used from plain C 00030 #endif 00031 00032 #include "acsutil.h" 00033 #include <sstream> 00035 00044 class ACSPorts 00045 { 00046 public: 00048 00050 ACSPorts(){}; 00053 virtual ~ACSPorts(){}; 00054 00061 static const unsigned long 00062 getBasePort(); 00063 00070 static std::string 00071 getManagerPort(int baseport); 00072 00073 static std::string 00074 getManagerPort(); 00075 00082 static std::string 00083 getNamingServicePort(int baseport); 00084 00085 static std::string 00086 getNamingServicePort(); 00087 00094 static std::string 00095 getNotifyServicePort(int baseport, const char *name = NULL); 00096 00097 static std::string 00098 getNotifyServicePort(); 00099 00106 static std::string 00107 getLoggingServicePort(int baseport); 00108 00109 static std::string 00110 getLoggingServicePort(); 00111 00118 static std::string 00119 getIRPort(int baseport); 00120 00121 static std::string 00122 getIRPort(); 00123 00130 static std::string 00131 getLogPort(int baseport); 00132 00133 static std::string 00134 getLogPort(); 00135 00142 static std::string 00143 getCDBPort(int baseport); 00144 00145 static std::string 00146 getCDBPort(); 00147 00154 static std::string 00155 getAlarmServicePort(int baseport); 00156 00157 static std::string 00158 getAlarmServicePort(); 00159 00166 static std::string 00167 getContainerDaemonPort(); 00168 00175 static std::string 00176 getServicesDaemonPort(); 00177 00184 static const char* 00185 getIP(); 00186 00187 private: 00189 00191 ACSPorts(const ACSPorts&); 00192 00195 void operator= (const ACSPorts&); 00196 }; 00197 00198 #endif