com.sun.enterprise.ee.cms.impl.base
Class Utility

java.lang.Object
  extended by com.sun.enterprise.ee.cms.impl.base.Utility

public class Utility
extends Object

Utility class that can be used by any calling code to do common routines

Author:
shreedhar ganapathy, Bongjae Chang

Field Summary
static long NO_SUCH_TIME
           
 
Constructor Summary
Utility()
           
 
Method Summary
static boolean getBooleanProperty(String propertyName, boolean defaultValue, Map props)
           
static GMSMember getGMSMember(SystemAdvertisement systemAdvertisement)
           
static String getGroupName(SystemAdvertisement advert)
           
static int getIntProperty(String propertyName, int defaultValue, Map props)
           
static long getLongProperty(String propertyName, long defaultValue, Map props)
           
static long getStartTime(SystemAdvertisement advert)
           
static String getStringProperty(String propertyName, String defaultValue, Map props)
           
static boolean isWatchDog(SystemAdvertisement sysAdv)
           
static void setLogger(Logger theLogger)
           
static void setupLogHandler()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_SUCH_TIME

public static final long NO_SUCH_TIME
See Also:
Constant Field Values
Constructor Detail

Utility

public Utility()
Method Detail

setLogger

public static void setLogger(Logger theLogger)

getGMSMember

public static GMSMember getGMSMember(SystemAdvertisement systemAdvertisement)

isWatchDog

public static boolean isWatchDog(SystemAdvertisement sysAdv)

getStringProperty

public static String getStringProperty(String propertyName,
                                       String defaultValue,
                                       Map props)

getIntProperty

public static int getIntProperty(String propertyName,
                                 int defaultValue,
                                 Map props)

getLongProperty

public static long getLongProperty(String propertyName,
                                   long defaultValue,
                                   Map props)

getBooleanProperty

public static boolean getBooleanProperty(String propertyName,
                                         boolean defaultValue,
                                         Map props)

setupLogHandler

public static void setupLogHandler()

getStartTime

public static long getStartTime(SystemAdvertisement advert)

getGroupName

public static String getGroupName(SystemAdvertisement advert)


Copyright © 2012. All Rights Reserved.