Java Doc for ServerConfig.java in  » Workflow-Engines » obe-1.0 » org » obe » spi » service » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » obe 1.0 » org.obe.spi.service 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.obe.util.CommonConfig
      org.obe.spi.service.ServerConfig

ServerConfig
final public class ServerConfig extends CommonConfig (Code)
Provides access to OBE server configuration information. OBE is configured by several XML and properties files, which can either be located in the OBE configuration directory or in the META-INF/services directory in obeconfig.jar. Resources in the latter location are accessed via this class's ClassLoader. The OBE configuration directory can be specified by the system property "obe.config.dir", and it defaults to the current directory. Loose files take precedence over resources in obeconfig.jar.

The obe.properties file contains the main OBE configuration, and the ServiceManager.properties file contains the OBE ServiceManager configuration.
author:
   Adrian Price



Field Summary
final public static  StringASYNC_THREADPOOL_SIZE_PROP
     Property key for async manager thread pool size.
final public static  StringAUDIT_NON_TXN_PROP
     Property key for audit trail transactionality.
final public static  StringDIRECTORY_POLL_INTERVAL_PROP
     Property key for processes directory polling interval.
final public static  StringDOMAIN_PROP
     Property key for auditing domain.
final public static  StringEVENT_KEY_BASED_SUBSCRIPTIONS_PROP
     Property key for key-based event subscription usage.
final public static  StringEVENT_MAX_TARDINESS_PROP
     Property key for temporal event validity.
final public static  StringMAIL_SESSION_PROP
     Property key for mail session.
final public static  StringNODE_PROP
     Property key for auditing node.
final public static  StringREUSE_WORKITEMS_PROP
     Property key for workitem reuse.
final public static  StringSCRIPT_PROP
     Property key for default script type.
final public static  StringUSE_EVENT_API_PROP
     Property key for internal event API usage.
final public static  StringUSE_INIT_SERVLET_PROP
     Property key for initialization servlet usage.
final public static  StringVERBOSE_PROP
     Property key for debug verbosity.


Method Summary
public static  intgetAsyncThreadpoolSize()
     Returns the size of the thread pool used to service asynchronous execution requests.
public static  intgetDirectoryPollInterval()
     Returns the polling interval for the ${obe.config.dir}/processes and ${obe.config.dir}/events directories.
public static  StringgetDomain()
     Returns the server's management domain.
public static  StringgetHostAddress()
     Returns the local host's IP address.
public static  StringgetHostName()
     Returns the local host's DNS host name.
public static  InetAddressgetLocalHost()
     Returns the local host's InetAddress, if known.
public static  SessiongetMailSession()
     Returns the default mail session.
public static  intgetMaximumTemporalEventTardiness()
     Returns the maximum acceptable delay for processing a non-recoverable temporal event.
public static  StringgetNodeId()
     Returns the server's node ID.
public static  StringgetScriptType()
     Returns the default script type to use if one is not specified in XPDL.
public static  booleanisAuditNonTransactional()
     Returns whether auditing should be performed non-transactionally.
public static  booleanisVerbose()
     Returns whether debug output should be verbose.
public static  booleanreuseWorkItems()
     Returns whether work items should be re-used.
public static  booleansupportsKeyBasedEventSubscriptions()
     Returns whether the event manager should accept key-based event subscriptions.
public static  booleanuseEventAPI()
     Returns whether to inject application events via the WMLocalClient local client API .
public static  booleanuseInitServlet()
     Returns whether to defer initialization to the J2EEInitServlet.

Field Detail
ASYNC_THREADPOOL_SIZE_PROP
final public static String ASYNC_THREADPOOL_SIZE_PROP(Code)
Property key for async manager thread pool size.
See Also:   ServerConfig.getAsyncThreadpoolSize()



AUDIT_NON_TXN_PROP
final public static String AUDIT_NON_TXN_PROP(Code)
Property key for audit trail transactionality.
See Also:   ServerConfig.isAuditNonTransactional()



DIRECTORY_POLL_INTERVAL_PROP
final public static String DIRECTORY_POLL_INTERVAL_PROP(Code)
Property key for processes directory polling interval.
See Also:   ServerConfig.getDirectoryPollInterval()



DOMAIN_PROP
final public static String DOMAIN_PROP(Code)
Property key for auditing domain.
See Also:   ServerConfig.getDomain()



