|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModuleFactory
The monitor provides a central registry for all modules in the system, and manages loading, starting, and finding them.
Method Summary | |
---|---|
InstanceGetter |
classFromIdentifier(int identifier)
Obtain a class that supports the given identifier. |
java.lang.Object |
createPersistentService(java.lang.String factoryInterface,
java.lang.String serviceName,
java.util.Properties properties)
Create a persistent service. |
java.lang.Object |
findModule(java.lang.Object service,
java.lang.String protocol,
java.lang.String identifier)
Find the module in the system with the given module protocol, protocolVersion and identifier. |
java.lang.Object |
findService(java.lang.String protocol,
java.lang.String identifier)
Find a service. |
java.util.Properties |
getApplicationProperties()
Return the application set of properties which correspond to the set of properties in the file derby.properties. |
java.lang.Thread |
getDaemonThread(java.lang.Runnable task,
java.lang.String name,
boolean setMinPriority)
Get a newly created background thread. |
ProductVersionHolder |
getEngineVersion()
|
java.lang.Object |
getEnvironment()
Return the environment object that this system was booted in. |
java.lang.String |
getJVMProperty(java.lang.String key)
Return a property from the JVM's system set. |
java.util.Locale |
getLocale(java.lang.Object serviceModule)
Return the locale of the service that the passed in module lives in. |
java.util.Locale |
getLocaleFromString(java.lang.String localeDescription)
Translate a string of the form ll[_CC[_variant]] to a Locale. |
java.lang.String[] |
getServiceList(java.lang.String protocol)
Return an array of the service identifiers that are running and implement the passed in protocol (java interface class name). |
java.lang.String |
getServiceName(java.lang.Object serviceModule)
Return the name of the service that the passed in module lives in. |
PersistentService |
getServiceProvider(java.lang.String subSubProtocol)
Return the PersistentService for a subsubprotocol. |
PersistentService |
getServiceType(java.lang.Object serviceModule)
Return the PersistentService object for a service. |
InfoStreams |
getSystemStreams()
Get the defined default system streams object. |
TimerFactory |
getTimerFactory()
Get the Timer factory for the system. |
UUIDFactory |
getUUIDFactory()
Get the UUID factory for the system. |
java.lang.Object |
newInstanceFromIdentifier(int identifier)
Obtain an new instance of a class that supports the given identifier. |
void |
removePersistentService(java.lang.String name)
|
java.util.Locale |
setLocale(java.lang.Object serviceModule,
java.lang.String userDefinedLocale)
Set the locale for the service *outside* of boot time. |
java.util.Locale |
setLocale(java.util.Properties serviceProperties,
java.lang.String userDefinedLocale)
Set the locale for the service at boot time. |
void |
setThreadPriority(int priority)
Set the priority of the current thread. |
void |
shutdown()
Shut down the complete system that was started by this Monitor. |
void |
shutdown(java.lang.Object service)
Shut down a service that was started by this Monitor. |
java.lang.Object |
startModule(boolean create,
java.lang.Object service,
java.lang.String protocol,
java.lang.String identifier,
java.util.Properties properties)
Start a module. |
java.lang.Object |
startNonPersistentService(java.lang.String factoryInterface,
java.lang.String serviceName,
java.util.Properties properties)
Start a non-persistent service. |
boolean |
startPersistentService(java.lang.String serviceName,
java.util.Properties properties)
Start a persistent service. |
void |
startServices(java.util.Properties properties,
boolean bootAll)
Start all services identified by derby.service.* in the property set. |
Method Detail |
---|
java.lang.Object findModule(java.lang.Object service, java.lang.String protocol, java.lang.String identifier)
java.lang.String getServiceName(java.lang.Object serviceModule)
java.util.Locale getLocale(java.lang.Object serviceModule)
java.util.Locale getLocaleFromString(java.lang.String localeDescription) throws StandardException
StandardException
java.util.Locale setLocale(java.lang.Object serviceModule, java.lang.String userDefinedLocale) throws StandardException
userDefinedLocale
- A String in the form xx_YY, where xx is the
language code and YY is the country code.
StandardException
- Thrown on errorjava.util.Locale setLocale(java.util.Properties serviceProperties, java.lang.String userDefinedLocale) throws StandardException
StandardException
- Derby error.PersistentService getServiceType(java.lang.Object serviceModule)
PersistentService getServiceProvider(java.lang.String subSubProtocol) throws StandardException
StandardException
java.util.Properties getApplicationProperties()
void shutdown()
void shutdown(java.lang.Object service)
InstanceGetter classFromIdentifier(int identifier) throws StandardException
identifier
- identifer to associate with class
StandardException
- See Monitor.classFromIdentifierjava.lang.Object newInstanceFromIdentifier(int identifier) throws StandardException
identifier
- identifer to associate with class
StandardException
- See Monitor.newInstanceFromIdentifierjava.lang.Object getEnvironment()
java.lang.String[] getServiceList(java.lang.String protocol)
boolean startPersistentService(java.lang.String serviceName, java.util.Properties properties) throws StandardException
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.
serviceName
- Name of the service to be startedproperties
- Property set made available to all modules booted
for this service, through their ModuleControl.boot method.
StandardException
- An attempt to start the service failed.Monitor.startPersistentService(java.lang.String, java.util.Properties)
java.lang.Object createPersistentService(java.lang.String factoryInterface, java.lang.String serviceName, java.util.Properties properties) throws StandardException
StandardException
- An attempt to create the service failed.Monitor.createPersistentService(java.lang.String, java.lang.String, java.util.Properties)
void removePersistentService(java.lang.String name) throws StandardException
StandardException
java.lang.Object startNonPersistentService(java.lang.String factoryInterface, java.lang.String serviceName, java.util.Properties properties) throws StandardException
StandardException
- An attempt to start the service failed.Monitor.startNonPersistentService(java.lang.String, java.lang.String, java.util.Properties)
java.lang.Object findService(java.lang.String protocol, java.lang.String identifier)
Monitor.findService(java.lang.String, java.lang.String)
java.lang.Object startModule(boolean create, java.lang.Object service, java.lang.String protocol, java.lang.String identifier, java.util.Properties properties) throws StandardException
StandardException
- An attempt to start the module failed.Monitor.startSystemModule(java.lang.String)
,
Monitor.bootServiceModule(boolean, java.lang.Object, java.lang.String, java.util.Properties)
InfoStreams getSystemStreams()
void startServices(java.util.Properties properties, boolean bootAll)
java.lang.String getJVMProperty(java.lang.String key)
java.lang.Thread getDaemonThread(java.lang.Runnable task, java.lang.String name, boolean setMinPriority)
void setThreadPriority(int priority)
ProductVersionHolder getEngineVersion()
UUIDFactory getUUIDFactory()
TimerFactory getTimerFactory()
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |