Class Utility
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static longNO_SUCH_TIME
-
Constructor Summary
Constructors Constructor Description Utility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangetBooleanProperty(String propertyName, boolean defaultValue, Map props)static com.sun.enterprise.ee.cms.core.GMSMembergetGMSMember(SystemAdvertisement systemAdvertisement)static StringgetGroupName(SystemAdvertisement advert)static intgetIntProperty(String propertyName, int defaultValue, Map props)static longgetLongProperty(String propertyName, long defaultValue, Map props)static longgetStartTime(SystemAdvertisement advert)static StringgetStringProperty(String propertyName, String defaultValue, Map props)static booleanisWatchDog(SystemAdvertisement sysAdv)static voidsetLogger(Logger theLogger)static voidsetupLogHandler()
-
-
-
Field Detail
-
NO_SUCH_TIME
public static final long NO_SUCH_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setLogger
public static void setLogger(Logger theLogger)
-
getGMSMember
public static com.sun.enterprise.ee.cms.core.GMSMember getGMSMember(SystemAdvertisement systemAdvertisement)
-
isWatchDog
public static boolean isWatchDog(SystemAdvertisement sysAdv)
-
getStringProperty
public static String getStringProperty(String propertyName, String 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)
-
-