Java Doc for ServerHandlerManager.java in  » Web-Server » Jigsaw » org » w3c » jigsaw » daemon » 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 » Jigsaw » org.w3c.jigsaw.daemon 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.w3c.jigsaw.daemon.ServerHandlerManager

ServerHandlerManager
public class ServerHandlerManager (Code)
A ServerHandlerManager instance manages a set of ServerHandler.


Field Summary
final public static  StringCLASS_P
     The server handler property class suffix.
final public static  StringCLONES_P
     The server handler property clones prefix.
final protected static  StringHANDLERS_P
     The property containing the servers to be launched at startup time.
final public static  StringSERVER_GROUP_P
    
final public static  StringSERVER_USER_P
    
protected  StringcommandLine
     Command line options that were provided at launch time.
protected  Hashtablehandlers
     The list of running server handlers.
protected static  ServerHandlerManagermanager
     The Application-Wide server manager.
protected  DaemonPropertiesprops
     The server handler manager property list.

Constructor Summary
public  ServerHandlerManager(String args, File config, Properties p)
     Create and initialize a fresh server handler manager.

Method Summary
public  EnumerationenumerateServerHandlers()
     Enumerate all the server handler manager's identifiers.
protected  voiderror(String msg)
     Emit a non-fatal error.
protected  voidfatal(String msg)
     Emit a fatal error.
protected  voidfixProperties(Properties p)
     For subclasses only.
public  String[]getCommandLine()
     Get the command line options that were provided at launch time.
protected  voidlaunchServerHandler(String id, DaemonProperties props)
     Launch a new server handler. This method tries to launch a new server handler.
public  ServerHandlerlookupServerHandler(String id)
     Lookup the server handler having the given identifier.
Parameters:
  id - The identifier of the server handler to look for.
public static  voidmain(String args)
    
public  voidremoveServerHandler(ServerHandler server)
    
public synchronized  voidshutdown()
     Shutdown this server handler manager.
public  voidunixStuff()
     Do some UNIX specific initialization.
public static  voidusage()
    

Field Detail
CLASS_P
final public static String CLASS_P(Code)
The server handler property class suffix.



CLONES_P
final public static String CLONES_P(Code)
The server handler property clones prefix.



HANDLERS_P
final protected static String HANDLERS_P(Code)
The property containing the servers to be launched at startup time. This property is a | separated list of server identifiers. Declaring a server to this list requires that either:
  • An appropriate org.w3c.jigsaw.daemon.identifier.class is declared and specify the class of the server to be launched (this class should implement the ServerHandler interface.).
  • An appropriate org.w3c.jigsaw.daemon.identifier.clones is declared and its value specify an existing server to be cloned in order to create the new server.



SERVER_GROUP_P
final public static String SERVER_GROUP_P(Code)



SERVER_USER_P
final public static String SERVER_USER_P(Code)



commandLine
protected String commandLine(Code)
Command line options that were provided at launch time.



handlers
protected Hashtable handlers(Code)
The list of running server handlers.



manager
protected static ServerHandlerManager manager(Code)
The Application-Wide server manager.



props
protected DaemonProperties props(Code)
The server handler manager property list.




Constructor Detail
ServerHandlerManager
public ServerHandlerManager(String args, File config, Properties p)(Code)
Create and initialize a fresh server handler manager. Each server handler declared in the properties is launched in turn. If no server handlers is declared, or if none of them is initializable the server manager is not created and a RuntimeException is thrown, otherwise, if at least one server handler was initialized, the server manager emits appropriate error messages to the error stream for each of the server handlers whose launch failed.
Parameters:
  props - The properties this manager should be initialized from.
exception:
  RuntimeException - If no server handlers was declared throughthe properties.




Method Detail
enumerateServerHandlers
public Enumeration enumerateServerHandlers()(Code)
Enumerate all the server handler manager's identifiers. An enumeration of String.



error
protected void error(String msg)(Code)
Emit a non-fatal error.
Parameters:
  msg - The message to emit.



fatal
protected void fatal(String msg)(Code)
Emit a fatal error. This will abort the whole process !
Parameters:
  msg - The fata error message.



fixProperties
protected void fixProperties(Properties p)(Code)
For subclasses only. Used to update properties at runtime. This method is called by launchServerHandler(String id, DaemonProperties props).
Parameters:
  p - the ServerHandlerManager properties.
See Also:   launchServerHandler



getCommandLine
public String[] getCommandLine()(Code)
Get the command line options that were provided at launch time. A String array instance.



launchServerHandler
protected void launchServerHandler(String id, DaemonProperties props)(Code)
Launch a new server handler. This method tries to launch a new server handler. If launching succeeds, it returns happily, otherwise, it emits an error message to the standard error stream.
Parameters:
  identifier - The identifier of the server handler to be launched.
Parameters:
  props - The properties from which the server handler shouldinitialize itself.



lookupServerHandler
public ServerHandler lookupServerHandler(String id)(Code)
Lookup the server handler having the given identifier.
Parameters:
  id - The identifier of the server handler to look for. A ServerHandler instance, or null ifundefined.



main
public static void main(String args)(Code)



removeServerHandler
public void removeServerHandler(ServerHandler server)(Code)
Remove a server handler from this manager server, the Server Handler to remove



shutdown
public synchronized void shutdown()(Code)
Shutdown this server handler manager. This method will call the shutdown method of all the running servers stopping the manager.

This server handler clones are considered shutdown too.




unixStuff
public void unixStuff()(Code)
Do some UNIX specific initialization. THis method exists straight if it cannot succeed !



usage
public static void usage()(Code)



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.