EVENT_KEY_BASED_SUBSCRIPTIONS_PROP
final public static String EVENT_KEY_BASED_SUBSCRIPTIONS_PROP(Code)
Property key for key-based event subscription usage.
See Also:   ServerConfig.supportsKeyBasedEventSubscriptions()



EVENT_MAX_TARDINESS_PROP
final public static String EVENT_MAX_TARDINESS_PROP(Code)
Property key for temporal event validity.
See Also:   ServerConfig.getMaximumTemporalEventTardiness()



MAIL_SESSION_PROP
final public static String MAIL_SESSION_PROP(Code)
Property key for mail session.
See Also:   ServerConfig.getMailSession()



NODE_PROP
final public static String NODE_PROP(Code)
Property key for auditing node.
See Also:   ServerConfig.getNodeId()



REUSE_WORKITEMS_PROP
final public static String REUSE_WORKITEMS_PROP(Code)
Property key for workitem reuse.
See Also:   ServerConfig.reuseWorkItems()



SCRIPT_PROP
final public static String SCRIPT_PROP(Code)
Property key for default script type.
See Also:   ServerConfig.getScriptType()



USE_EVENT_API_PROP
final public static String USE_EVENT_API_PROP(Code)
Property key for internal event API usage.
See Also:   ServerConfig.useEventAPI()



USE_INIT_SERVLET_PROP
final public static String USE_INIT_SERVLET_PROP(Code)
Property key for initialization servlet usage.
See Also:   ServerConfig.useInitServlet()



VERBOSE_PROP
final public static String VERBOSE_PROP(Code)
Property key for debug verbosity.
See Also:   ServerConfig.isVerbose()





Method Detail
getAsyncThreadpoolSize
public static int getAsyncThreadpoolSize()(Code)
Returns the size of the thread pool used to service asynchronous execution requests.

The setting reflects the value of the configuration property obe.async.threadpool.size. Async thread pool size, defaulting to 20.
See Also:   ServerConfig.ASYNC_THREADPOOL_SIZE_PROP




getDirectoryPollInterval
public static int getDirectoryPollInterval()(Code)
Returns the polling interval for the ${obe.config.dir}/processes and ${obe.config.dir}/events directories. Only used by the BasicProcessRepository and BasicApplicationEventBroker.

The setting reflects the value of the configuration property obe.directory.poll.interval. Polling interval in milliseconds, defaulting to 5000(5 seconds).
See Also:   ServerConfig.DIRECTORY_POLL_INTERVAL_PROP




getDomain
public static String getDomain()(Code)
Returns the server's management domain. Currently, this returns the hard-coded string "OBE". In a future release, this will be changed to return the name of the management domain to which the server belongs.

The setting reflects the string value of the configuration property obe.domain. The management domain name, defaulting to "OBE".
See Also:   ServerConfig.DOMAIN_PROP




getHostAddress
public static String getHostAddress()(Code)
Returns the local host's IP address. The local host address.



getHostName
public static String getHostName()(Code)
Returns the local host's DNS host name. The DNS host name.



getLocalHost
public static InetAddress getLocalHost()(Code)
Returns the local host's InetAddress, if known. The local host.



getMailSession
public static Session getMailSession() throws OBEException(Code)
Returns the default mail session. Mail session.



getMaximumTemporalEventTardiness
public static int getMaximumTemporalEventTardiness()(Code)
Returns the maximum acceptable delay for processing a non-recoverable temporal event. Non-recoverable temporal events older than this are discarded unprocessed.

The setting reflects the value of the configuration property obe.events.max.tardiness. Maximum temporal event processing delay, defaulting to30000 (5 minutes).
See Also:   ServerConfig.EVENT_MAX_TARDINESS_PROP




getNodeId
public static String getNodeId()(Code)
Returns the server's node ID. Currently, this returns the server's DNS host name. In a future release, this will be changed to return a node ID that is unique within the management domain to which the server belongs.

The setting reflects the string value of the configuration property obe.node. The server's node ID, defaulting to the primary DNS host name.
See Also:   ServerConfig.NODE_PROP




getScriptType
public static String getScriptType()(Code)
Returns the default script type to use if one is not specified in XPDL.

The setting reflects the boolean value of the configuration property obe.script. Script type, defaulting to "text/x-xpath".
See Also:   ServerConfig.SCRIPT_PROP




