|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.application.ServerId
public class ServerId
This class represents server identification. In general server identification is an IP address of the machine when it is running. But in some cases such we may want to run two servers on the same machine and in that case the IP address is not unique and must be customized by each instance (e.g. using port or some sequence). Therefore this class is used as and abstraction of server identification so that we don't rely that it is only and IP address.
| Field Summary | |
|---|---|
protected java.lang.String |
m_strServerId
Identification of the server |
protected static ServerId |
s_defaultServerId
Id of the default server. |
| Constructor Summary | |
|---|---|
ServerId()
Default constructor. |
|
| Method Summary | |
|---|---|
static ServerId |
getInstance()
Get the default instance of the server id. |
java.lang.String |
getServerId()
Get the server id. |
void |
setServerId(java.lang.String serverId)
Set new server id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String m_strServerId
protected static ServerId s_defaultServerId
| Constructor Detail |
|---|
public ServerId()
throws OSSException
OSSException - - an error has occured identifying serverr| Method Detail |
|---|
public static ServerId getInstance()
public java.lang.String getServerId()
public void setServerId(java.lang.String serverId)
serverId - - new serverId to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||