com.monad.homerun.core
Class GlobalProps

java.lang.Object
  extended by com.monad.homerun.core.GlobalProps

public class GlobalProps
extends java.lang.Object

GlobalProps contains properties affecting all homerun components and apps and frequently used constants


Field Summary
static int BAD_NUMBER
           
static java.lang.String BOOT_SVC_TAG
           
static int DAYS_PER_CYC
           
static boolean DEBUG
          Global debug flag - this allows toggling all the debug logging & other instrumentation.
static java.lang.String DEFAULT_SERVER_HOST
           
static boolean EMBEDDED
           
static java.lang.String homeDir
           
static int MINS_PER_DAY
           
static java.lang.String RMI_SVC_TAG
           
static java.lang.String SERVER_COMM_ERROR
           
static java.lang.String VERSION
           
static java.lang.String WEB_SVC_TAG
           
 
Constructor Summary
GlobalProps()
           
 
Method Summary
static java.lang.String getHomeDir()
          Returns the directory where server is installed
static java.lang.String getHomeURLPath()
          Returns the directory where server is installed in URL-friendly form
static java.lang.String getOSTag()
          Returns a tag for the family of operating system where server is installed
static void sysLog(java.lang.String message)
          Writes a message to std error when we don't have logging, unless in embedded mode, when it is silently discarded
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
Global debug flag - this allows toggling all the debug logging & other instrumentation. Any decent compiler will remove all the code conditional on this flag, so will reduce code size in production builds

See Also:
Constant Field Values

EMBEDDED

public static final boolean EMBEDDED
See Also:
Constant Field Values

SERVER_COMM_ERROR

public static final java.lang.String SERVER_COMM_ERROR
See Also:
Constant Field Values

BAD_NUMBER

public static final int BAD_NUMBER
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values

MINS_PER_DAY

public static final int MINS_PER_DAY
See Also:
Constant Field Values

DAYS_PER_CYC

public static final int DAYS_PER_CYC
See Also:
Constant Field Values

DEFAULT_SERVER_HOST

public static final java.lang.String DEFAULT_SERVER_HOST
See Also:
Constant Field Values

BOOT_SVC_TAG

public static final java.lang.String BOOT_SVC_TAG
See Also:
Constant Field Values

WEB_SVC_TAG

public static final java.lang.String WEB_SVC_TAG
See Also:
Constant Field Values

RMI_SVC_TAG

public static final java.lang.String RMI_SVC_TAG
See Also:
Constant Field Values

homeDir

public static java.lang.String homeDir
Constructor Detail

GlobalProps

public GlobalProps()
Method Detail

getHomeDir

public static java.lang.String getHomeDir()
Returns the directory where server is installed

Returns:
homedir the server application home

getHomeURLPath

public static java.lang.String getHomeURLPath()
Returns the directory where server is installed in URL-friendly form

Returns:
homedir the server application home

getOSTag

public static java.lang.String getOSTag()
Returns a tag for the family of operating system where server is installed

Returns:
tag 'win' for windows-based OSes, 'mac' for Apple mac OSXs, 'nix' for everything else

sysLog

public static void sysLog(java.lang.String message)
Writes a message to std error when we don't have logging, unless in embedded mode, when it is silently discarded

Parameters:
message - the log message to write


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.