BaseMonitor
, FileMonitor
public interface ModuleFactory
Modifier and Type | Method | Description |
---|---|---|
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.String |
getCanonicalServiceName(java.lang.String userSpecifiedName) |
Canonicalize a service name, mapping different user-specifications of a database name
onto a single, standard name.
|
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.
|
boolean |
isDaemonThread(java.lang.Thread thread) |
Check if a thread is a daemon thread created by
getDaemonThread(java.lang.Runnable, java.lang.String, boolean) . |
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 |
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.
|
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 classStandardException
- See Monitor.classFromIdentifierjava.lang.Object newInstanceFromIdentifier(int identifier) throws StandardException
identifier
- identifer to associate with classStandardException
- 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.String getCanonicalServiceName(java.lang.String userSpecifiedName) throws StandardException
StandardException
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)
boolean isDaemonThread(java.lang.Thread thread)
getDaemonThread(java.lang.Runnable, java.lang.String, boolean)
.thread
- the thread to checktrue
if thread
was created by
getDaemonThread()
, false
otherwise.ProductVersionHolder getEngineVersion()
UUIDFactory getUUIDFactory()
TimerFactory getTimerFactory()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.