net.larsan.urd.impl
Class UrdEnvironment

java.lang.Object
  |
  +--net.larsan.urd.impl.UrdEnvironment
All Implemented Interfaces:
Environment

public class UrdEnvironment
extends java.lang.Object
implements Environment

This class is an eagerly instantiated singleton implementing the Environment interface for the Urd framework.

Environment variables should be set in the system properties if needed before startup of the main servers. The properties looked for by this class are (with their default values in parenthis):

   net.larsan.norna.base.Environment.rootAddress (localhost)
   net.larsan.norna.base.Environment.rootPort (8666)
 

Version:
Alpha-0.1 / 2002-10-06 21:37
Author:
Lars J. Nilsson

Method Summary
static Environment getInstance()
          Get the environment instance.
 java.lang.String getNamespace()
          Get namespace
 java.lang.String getRootAddress()
          Get the Norna root address.
 int getRootPort()
          Get the root port number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Environment getInstance()
Get the environment instance.

Returns:
The Norna environment

getRootAddress

public java.lang.String getRootAddress()
Get the Norna root address.

Specified by:
getRootAddress in interface Environment
Returns:
The root address

getNamespace

public java.lang.String getNamespace()
Get namespace

Specified by:
getNamespace in interface Environment
Returns:
the Framework namespace name

getRootPort

public int getRootPort()
Get the root port number

Specified by:
getRootPort in interface Environment
Returns:
The framework root port