Java Doc for SandstormConfig.java in  » Web-Server » Rimfaxe-Web-Server » seda » sandStorm » main » 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 » Web Server » Rimfaxe Web Server » seda.sandStorm.main 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   seda.sandStorm.main.SandstormConfig

SandstormConfig
public class SandstormConfig implements Cloneable(Code)
This class is used to pass configuration parameters into Sandstorm at startup time. It reads initial configuration parameters from a file, using an XML-like format. Various operations can be performed upon this class to modify the configuration of the Sandstorm runtime.
author:
   Matt Welsh
See Also:   Sandstorm
See Also:   Main

Inner Class :class configSection
Inner Class :class directiveReader extends Reader

Field Summary
final public static  StringCONFIG_FALSE
     String value for setting boolean configuration entries to false.
final public static  StringCONFIG_TRUE
     String value for setting boolean configuration entries to true.
final public static  StringLIST_ELEMENT_DELIMITER
    
final public static  StringTHREADMGR_AggTPSTM
     Value for defaultThreadMgr to use the aggregating TPSTM.
final public static  StringTHREADMGR_TPPTM
     Value for defaultThreadMgr to use the thread-per-CPU thread manager.
final public static  StringTHREADMGR_TPSTM
     Value for defaultThreadMgr to use the thread-per-stage thread manager.
public  HashtabledefaultInitArgs
     Default initialization arguments passed to every stage.
final public static  String[]defaults
     The set of default values for the Sandstorm configuration.

Constructor Summary
public  SandstormConfig()
     Create a new SandstormConfig with the default settings.
public  SandstormConfig(String defaultArgs)
     Create a new SandstormConfig with the default settings, with the given default init args, which will be passed to every stage. Each element of defaultArgs[] is a String in the format "key=value".
public  SandstormConfig(String fname)
     Create a new SandstormConfig, reading the configration from the given file.
public  SandstormConfig(String fname, String defaultArgs)
     Create a new SandstormConfig, reading the configration from the given file.

Method Summary
public  voidaddStage(String stageName, String className, String initargs)
     Add a stage to this SandstormConfig.
public  booleangetBoolean(String key)
     Return the configuration option associated with the given key as a boolean.
public  booleangetBoolean(String key, boolean defaultval)
     Return the configuration option associated with the given key as a boolean.
public  SandstormConfiggetCopy()
     Return a copy of this object.
public  doublegetDouble(String key)
     Return the configuration option associated with the given key as a double.
public  doublegetDouble(String key, double defaultval)
     Return the configuration option associated with the given key as a double.
public  intgetInt(String key)
     Return the configuration option associated with the given key as an int.
public  intgetInt(String key, int defaultval)
     Return the configuration option associated with the given key as an int.
public  EnumerationgetKeys(String prefix)
     Return an enumeration of the keys matching the given prefix.
public  EnumerationgetKeys()
     Return an enumeration of the top-level keys in this configuration.
public  EnumerationgetStages()
     Return an Enumeration of the stages specified by this SandstormConfig.
public  StringgetString(String key)
     Return the configuration option associated with the given key as a String.
public  StringgetString(String key, String defaultval)
     Return the configuration option associated with the given key as a String.
public  String[]getStringList(String key)
     Get the string list value corresponding to the given key.
public  voidputBoolean(String key, boolean val)
     Set the given configuration option specified as a boolean.
public  voidputDouble(String key, double val)
     Set the given configuration option specified as an int.
public  voidputInt(String key, int val)
     Set the given configuration option specified as an int.
public  voidputString(String key, String val)
     Set the given configuration option specified as a String.
public  voidputtStringList(String key, String valarr)
     Set the given key to the given string list value.
public  voidreadFile(String fname)
     Read the configuration from the given file.

Field Detail
CONFIG_FALSE
final public static String CONFIG_FALSE(Code)
String value for setting boolean configuration entries to false.



CONFIG_TRUE
final public static String CONFIG_TRUE(Code)
String value for setting boolean configuration entries to true.



LIST_ELEMENT_DELIMITER
final public static String LIST_ELEMENT_DELIMITER(Code)



THREADMGR_AggTPSTM
final public static String THREADMGR_AggTPSTM(Code)
Value for defaultThreadMgr to use the aggregating TPSTM.



THREADMGR_TPPTM
final public static String THREADMGR_TPPTM(Code)
Value for defaultThreadMgr to use the thread-per-CPU thread manager.



