Java Doc for ModuleFactory.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » iapi » services » monitor » 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 » Database DBMS » db derby 10.2 » org.apache.derby.iapi.services.monitor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.derby.iapi.services.monitor.ModuleFactory

All known Subclasses:   org.apache.derby.impl.services.monitor.BaseMonitor,
ModuleFactory
public interface ModuleFactory (Code)
The monitor provides a central registry for all modules in the system, and manages loading, starting, and finding them.




Method Summary
public  InstanceGetterclassFromIdentifier(int identifier)
     Obtain a class that supports the given identifier.
public  ObjectcreatePersistentService(String factoryInterface, String serviceName, Properties properties)
     Create a persistent service.
public  ObjectfindModule(Object service, String protocol, String identifier)
     Find the module in the system with the given module protocol, protocolVersion and identifier.
public  ObjectfindService(String protocol, String identifier)
     Find a service.
public  PropertiesgetApplicationProperties()
    
public  ThreadgetDaemonThread(Runnable task, String name, boolean setMinPriority)
     Get a newly created background thread.
public  ProductVersionHoldergetEngineVersion()
    
public  ObjectgetEnvironment()
     Return the environment object that this system was booted in. This is a free form object that is set by the method the system is booted.
public  StringgetJVMProperty(String key)
     Return a property from the JVM's system set.
public  LocalegetLocale(Object serviceModule)
     Return the locale of the service that the passed in module lives in.
public  LocalegetLocaleFromString(String localeDescription)
     Translate a string of the form ll[_CC[_variant]] to a Locale.
public  String[]getServiceList(String protocol)
     Return an array of the service identifiers that are running and implement the passed in protocol (java interface class name).
public  StringgetServiceName(Object serviceModule)
     Return the name of the service that the passed in module lives in.
public  PersistentServicegetServiceProvider(String subSubProtocol)
     Return the PersistentService for a subsubprotocol.
public  PersistentServicegetServiceType(Object serviceModule)
     Return the PersistentService object for a service.
public  InfoStreamsgetSystemStreams()
     Get the defined default system streams object.
public  org.apache.derby.iapi.services.timer.TimerFactorygetTimerFactory()
     Get the Timer factory for the system.
public  org.apache.derby.iapi.services.uuid.UUIDFactorygetUUIDFactory()
     Get the UUID factory for the system.
public  ObjectnewInstanceFromIdentifier(int identifier)
     Obtain an new instance of a class that supports the given identifier.
public  voidremovePersistentService(String name)
    
public  LocalesetLocale(Object serviceModule, String userDefinedLocale)
     Set the locale for the service *outside* of boot time.
public  LocalesetLocale(Properties serviceProperties, String userDefinedLocale)
     Set the locale for the service at boot time.
public  voidsetThreadPriority(int priority)
     Set the priority of the current thread.
public  voidshutdown()
     Shut down the complete system that was started by this Monitor.
public  voidshutdown(Object service)
     Shut down a service that was started by this Monitor.
public  ObjectstartModule(boolean create, Object service, String protocol, String identifier, Properties properties)
     Start a module.
public  ObjectstartNonPersistentService(String factoryInterface, String serviceName, Properties properties)
     Start a non-persistent service.
public  booleanstartPersistentService(String serviceName, Properties properties)
     Start a persistent service.
Do not call directly - use Monitor.startPersistentService()

The poperty set passed in is for boot options for the modules required to start the service.

public  voidstartServices(Properties properties, boolean bootAll)
     Start all services identified by derby.service.* in the property set.



Method Detail
classFromIdentifier
public InstanceGetter classFromIdentifier(int identifier) throws StandardException(Code)
Obtain a class that supports the given identifier.
Parameters:
  identifier - identifer to associate with class a reference InstanceGetter
exception:
  StandardException - See Monitor.classFromIdentifier



createPersistentService
public Object createPersistentService(String factoryInterface, String serviceName, Properties properties) throws StandardException(Code)
Create a persistent service.
Do not call directly - use Monitor.startPersistentService()
exception:
  StandardException - An attempt to create the service failed.
See Also:   Monitor.createPersistentService



findModule
public Object findModule(Object service, String protocol, String identifier)(Code)
Find the module in the system with the given module protocol, protocolVersion and identifier. The module instance if found, or null.



findService
public Object findService(String protocol, String identifier)(Code)
Find a service.
Do not call directly - use Monitor.findService() a refrence to a module represeting the service or null if the service does not exist.
See Also:   Monitor.findService



getApplicationProperties
public Properties getApplicationProperties()(Code)



getDaemonThread
public Thread getDaemonThread(Runnable task, String name, boolean setMinPriority)(Code)
Get a newly created background thread. The thread is set to be a daemon but is not started.



getEngineVersion
public ProductVersionHolder getEngineVersion()(Code)



