org.ofbiz.service.config
Class ServiceConfigUtil

java.lang.Object
  extended by org.ofbiz.service.config.ServiceConfigUtil
All Implemented Interfaces:
java.io.Serializable

public class ServiceConfigUtil
extends java.lang.Object
implements java.io.Serializable

Misc. utility method for dealing with the serviceengine.xml file

See Also:
Serialized Form

Nested Class Summary
static class ServiceConfigUtil.NotificationGroup
           
 
Field Summary
static java.lang.String engine
           
static java.lang.String module
           
protected static UtilCache<java.lang.String,java.util.Map<java.lang.String,ServiceConfigUtil.NotificationGroup>> notificationGroupCache
           
static java.lang.String SERVICE_ENGINE_XML_FILENAME
           
 
Constructor Summary
ServiceConfigUtil()
           
 
Method Summary
static org.w3c.dom.Element getElement(java.lang.String elementName)
           
static java.lang.String getElementAttr(java.lang.String elementName, java.lang.String attrName)
           
static int getFailedRetryMin()
           
static ServiceConfigUtil.NotificationGroup getNotificationGroup(java.lang.String group)
           
static int getPurgeJobDays()
           
static java.util.List<java.lang.String> getRunPools()
           
static java.lang.String getSendPool()
           
static org.w3c.dom.Element getXmlRootElement()
           
static void readNotificationGroups()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

engine

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

SERVICE_ENGINE_XML_FILENAME

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

notificationGroupCache

protected static UtilCache<java.lang.String,java.util.Map<java.lang.String,ServiceConfigUtil.NotificationGroup>> notificationGroupCache
Constructor Detail

ServiceConfigUtil

public ServiceConfigUtil()
Method Detail

getXmlRootElement

public static org.w3c.dom.Element getXmlRootElement()
                                             throws GenericConfigException
Throws:
GenericConfigException

getElement

public static org.w3c.dom.Element getElement(java.lang.String elementName)

getElementAttr

public static java.lang.String getElementAttr(java.lang.String elementName,
                                              java.lang.String attrName)

getSendPool

public static java.lang.String getSendPool()

getRunPools

public static java.util.List<java.lang.String> getRunPools()

getPurgeJobDays

public static int getPurgeJobDays()

getFailedRetryMin

public static int getFailedRetryMin()

readNotificationGroups

public static void readNotificationGroups()

getNotificationGroup

public static ServiceConfigUtil.NotificationGroup getNotificationGroup(java.lang.String group)