THREADMGR_TPSTM
final public static String THREADMGR_TPSTM(Code)
Value for defaultThreadMgr to use the thread-per-stage thread manager.



defaultInitArgs
public Hashtable defaultInitArgs(Code)
Default initialization arguments passed to every stage.



defaults
final public static String[] defaults(Code)
The set of default values for the Sandstorm configuration. In order to modify the default configuration used by Sandstorm, edit SandstormConfig.java and recompile.




Constructor Detail
SandstormConfig
public SandstormConfig()(Code)
Create a new SandstormConfig with the default settings.



SandstormConfig
public SandstormConfig(String defaultArgs) throws IOException(Code)
Create a new SandstormConfig with the default settings, with the given default init args, which will be passed to every stage. Each element of defaultArgs[] is a String in the format "key=value". If "key" contains a dot ("."), then it will be treated as a key to be added to the Sandstorm configuration's global parameters. Otherwise, the key-value pair will be added to the "initargs" section for each stage.



SandstormConfig
public SandstormConfig(String fname) throws IOException(Code)
Create a new SandstormConfig, reading the configration from the given file. The configuration file uses an XML-like structure; see the Sandstorm documentation for more information on its format.



SandstormConfig
public SandstormConfig(String fname, String defaultArgs) throws IOException(Code)
Create a new SandstormConfig, reading the configration from the given file. The configuration file uses an XML-like structure; see the Sandstorm documentation for more information on its format.
Parameters:
  defaultInitArgs - Default initialization arguments passed toevery stage. These override any arguments found in the config file.Each element of this array must be a string with the format"key=value".




Method Detail
addStage
public void addStage(String stageName, String className, String initargs) throws StageNameAlreadyBoundException, IOException(Code)
Add a stage to this SandstormConfig.
Parameters:
  stageName - The name of the stage as it should be registered.
Parameters:
  className - The fully-qualified class name of the stage eventhandler.
Parameters:
  initargs - The initial arguments to pass into the stage.



getBoolean
public boolean getBoolean(String key)(Code)
Return the configuration option associated with the given key as a boolean. Returns false if not set.



getBoolean
public boolean getBoolean(String key, boolean defaultval)(Code)
Return the configuration option associated with the given key as a boolean. Returns default if not set.



getCopy
public SandstormConfig getCopy()(Code)
Return a copy of this object.



getDouble
public double getDouble(String key)(Code)
Return the configuration option associated with the given key as a double. Returns -1 if not set or if the value of the key cannot be expressed as a double.



getDouble
public double getDouble(String key, double defaultval)(Code)
Return the configuration option associated with the given key as a double. Returns default if not set or if the value of the key cannot be expressed as a double.



getInt
public int getInt(String key)(Code)
Return the configuration option associated with the given key as an int. Returns -1 if not set or if the value of the key cannot be expressed as an int.



getInt
public int getInt(String key, int defaultval)(Code)
Return the configuration option associated with the given key as an int. Returns default if not set or if the value of the key cannot be expressed as an int.



getKeys
public Enumeration getKeys(String prefix)(Code)
Return an enumeration of the keys matching the given prefix. A given key maps onto a set of child keys if it ends in a "." character (that is, it is an internal node within the tree). A key not ending in "." is a terminal node and maps onto a value that may be obtained using getString, getInt, or getDouble.



getKeys
public Enumeration getKeys()(Code)
Return an enumeration of the top-level keys in this configuration.



getStages
public Enumeration getStages()(Code)
Return an Enumeration of the stages specified by this SandstormConfig.



getString
public String getString(String key)(Code)
Return the configuration option associated with the given key as a String. Returns null if not set.



getString
public String getString(String key, String defaultval)(Code)
Return the configuration option associated with the given key as a String. Returns default if not set.



getStringList
public String[] getStringList(String key)(Code)
Get the string list value corresponding to the given key. Returns null if not set.



putBoolean
public void putBoolean(String key, boolean val)(Code)
Set the given configuration option specified as a boolean.



putDouble
public void putDouble(String key, double val)(Code)
Set the given configuration option specified as an int.



putInt
public void putInt(String key, int val)(Code)
Set the given configuration option specified as an int.



putString
public void putString(String key, String val)(Code)
Set the given configuration option specified as a String.



puttStringList
public void puttStringList(String key, String valarr)(Code)
Set the given key to the given string list value.



readFile
public void readFile(String fname) throws IOException(Code)
Read the configuration from the given file.



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.