getEnvironment
public Object getEnvironment()(Code)
Return the environment object that this system was booted in. This is a free form object that is set by the method the system is booted. For example when running in a Marimba system it is set to the maribma application context. In most environments it will be set to a java.io.File object representing the system home directory. Code that call this method usualy have predefined knowledge of the type of the returned object, e.g. Marimba store code knows that this will be set to a marimba application context.



getJVMProperty
public String getJVMProperty(String key)(Code)
Return a property from the JVM's system set. In a Java2 environment this will be executed as a privileged block if and only if the property starts with 'derby.'. If a SecurityException occurs, null is returned.



getLocale
public Locale getLocale(Object serviceModule)(Code)
Return the locale of the service that the passed in module lives in. Will return null if no-locale has been defined.



getLocaleFromString
public Locale getLocaleFromString(String localeDescription) throws StandardException(Code)
Translate a string of the form ll[_CC[_variant]] to a Locale. This is in the Monitor because we want this translation to be in only one place in the code.



getServiceList
public String[] getServiceList(String protocol)(Code)
Return an array of the service identifiers that are running and implement the passed in protocol (java interface class name). This list is a snapshot of the current running systesm, once the call returns the service may have been shutdown or new ones added. The list of service names, if no services exist thatimplement the protocol an array with zero elements is returned.



getServiceName
public String getServiceName(Object serviceModule)(Code)
Return the name of the service that the passed in module lives in.



getServiceProvider
public PersistentService getServiceProvider(String subSubProtocol) throws StandardException(Code)
Return the PersistentService for a subsubprotocol. the PersistentService or null if it does not exist
exception:
  StandardException -



getServiceType
public PersistentService getServiceType(Object serviceModule)(Code)
Return the PersistentService object for a service. Will return null if the service does not exist.



getSystemStreams
public InfoStreams getSystemStreams()(Code)
Get the defined default system streams object.



getTimerFactory
public org.apache.derby.iapi.services.timer.TimerFactory getTimerFactory()(Code)
Get the Timer factory for the system. The Timer factory provides access to Timer objects for various purposes. the system's Timer factory.



getUUIDFactory
public org.apache.derby.iapi.services.uuid.UUIDFactory getUUIDFactory()(Code)
Get the UUID factory for the system. The UUID factory provides methods to create and recreate database unique identifiers.



newInstanceFromIdentifier
public Object newInstanceFromIdentifier(int identifier) throws StandardException(Code)
Obtain an new instance of a class that supports the given identifier.
Parameters:
  identifier - identifer to associate with class a reference to a newly created object
exception:
  StandardException - See Monitor.newInstanceFromIdentifier



removePersistentService
public void removePersistentService(String name) throws StandardException(Code)



setLocale
public Locale setLocale(Object serviceModule, String userDefinedLocale) throws StandardException(Code)
Set the locale for the service *outside* of boot time.
Parameters:
  userDefinedLocale - A String in the form xx_YY, where xx is thelanguage code and YY is the country code. The new Locale for the service
exception:
  StandardException - Thrown on error



setLocale
public Locale setLocale(Properties serviceProperties, String userDefinedLocale) throws StandardException(Code)
Set the locale for the service at boot time. The passed-in properties must be the one passed to the boot method.
exception:
  StandardException - Cloudscape error.



setThreadPriority
public void setThreadPriority(int priority)(Code)
Set the priority of the current thread. If the current thread was not returned by getDaemonThread() then no action is taken.



shutdown
public void shutdown()(Code)
Shut down the complete system that was started by this Monitor. Will cause the stop() method to be called on each loaded module.



shutdown
public void shutdown(Object service)(Code)
Shut down a service that was started by this Monitor. Will cause the stop() method to be called on each loaded module. Requires that a context stack exist.



startModule
public Object startModule(boolean create, Object service, String protocol, String identifier, Properties properties) throws StandardException(Code)
Start a module.
Do not call directly - use Monitor.startSystemModule() or Monitor.bootServiceModule()
exception:
  StandardException - An attempt to start the module failed.
See Also:   Monitor.startSystemModule
See Also:   Monitor.bootServiceModule



startNonPersistentService
public Object startNonPersistentService(String factoryInterface, String serviceName, Properties properties) throws StandardException(Code)
Start a non-persistent service.
Do not call directly - use Monitor.startNonPersistentService()
exception:
  StandardException - An attempt to start the service failed.
See Also:   Monitor.startNonPersistentService



startPersistentService
public boolean startPersistentService(String serviceName, Properties properties) throws StandardException(Code)
Start a persistent service.
Do not call directly - use Monitor.startPersistentService()

The poperty set passed in is for boot options for the modules required to start the service. It does not support defining different or new modules implementations.
Parameters:
  serviceName - Name of the service to be started
Parameters:
  properties - Property set made available to all modules bootedfor this service, through their ModuleControl.boot method. true if the service type is handled by the monitor, false if it isn't
exception:
  StandardException - An attempt to start the service failed.
See Also:   Monitor.startPersistentService




startServices
public void startServices(Properties properties, boolean bootAll)(Code)
Start all services identified by derby.service.* in the property set. If bootAll is true the services that are persistent will be booted.



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