isAuditNonTransactional
public static boolean isAuditNonTransactional()(Code)
Returns whether auditing should be performed non-transactionally. If auditing is transactional, audit entries are enlisted in the transaction and will be lost in the event of a rollback. Otherwise, audit entries will be always logged regardless of the outcome of the transaction to which they relate.

N.B. Non-transactional auditing is very much more expensive than transactional auditing, and should only be used if absolutely necessary. In addition, interpreting the audit log is less straightforward, because the transactional context must be taken into account to determine whether an audit entry relates to a committed change or one which was rolled back. At the time of writing, non-transactional auditing support is incomplete, in that the transaction ID is not currently included in the logged information.

The setting reflects the value of the configuration property obe.audit.nontransactional:
TypeDefaultPurpose
booleanfalse The property name that specifies whether to log audit entries non-transactionally.
true for non-transactional auditing.
See Also:   ServerConfig.AUDIT_NON_TXN_PROP




isVerbose
public static boolean isVerbose()(Code)
Returns whether debug output should be verbose.

The setting reflects the boolean value of the configuration property obe.debug.verbose. true if verbose debugging is enabled, defaulting tofalse.
See Also:   ServerConfig.VERBOSE_PROP




reuseWorkItems
public static boolean reuseWorkItems()(Code)
Returns whether work items should be re-used.

The setting reflects the boolean value of the configuration property obe.reuse.workitems. true if work item re-use is enabled.
See Also:   ServerConfig.REUSE_WORKITEMS_PROP




supportsKeyBasedEventSubscriptions
public static boolean supportsKeyBasedEventSubscriptions()(Code)
Returns whether the event manager should accept key-based event subscriptions.

The setting reflects the value of the configuration property obe.events.key.based.subscriptions. true to accept key-based subscriptions,false to reject, defaulting to true.
See Also:   ServerConfig.EVENT_KEY_BASED_SUBSCRIPTIONS_PROP




useEventAPI
public static boolean useEventAPI()(Code)
Returns whether to inject application events via the WMLocalClient local client API . The engine creates an ApplicationEventListener application eventlistener , with which it subscribes for workflow-relevant application events. Injecting application events via the API allows them to be handled in a transactional context under an authenticated identity if the ApplicationEventBroker implementation does not provide these characteristics.

The setting reflects the boolean value of the configuration property obe.events.use.api. true if events are to be injected via the API,false for direct injection into the workflow engine.
See Also:   ServerConfig.USE_EVENT_API_PROP




useInitServlet
public static boolean useInitServlet()(Code)
Returns whether to defer initialization to the J2EEInitServlet. true to defer initialization, false toinitialize immediately.
See Also:   ServerConfig.USE_INIT_SERVLET_PROP



Fields inherited from org.obe.util.CommonConfig
final public static String CONFIG_DIR_PROP(Code)(Java Doc)
final protected static String CONFIG_FILE(Code)(Java Doc)
final public static String CREDENTIALS_PROP(Code)(Java Doc)
final public static String DATE_FORMAT_PROP(Code)(Java Doc)
final public static String DURATION_UNIT_PROP(Code)(Java Doc)
final public static String PRINCIPAL_PROP(Code)(Java Doc)
final public static String PROTOCOL_PROP(Code)(Java Doc)
final protected static Log _logger(Code)(Java Doc)
final protected static Properties _props(Code)(Java Doc)

Methods inherited from org.obe.util.CommonConfig
public static URL findResource(String resource)(Code)(Java Doc)
protected static boolean getBooleanProperty(String propertyName, boolean defaultValue)(Code)(Java Doc)
public static File getConfigDir()(Code)(Java Doc)
public static String getCredentials()(Code)(Java Doc)
public static String getDefaultDateFormat()(Code)(Java Doc)
public static String getDefaultDurationUnit()(Code)(Java Doc)
protected static int getIntProperty(String propertyName, int defaultValue)(Code)(Java Doc)
public static String getPrincipal()(Code)(Java Doc)
public static String getProtocol()(Code)(Java Doc)
protected static String getStringProperty(String propertyName, String defaultValue)(Code)(Java Doc)
public static InputSource openInputSource(String resource)(Code)(Java Doc)
public static InputStream openInputStream(String resource)(Code)(Java Doc)
public static OutputStream openOutputStream(String resource)(Code)(Java Doc)
public static Reader openReader(String resource)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.