|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.productivity.java.habitat4j.common.ServerIdentity
public class ServerIdentity
This class provides server-wide information used by all applications. An instance of this is managed by the ServerIdentityManager Singleton class. PropertyListManager relies on an instance of ServerIdentity to make contextual decisions on which properties to load for use by the application.
## LICENSE INFORMATION ##
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ServerIdentity()
|
|
| Method Summary | |
|---|---|
ServerIdentityRole |
addRole(java.lang.String name)
This method adds a ServerIdentityRole to a ServerIdentity instance. |
java.lang.String |
getApplicationName()
|
java.lang.String |
getEnvironment()
|
java.util.Hashtable |
getFixed()
|
java.lang.String |
getInstanceDescription()
|
java.lang.String |
getInstanceEnumeration()
|
java.lang.String |
getInstanceName()
|
java.lang.String |
getInstanceOS()
|
java.lang.String |
getModifiedBy()
|
java.lang.String |
getPragmaDefinition(java.lang.String name)
|
java.util.Hashtable |
getPragmaDefinitions()
|
ServerIdentityRole |
getRole(java.lang.String name)
|
java.util.Hashtable |
getRoles()
|
java.lang.String |
getVersion()
|
boolean |
hasPragmaDefinitions()
|
void |
reset()
This method resets all of the contents of this object. |
void |
setApplicationName(java.lang.String applicationName)
|
void |
setEnvironment(java.lang.String environment)
|
void |
setInstanceDescription(java.lang.String instanceDescription)
|
void |
setInstanceEnumeration(java.lang.String instanceEnumeration)
|
void |
setInstanceName(java.lang.String instanceName)
|
void |
setInstanceOS(java.lang.String instanceOS)
|
void |
setModifiedBy(java.lang.String modifiedBy)
|
void |
setPragmaDefinition(java.lang.String name,
java.lang.String value)
|
void |
setVersion(java.lang.String version)
|
java.lang.String |
toString()
This method provides a human-readable dump of all variables that make up an instance of ServerIdentity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServerIdentity()
| Method Detail |
|---|
public java.lang.String getApplicationName()
public java.lang.String getVersion()
public java.lang.String getModifiedBy()
public java.lang.String getEnvironment()
public void setEnvironment(java.lang.String environment)
environment - the server's environment designation to setpublic java.lang.String getInstanceDescription()
public void setInstanceDescription(java.lang.String instanceDescription)
instanceDescription - the server's instance description to setpublic java.lang.String getInstanceEnumeration()
public void setInstanceEnumeration(java.lang.String instanceEnumeration)
instanceEnumeration - the server's instance enumeration to setpublic java.lang.String getInstanceName()
public void setInstanceOS(java.lang.String instanceOS)
instanceName - the server's instance operating system to setpublic java.lang.String getInstanceOS()
public void setInstanceName(java.lang.String instanceName)
instanceName - the server's instance name to setpublic boolean hasPragmaDefinitions()
public java.util.Hashtable getPragmaDefinitions()
public java.lang.String getPragmaDefinition(java.lang.String name)
name - - the String name of the pragma definition to retrieve
public void setPragmaDefinition(java.lang.String name,
java.lang.String value)
name - - the String name of the pragma definition to setvalue - - the String value of the pragma definition to setpublic java.util.Hashtable getRoles()
public ServerIdentityRole addRole(java.lang.String name)
name - the role name to add, such as "dbServer," "appServer," or "webServer"
public ServerIdentityRole getRole(java.lang.String name)
name - the role name to get, such as "dbServer," "appServer," or "webServer"
public void setApplicationName(java.lang.String applicationName)
applicationName - the name of the calling application to be setpublic void setVersion(java.lang.String version)
version - The version to set.public void setModifiedBy(java.lang.String modifiedBy)
modifiedBy - The modifiedBy to set.public java.util.Hashtable getFixed()
public void reset()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||