org.cougaar.bootstrap

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 » Science » Cougaar12_4 » org.cougaar.bootstrap 
org.cougaar.bootstrap
Provides an extensible utility for starting an application composed from a complex set of jars. The features added over standard java include incorporation of directories and archives of jarfiles into a single classpath, more flexible application configuration, and hooks for a variety of jarfile and class checking and analysis. The resulting bootstrap.jar is configured to be an executable jarfile which runs {@link org.cougaar.bootstrap.Bootstrapper} by default. The end goal of bootstrapper is to simplify the content and maintenance of external scripts.

Java Source File NameTypeComment
BaseBootstrapper.javaClass
BootstrapClassLoader.javaClass A Classloader which uses slightly different rules for class loading: Prefer classes loaded via this loader rather than the parent.
Bootstrapper.javaClass A main(String[] args) class that searches for classes and jar files in a path, creates an XURLClassLoader that uses the found jars, and launches an application class (typically a Cougaar Node).

The Bootstrapper simplifies the $COUGAAR_INSTALL_PATH/bin/cougaar script and similar run scripts, which use the bootstrapper's jar for their Java classpath, instead of listing many individual jar files.

CheckingBootstrapper.javaClass
CommandLine.javaClass This class is used by $COUGAAR_INSTALL_PATH/bin/cougaar[.bat] to read the configuration XML files and print the java command line, which is then used to launch the Cougaar node process.

For usage, see the CommandLine.USAGE string, or run:

 $COUGAAR_INSTALL_PATH/bin/cougaar --help
 
The typical usage is:
 # start node X specified in "mySociety.xml":
 cd your_config_directory
 $COUGAAR_INSTALL_PATH/bin/cougaar mySociety.xml X
 

This class is intended to replace the old Cougaar scripts:
  Node, Node.bat, XMLNode.bat, XSLNode, XSLNode.bat
The behavior is backwards-compatible with XSLNode.

For example, the input files and command line:
mySociety.xml:

 <?xml version='1.0'?>
 <society name='MinPing' ..>
 <node name='NodeA'>
 <vm_parameter>-Dx=y</vm_parameter>
 <vm_parameter>-Dfoo=$bar</vm_parameter>
 </node>
 </society>
 
myRuntime.xml:
 <?xml version='1.0'?>
 <vm_parameters>
 <vm_parameter>-Dx=z</vm_parameter>
 ..
 </vm_parameters>
 
command line:
 $COUGAAR_INSTALL_PATH/bin/cougaar \
 --society mySociety.xml\
 --runtime myRuntime.xml\
 NodeA
 
would print a command line output similar to:
 java -Dx=z -Dfoo=$bar ...
 
and on Windows (based on the 'os.name' property) this would be:
 java -Dx=z -Dfoo=%bar% ...
 

This parser also adds several standard Cougaar defaults, which add the minimal -Ds and options required to run a Cougaar node:

  • If the <command> is not specified in either the society_xml or optional runtime_xml, "java" is used.
  • If the <class> is not specified in either xml, "org.cougaar.bootstrap.Bootstrapper" is used.
LoggingClassLoader.javaClass Classloader that logs accessed classes, similar to "java -verbose:class", but also notes XURLClassLoader details such as jar paths.
SystemProperties.javaClass Utility class to access system properties.
SystemPropertiesTest.javaClass
XMLReaderUtils.javaClass Create an XMLReader that matches the JDK version's supported parser.
XURLClassLoader.javaClass This class loader is used to load classes and resources from a search path of URLs referring to both JAR files and directories.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.