| Modifier and Type | Method and Description |
|---|---|
| public InstanceGetter | Returns: a reference InstanceGetteridentifer to associate with class identifier)Obtain a class that supports the given identifier. |
| public Object | createPersistentService(String factoryInterface, String serviceName, Properties properties)
Create a persistent service. |
| public Object | Returns: The module instance if found, or null.Find the module in the system with the given module protocol, protocolVersion and identifier. |
| public Object | Returns: a refrence to a module represeting the service or null if the service does not exist.Find a service. |
| public Properties | getApplicationProperties()
Return the application set of properties which correspond to the set of properties in the file derby.properties. |
| public String | getCanonicalServiceName(String userSpecifiedName)
Canonicalize a service name, mapping different user-specifications of a database name onto a single, standard name. |
| public Thread | getDaemonThread(Runnable task, String name, boolean setMinPriority)
Get a newly created background thread. |
| public ProductVersionHolder | |
| public Object | getEnvironment()
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 String | |
| public Locale | |
| public Locale | getLocaleFromString(String localeDescription)
Translate a string of the form ll[_CC[_variant]] to a Locale. |
| public String[] | Returns: The list of service names, if no services exist that implement the protocol an array with zero elements is returned.Return an array of the service identifiers that are running and implement the passed in protocol (java interface class name). |
| public String | getServiceName(Object serviceModule)
Return the name of the service that the passed in module lives in. |
| public PersistentService | Returns: the PersistentService or null if it does not existReturn the PersistentService for a subsubprotocol. |
| public PersistentService | |
| public InfoStreams | |
| public TimerFactory | |
| public UUIDFactory | |
| public boolean | Returns: true if thread was created by
getDaemonThread(), false otherwise.the thread to check thread)Check if a thread is a daemon thread created by |
| public Object | Returns: a reference to a newly created objectidentifer to associate with class identifier)Obtain an new instance of a class that supports the given identifier. |
| public void | |
| public Locale | |
| public Locale | setLocale(Properties serviceProperties, String userDefinedLocale)
Set the locale for the service at boot time. |
| public void | |
| public void | |
| public Object | startModule(boolean create, Object service, String protocol, String identifier, Properties properties)
Start a module. |
| public Object | startNonPersistentService(String factoryInterface, String serviceName, Properties properties)
Start a non-persistent service. |
| public boolean | Returns: true if the service type is handled by the monitor, false if it isn'tName of the service to be started serviceName, Properties Property set made available to all modules booted
for this service, through their ModuleControl.boot method. properties)Start a persistent service. |
| public void | startServices(Properties properties, boolean bootAll)
Start all services identified by derby.service.* in the property set. |
| classFromIdentifier | back to summary |
|---|---|
| public InstanceGetter classFromIdentifier(int identifier) throws StandardException Obtain a class that supports the given identifier.
| |
| createPersistentService | back to summary |
|---|---|
| public Object createPersistentService(String factoryInterface, String serviceName, Properties properties) throws StandardException Create a persistent service.
| |
| findModule | back to summary |
|---|---|
| public Object findModule(Object service, String protocol, String identifier) Find the module in the system with the given module protocol, protocolVersion and identifier.
| |
| findService | back to summary |
|---|---|
| public Object findService(String protocol, String identifier) Find a service.
| |
| getApplicationProperties | back to summary |
|---|---|
| public Properties getApplicationProperties() Return the application set of properties which correspond to the set of properties in the file derby.properties. | |
| getCanonicalServiceName | back to summary |
|---|---|
| public String getCanonicalServiceName(String userSpecifiedName) throws StandardException Canonicalize a service name, mapping different user-specifications of a database name onto a single, standard name. | |
| getDaemonThread | back to summary |
|---|---|
| public Thread getDaemonThread(Runnable task, String name, boolean setMinPriority) Get a newly created background thread. The thread is set to be a daemon but is not started. | |
| getEngineVersion | back to summary |
|---|---|
| public ProductVersionHolder getEngineVersion() | |
| getEnvironment | back to summary |
|---|---|
| public Object getEnvironment() 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 | back to summary |
|---|---|
| public String getJVMProperty(String key) 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.'. | |
| getLocale | back to summary |
|---|---|
| public Locale getLocale(Object serviceModule) Return the locale of the service that the passed in module lives in. Will return null if no-locale has been defined. | |
| getLocaleFromString | back to summary |
|---|---|
| public Locale getLocaleFromString(String localeDescription) throws StandardException 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 | back to summary |
|---|---|
| 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). This list is a snapshot of the current running systesm, once the call returns the service may have been shutdown or new ones added.
| |
| getServiceName | back to summary |
|---|---|
| public String getServiceName(Object serviceModule) Return the name of the service that the passed in module lives in. | |
| getServiceProvider | back to summary |
|---|---|
| public PersistentService getServiceProvider(String subSubProtocol) throws StandardException Return the PersistentService for a subsubprotocol.
| |
| getServiceType | back to summary |
|---|---|
| public PersistentService getServiceType(Object serviceModule) Return the PersistentService object for a service. Will return null if the service does not exist. | |
| getSystemStreams | back to summary |
|---|---|
| public InfoStreams getSystemStreams() Get the defined default system streams object. | |
| getTimerFactory | back to summary |
|---|---|
| public TimerFactory getTimerFactory() Get the Timer factory for the system. The Timer factory provides access to Timer objects for various purposes.
| |
| getUUIDFactory | back to summary |
|---|---|
| public UUIDFactory getUUIDFactory() Get the UUID factory for the system. The UUID factory provides methods to create and recreate database unique identifiers. | |
| isDaemonThread | back to summary |
|---|---|
| public boolean isDaemonThread(Thread thread) Check if a thread is a daemon thread created by
| |
| newInstanceFromIdentifier | back to summary |
|---|---|
| public Object newInstanceFromIdentifier(int identifier) throws StandardException Obtain an new instance of a class that supports the given identifier.
| |
| removePersistentService | back to summary |
|---|---|
| public void removePersistentService(String name) throws StandardException | |
| setLocale | back to summary |
|---|---|
| public Locale setLocale(Object serviceModule, String userDefinedLocale) throws StandardException Set the locale for the service *outside* of boot time.
| |
| setLocale | back to summary |
|---|---|
| public Locale setLocale(Properties serviceProperties, String userDefinedLocale) throws StandardException Set the locale for the service at boot time. The passed-in properties must be the one passed to the boot method.
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Shut down the complete system that was started by this Monitor. Will cause the stop() method to be called on each loaded module. | |
| shutdown | back to summary |
|---|---|
| public void shutdown(Object service) 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 | back to summary |
|---|---|
| public Object startModule(boolean create, Object service, String protocol, String identifier, Properties properties) throws StandardException Start a module.
| |
| startNonPersistentService | back to summary |
|---|---|
| public Object startNonPersistentService(String factoryInterface, String serviceName, Properties properties) throws StandardException Start a non-persistent service.
| |
| startPersistentService | back to summary |
|---|---|
| public boolean startPersistentService(String serviceName, Properties properties) throws StandardException Start a persistent service.
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.
| |
| startServices | back to summary |
|---|---|
| public void startServices(Properties properties, boolean bootAll) Start all services identified by derby.service.* in the property set. If bootAll is true the services that are persistent will be booted. | |