|
|||||||||
| Home >> All >> com >> flexstor >> common >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.flexstor.common.util
Class FlexDbServerHost

java.lang.Objectcom.flexstor.common.util.FlexDbServerHost
- public class FlexDbServerHost
- extends java.lang.Object
FlexDbServerHost returns information about the machine hosting the FlexDBServer. Among the information available is the list of virtual names given to the machine as specified in the flexstordb.properties file.
| Field Summary | |
private static FlexDbServerHost |
instance
Unique instance of this class |
private static java.util.Vector |
vNames
A Vector holding a list of the multiple names that the FlexDBServer might have. |
| Constructor Summary | |
private |
FlexDbServerHost()
|
| Method Summary | |
static FlexDbServerHost |
getInstance()
This method is called by the FlexDBServer to hold an instance of this class during an entire session. |
static java.lang.String |
getLocalHostName()
Retrieve the name of the local host. |
static void |
initialize()
Initialize the class with information from the flexstordb.properties file. |
static boolean |
isInitialized()
Test to find out if FlexDBServer has been initialized |
static boolean |
isLocalHost()
This call will return true only if this JVM is running in the FlexDBServer host machine. |
static boolean |
isLocalHost(java.lang.String sServer)
Checks if the argument corresponds to the local host. |
private static void |
retrieveNames()
Retrieve the name of the server from the host property and any other names defined in the otherNames property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
instance
private static FlexDbServerHost instance
- Unique instance of this class
vNames
private static java.util.Vector vNames
- A Vector holding a list of the multiple names that the FlexDBServer might have.
At least it will have as first element the server name specified in the host
property; then, if any, the list of server names specified in the otherNames
property.
| Constructor Detail |
FlexDbServerHost
private FlexDbServerHost()
| Method Detail |
getInstance
public static FlexDbServerHost getInstance()
- This method is called by the FlexDBServer to hold an instance of this class
during an entire session.
initialize
public static void initialize()
- Initialize the class with information from the flexstordb.properties file.
isInitialized
public static boolean isInitialized()
- Test to find out if FlexDBServer has been initialized
isLocalHost
public static boolean isLocalHost()
- This call will return true only if this JVM is running in the FlexDBServer host machine.
isLocalHost
public static boolean isLocalHost(java.lang.String sServer)
- Checks if the argument corresponds to the local host.
Returns true if the argument is any of the names for the FlexDBServer, false otherwise.
getLocalHostName
public static java.lang.String getLocalHostName()
- Retrieve the name of the local host. The local host will be the value of the appserver.host
property in the flexstordb.properties file. If the FlexDbServerHost has not being initialized,
this call will return the name of the host machine as given by the InetUtil class.
retrieveNames
private static void retrieveNames()
- Retrieve the name of the server from the host property and any other names defined
in the otherNames property.
|
|||||||||
| Home >> All >> com >> flexstor >> common >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.flexstor.common.util.FlexDbServerHost