Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.services.monitor
Class BaseMonitor  view BaseMonitor download BaseMonitor.java

java.lang.Object
  extended byorg.apache.derby.impl.services.monitor.BaseMonitor
All Implemented Interfaces:
org.apache.derby.iapi.services.i18n.BundleFinder, org.apache.derby.iapi.services.monitor.ModuleFactory
Direct Known Subclasses:
FileMonitor

public abstract class BaseMonitor
extends java.lang.Object
implements org.apache.derby.iapi.services.monitor.ModuleFactory, org.apache.derby.iapi.services.i18n.BundleFinder

Implementation of the monitor that uses the class loader that the its was loaded in for all class loading.


Nested Class Summary
(package private)  class BaseMonitor.ProviderEnumeration
           
 
Field Summary
protected  java.util.Properties applicationProperties
           
protected  java.util.Properties bootProperties
           
private  org.apache.derby.iapi.services.context.ContextService contextService
           
protected  java.lang.ThreadGroup daemonGroup
           
(package private)  AntiGC dontGC
           
private  boolean dumpedTempWriter
           
private  java.lang.Boolean exceptionTrace
           
protected  java.util.Vector[] implementationSets
           
(package private)  boolean inShutdown
           
private  java.io.PrintStream logging
           
private  org.apache.derby.iapi.services.loader.InstanceGetter[] rc2
           
protected  boolean reportOn
           
private static java.lang.String SERVICE
          Look for any services in the a properties set and the application property set and then start them.
protected  java.util.Hashtable serviceProviders
          Hashtable of objects that implement PersistentService keyed by their getType() method.
private  java.util.Vector services
           
private static java.util.HashMap storageFactories
           
private  org.apache.derby.iapi.services.stream.InfoStreams systemStreams
           
private  org.apache.derby.iapi.services.io.AccessibleByteArrayOutputStream tmpArray
           
private  java.io.PrintWriter tmpWriter
           
private  org.apache.derby.iapi.services.uuid.UUIDFactory uuidFactory
           
 
Constructor Summary
BaseMonitor()
           
 
Method Summary
private  void addDebugFlags(java.lang.String flags, boolean set)
           
protected abstract  java.io.InputStream applicationPropertiesStream()
          Get InputStream for application properties file Returns nul if it does not exist.
(package private) static void boot(java.lang.Object module, boolean create, java.util.Properties properties)
          Boot a module.
protected  void bootPersistentServices()
          Boot all persistent services that can be located at run time.
protected  void bootProviderServices(org.apache.derby.iapi.services.monitor.PersistentService provider)
          Boot all persistent services that can be located by a single service provider
This method enumerates through all the service providers that are active and calls bootPersistentServices(PersistentService) to boot all the services that that provider knows about.
protected  java.lang.Object bootService(org.apache.derby.iapi.services.monitor.PersistentService provider, java.lang.String factoryInterface, java.lang.String serviceName, java.util.Properties properties, boolean create)
          Boot (start or create) a service (persistent or non-persistent).
protected  void bootServiceProviders()
          Boot all the service providers, ie.
(package private) static boolean canSupport(java.lang.Object instance, java.util.Properties properties)
          If the module implements ModuleSupportable then call its canSupport() method to see if it can or should run in this setup.
 org.apache.derby.iapi.services.loader.InstanceGetter classFromIdentifier(int fmtId)
          Obtain a class that supports the given identifier.
 java.lang.Object createPersistentService(java.lang.String factoryInterface, java.lang.String name, java.util.Properties properties)
          Create a persistent service.
(package private)  void dumpProperties(java.lang.String title, java.util.Properties props)
           
private  void dumpTempWriter(boolean bothPlaces)
           
private static int findImplementation(java.util.Vector implementations, int startIndex, java.lang.Class factoryInterface)
          Find a class that implements the required index, return the index into the implementations vecotr of that class.
 java.lang.Object findModule(java.lang.Object serviceModule, java.lang.String factoryInterface, java.lang.String identifier)
          Find the module in the system with the given module protocol, protocolVersion and identifier.
protected  org.apache.derby.iapi.services.monitor.PersistentService findProvider()
           
protected  boolean findProviderAndStartService(java.lang.String name, java.util.Properties properties, boolean bootTime)
          Find a provider and start a service.
protected  org.apache.derby.iapi.services.monitor.PersistentService findProviderForCreate(java.util.Properties startParams, java.lang.String name)
           
private  org.apache.derby.iapi.services.monitor.PersistentService findProviderFromName(java.util.Properties startParams, java.lang.String name, int colon)
          Find the service provider from a name that includes a service type, ie.
 java.lang.Object findService(java.lang.String factoryInterface, java.lang.String serviceName)
          Find a service.
private  TopService findTopService(java.lang.Object serviceModule)
           
 java.util.Properties getApplicationProperties()
           
 java.util.ResourceBundle getBundle(java.lang.String messageId)
          Get the locale from the ContextManager and then find the bundle based upon that locale.
 java.lang.Thread getDaemonThread(java.lang.Runnable task, java.lang.String name, boolean setMinPriority)
          Get a newly created background thread.
protected  java.util.Vector getDefaultImplementations()
           
protected  java.util.Vector getImplementations(java.util.Properties moduleList, boolean actualModuleList)
          Create an implementation 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.
private  org.apache.derby.iapi.services.monitor.PersistentService getPersistentService(java.util.Properties properties, java.lang.String subSubProtocol)
           
private  org.apache.derby.iapi.services.monitor.PersistentService getPersistentService(java.lang.String className, java.lang.String subSubProtocol)
           
private  boolean getPersistentServiceImplementation(java.lang.Class possibleModule)
           
 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.
 org.apache.derby.iapi.services.monitor.PersistentService getServiceProvider(java.util.Properties startParams, java.lang.String subSubProtocol)
          Return the PersistentService for a subsubprotocol.
 org.apache.derby.iapi.services.monitor.PersistentService getServiceType(java.lang.Object serviceModule)
          Return the PersistentService object for a service.
private  java.lang.String getStorageFactoryClassName(java.util.Properties properties, java.lang.String subSubProtocol)
           
 org.apache.derby.iapi.services.stream.InfoStreams getSystemStreams()
          Get the defined default system streams object.
private  java.io.PrintWriter getTempWriter()
           
 org.apache.derby.iapi.services.uuid.UUIDFactory getUUIDFactory()
          Return the UUID factory for this system.
abstract  boolean initialize(boolean lite)
          Initialize the monitor wrt the current environemnt.
protected  java.lang.Object loadInstance(java.lang.Class factoryInterface, java.util.Properties properties)
          load a module instance.
private  java.lang.Object loadInstance(java.util.Vector implementations, java.lang.Class factoryInterface, java.util.Properties properties)
           
protected  java.io.InputStream loadModuleDefinitions(java.net.URL propertyFileURL)
           
private  java.lang.Object newInstance(java.lang.Class classObject)
           
private  java.lang.Object newInstance(java.lang.String className)
           
 java.lang.Object newInstanceFromIdentifier(int identifier)
          Obtain an new instance of a class that supports the given identifier.
protected  java.util.Properties readApplicationProperties()
           
 void removePersistentService(java.lang.String name)
           
protected static java.util.Properties removeRuntimeProperties(java.util.Properties properties)
          Return a property set that has the runtime properties removed.
protected  void report(java.lang.String message)
          Should only be called if reportOn is true apart from report/Exception().
protected  void reportException(java.lang.Throwable t)
           
protected  void runWithState(java.util.Properties properties, java.io.PrintStream log)
           
 java.util.Locale setLocale(java.lang.Object serviceModule, java.lang.String userDefinedLocale)
          Set the locale for the service *outside* of boot time.
private static java.util.Locale setLocale(java.util.Properties properties)
           
 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 serviceModule)
          Shut down a service that was started by this Monitor.
 java.lang.Object startModule(boolean create, java.lang.Object serviceModule, java.lang.String factoryInterface, 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 name, java.util.Properties properties)
          Start a peristent service.
protected  boolean startPersistentService(java.lang.String name, java.util.Properties properties, boolean bootTime)
           
protected  void startProviderService(org.apache.derby.iapi.services.monitor.PersistentService provider, java.lang.String serviceName, java.util.Properties serviceProperties)
          Boot a service under the control of the provider
 void startServices(java.util.Properties properties, boolean bootAll)
          Start all services identified by derby.service.* in the property set.
private static java.util.Locale staticGetLocaleFromString(java.lang.String localeDescription)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.derby.iapi.services.monitor.ModuleFactory
getEngineVersion, getEnvironment, getJVMProperty
 

Field Detail

serviceProviders

protected java.util.Hashtable serviceProviders
Hashtable of objects that implement PersistentService keyed by their getType() method.


implementationSets

protected java.util.Vector[] implementationSets

services

private java.util.Vector services

bootProperties

protected java.util.Properties bootProperties

applicationProperties

protected java.util.Properties applicationProperties

inShutdown

boolean inShutdown

systemStreams

private org.apache.derby.iapi.services.stream.InfoStreams systemStreams

contextService

private org.apache.derby.iapi.services.context.ContextService contextService

uuidFactory

private org.apache.derby.iapi.services.uuid.UUIDFactory uuidFactory

reportOn

protected boolean reportOn

logging

private java.io.PrintStream logging

daemonGroup

protected java.lang.ThreadGroup daemonGroup

dontGC

AntiGC dontGC

rc2

private org.apache.derby.iapi.services.loader.InstanceGetter[] rc2

exceptionTrace

private java.lang.Boolean exceptionTrace

SERVICE

private static final java.lang.String SERVICE
Look for any services in the a properties set and the application property set and then start them. A service is defined by derby.service.name=protocol

See Also:
Constant Field Values

storageFactories

private static final java.util.HashMap storageFactories

tmpWriter

private java.io.PrintWriter tmpWriter

tmpArray

private org.apache.derby.iapi.services.io.AccessibleByteArrayOutputStream tmpArray

dumpedTempWriter

private boolean dumpedTempWriter
Constructor Detail

BaseMonitor

public BaseMonitor()
Method Detail

getSystemStreams

public org.apache.derby.iapi.services.stream.InfoStreams getSystemStreams()
Description copied from interface: org.apache.derby.iapi.services.monitor.ModuleFactory
Get the defined default system streams object.

Specified by:
getSystemStreams in interface org.apache.derby.iapi.services.monitor.ModuleFactory

shutdown

public void shutdown()
Description copied from interface: org.apache.derby.iapi.services.monitor.ModuleFactory
Shut down the complete system that was started by this Monitor. Will cause the stop() method to be called on each loaded module.

Specified by:
shutdown in interface org.apache.derby.iapi.services.monitor.ModuleFactory

shutdown

public void shutdown(java.lang.Object serviceModule)
Shut down a service that was started by this Monitor. Will cause the stop() method to be called on each loaded module.

Specified by:
shutdown in interface org.apache.derby.iapi.services.monitor.ModuleFactory

runWithState

protected final void runWithState(java.util.Properties properties,
                                  java.io.PrintStream log)

findService

public java.lang.Object findService(java.lang.String factoryInterface,
                                    java.lang.String serviceName)
Description copied from interface: org.apache.derby.iapi.services.monitor.ModuleFactory
Find a service.
Do not call directly - use Monitor.findService()

Specified by:
findService in interface org.apache.derby.iapi.services.monitor.ModuleFactory

getLocale

public java.util.Locale getLocale(java.lang.Object serviceModule)
Description copied from interface: org.apache.derby.iapi.services.monitor.ModuleFactory
Return the locale of the service that the passed in module lives in. Will return null if no-locale has been defined.

Specified by:
getLocale in interface org.apache.derby.iapi.services.monitor.ModuleFactory

getLocaleFromString

public java.util.Locale getLocaleFromString(java.lang.String localeDescription)
                                     throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.services.monitor.ModuleFactory
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.

Specified by:
getLocaleFromString in interface org.apache.derby.iapi.services.monitor.ModuleFactory

getServiceName

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

Specified by:
getServiceName in interface org.apache.derby.iapi.services.monitor.ModuleFactory

setLocale

public java.util.Locale setLocale(java.lang.Object serviceModule,
                                  java.lang.String userDefinedLocale)
                           throws org.apache.derby.iapi.error.StandardException
Set the locale for the service *outside* of boot time.

Specified by:
setLocale in interface org.apache.derby.iapi.services.monitor.ModuleFactory

setLocale

public java.util.Locale setLocale(java.util.Properties serviceProperties,
                                  java.lang.String userDefinedLocale)
                           throws org.apache.derby.iapi.error.StandardException
Set the locale for the service at boot time. The passed in properties must be the one passed to the boot method.

Specified by:
setLocale in interface org.apache.derby.iapi.services.monitor.ModuleFactory

getServiceType

public org.apache.derby.iapi.services.monitor.PersistentService getServiceType(java.lang.Object serviceModule)
Return the PersistentService object for a service. Will return null if the service does not exist.

Specified by:
getServiceType in interface org.apache.derby.iapi.services.monitor.ModuleFactory

startModule

public java.lang.Object startModule(boolean create,
                                    java.lang.Object serviceModule,
                                    java.lang.String factoryInterface,
                                    java.lang.String identifier,
                                    java.util.Properties properties)
                             throws org.apache.derby.iapi.error.StandardException
Start a module.

Specified by:
startModule in interface org.apache.derby.iapi.services.monitor.ModuleFactory

findTopService

private TopService findTopService(java.lang.Object serviceModule)

findModule

public java.lang.Object findModule(java.lang.Object serviceModule,
                                   java.lang.String factoryInterface,
                                   java.lang.String identifier)
Description copied from interface: org.apache.derby.iapi.services.monitor.ModuleFactory
Find the module in the system with the given module protocol, protocolVersion and identifier.

Specified by:
findModule in interface org.apache.derby.iapi.services.monitor.ModuleFactory

classFromIdentifier

public org.apache.derby.iapi.services.loader.InstanceGetter classFromIdentifier(int fmtId)
                                                                         throws org.apache.derby.iapi.error.StandardException
Obtain a class that supports the given identifier.

Specified by:
classFromIdentifier in interface org.apache.derby.iapi.services.monitor.ModuleFactory

newInstanceFromIdentifier

public java.lang.Object newInstanceFromIdentifier(int identifier)
                                           throws org.apache.derby.iapi.error.StandardException
Obtain an new instance of a class that supports the given identifier.

Specified by:
newInstanceFromIdentifier in interface org.apache.derby.iapi.services.monitor.ModuleFactory

loadInstance

protected java.lang.Object loadInstance(java.lang.Class factoryInterface,
                                        java.util.Properties properties)
load a module instance. Look through the implementations for a module that implements the required factory interface and can handle the properties given. The module's start or create method is not called.


loadInstance

private java.lang.Object loadInstance(java.util.Vector implementations,
                                      java.lang.Class factoryInterface,
                                      java.util.Properties properties)

findImplementation

private static int findImplementation(java.util.Vector implementations,
                                      int startIndex,
                                      java.lang.Class factoryInterface)
Find a class that implements the required index, return the index into the implementations vecotr of that class. Returns -1 if no class could be found.


newInstance

private java.lang.Object newInstance(java.lang.String className)

newInstance

private java.lang.Object newInstance(java.lang.Class classObject)

getApplicationProperties

public java.util.Properties getApplicationProperties()
Specified by:
getApplicationProperties in interface org.apache.derby.iapi.services.monitor.ModuleFactory

getServiceList

public 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).

Specified by:
getServiceList in interface org.apache.derby.iapi.services.monitor.ModuleFactory

dumpProperties

void dumpProperties(java.lang.String title,
                    java.util.Properties props)

report

protected void report(java.lang.String message)
Should only be called if reportOn is true apart from report/Exception().


reportException

protected void reportException(java.lang.Throwable t)

addDebugFlags

private void addDebugFlags(java.lang.String flags,
                           boolean set)

startServices

public void startServices(java.util.Properties properties,
                          boolean bootAll)
Description copied from interface: org.apache.derby.iapi.services.monitor.ModuleFactory
Start all services identified by derby.service.* in the property set. If bootAll is true the services that are persistent will be booted.

Specified by:
startServices in interface org.apache.derby.iapi.services.monitor.ModuleFactory

startPersistentService

public boolean startPersistentService(java.lang.String name,
                                      java.util.Properties properties)
                               throws org.apache.derby.iapi.error.StandardException
Start a peristent service.

Specified by:
startPersistentService in interface org.apache.derby.iapi.services.monitor.ModuleFactory

startPersistentService

protected boolean startPersistentService(java.lang.String name,
                                         java.util.Properties properties,
                                         boolean bootTime)
                                  throws org.apache.derby.iapi.error.StandardException

createPersistentService

public java.lang.Object createPersistentService(java.lang.String factoryInterface,
                                                java.lang.String name,
                                                java.util.Properties properties)
                                         throws org.apache.derby.iapi.error.StandardException
Create a persistent service.

Specified by:
createPersistentService in interface org.apache.derby.iapi.services.monitor.ModuleFactory

removePersistentService

public void removePersistentService(java.lang.String name)
                             throws org.apache.derby.iapi.error.StandardException
Specified by:
removePersistentService in interface org.apache.derby.iapi.services.monitor.ModuleFactory

startNonPersistentService

public java.lang.Object startNonPersistentService(java.lang.String factoryInterface,
                                                  java.lang.String serviceName,
                                                  java.util.Properties properties)
                                           throws org.apache.derby.iapi.error.StandardException
Start a non-persistent service.

Specified by:
startNonPersistentService in interface org.apache.derby.iapi.services.monitor.ModuleFactory

getImplementations

protected java.util.Vector getImplementations(java.util.Properties moduleList,
                                              boolean actualModuleList)
Create an implementation set. Look through the properties object for all properties that start with derby.module and add the value into the vector. If no implementations are listed in the properties object then null is returned.


getPersistentServiceImplementation

private boolean getPersistentServiceImplementation(java.lang.Class possibleModule)

getDefaultImplementations

protected java.util.Vector getDefaultImplementations()

loadModuleDefinitions

protected java.io.InputStream loadModuleDefinitions(java.net.URL propertyFileURL)
                                             throws java.io.IOException

removeRuntimeProperties

protected static java.util.Properties removeRuntimeProperties(java.util.Properties properties)
Return a property set that has the runtime properties removed.


applicationPropertiesStream

protected abstract java.io.InputStream applicationPropertiesStream()
                                                            throws java.io.IOException
Get InputStream for application properties file Returns nul if it does not exist.


readApplicationProperties

protected java.util.Properties readApplicationProperties()

bootServiceProviders

protected void bootServiceProviders()
Boot all the service providers, ie. any module that implemented PersistentService. Upon entry to this call is the hashtable has PersistentService objects that have been created but not booted.


bootPersistentServices

protected void bootPersistentServices()
Boot all persistent services that can be located at run time.
This method enumerates through all the service providers that are active and calls bootPersistentServices(PersistentService) to boot all the services that that provider knows about.


bootProviderServices

protected void bootProviderServices(org.apache.derby.iapi.services.monitor.PersistentService provider)
Boot all persistent services that can be located by a single service provider
This method enumerates through all the service providers that are active and calls bootPersistentServices(PersistentService) to boot all the services that that provider knows about.


findProviderAndStartService

protected boolean findProviderAndStartService(java.lang.String name,
                                              java.util.Properties properties,
                                              boolean bootTime)
                                       throws org.apache.derby.iapi.error.StandardException
Find a provider and start a service.


findProvider

protected org.apache.derby.iapi.services.monitor.PersistentService findProvider()
                                                                         throws org.apache.derby.iapi.error.StandardException

findProviderForCreate

protected org.apache.derby.iapi.services.monitor.PersistentService findProviderForCreate(java.util.Properties startParams,
                                                                                         java.lang.String name)
                                                                                  throws org.apache.derby.iapi.error.StandardException

findProviderFromName

private org.apache.derby.iapi.services.monitor.PersistentService findProviderFromName(java.util.Properties startParams,
                                                                                      java.lang.String name,
                                                                                      int colon)
                                                                               throws org.apache.derby.iapi.error.StandardException
Find the service provider from a name that includes a service type, ie. is of the form 'type:name'. If type is less than 3 chanacters then it is assumed to be of type directory, i.e. a windows driver letter.


getServiceProvider

public org.apache.derby.iapi.services.monitor.PersistentService getServiceProvider(java.util.Properties startParams,
                                                                                   java.lang.String subSubProtocol)
                                                                            throws org.apache.derby.iapi.error.StandardException
Description copied from interface: org.apache.derby.iapi.services.monitor.ModuleFactory
Return the PersistentService for a subsubprotocol.

Specified by:
getServiceProvider in interface org.apache.derby.iapi.services.monitor.ModuleFactory

getPersistentService

private org.apache.derby.iapi.services.monitor.PersistentService getPersistentService(java.util.Properties properties,
                                                                                      java.lang.String subSubProtocol)
                                                                               throws org.apache.derby.iapi.error.StandardException

getPersistentService

private org.apache.derby.iapi.services.monitor.PersistentService getPersistentService(java.lang.String className,
                                                                                      java.lang.String subSubProtocol)
                                                                               throws org.apache.derby.iapi.error.StandardException

getStorageFactoryClassName

private java.lang.String getStorageFactoryClassName(java.util.Properties properties,
                                                    java.lang.String subSubProtocol)

startProviderService

protected void startProviderService(org.apache.derby.iapi.services.monitor.PersistentService provider,
                                    java.lang.String serviceName,
                                    java.util.Properties serviceProperties)
                             throws org.apache.derby.iapi.error.StandardException
Boot a service under the control of the provider


bootService

protected java.lang.Object bootService(org.apache.derby.iapi.services.monitor.PersistentService provider,
                                       java.lang.String factoryInterface,
                                       java.lang.String serviceName,
                                       java.util.Properties properties,
                                       boolean create)
                                throws org.apache.derby.iapi.error.StandardException
Boot (start or create) a service (persistent or non-persistent).


getUUIDFactory

public org.apache.derby.iapi.services.uuid.UUIDFactory getUUIDFactory()
Return the UUID factory for this system. Returns null if there isn't one.

Specified by:
getUUIDFactory in interface org.apache.derby.iapi.services.monitor.ModuleFactory

getTempWriter

private java.io.PrintWriter getTempWriter()

dumpTempWriter

private void dumpTempWriter(boolean bothPlaces)

canSupport

static boolean canSupport(java.lang.Object instance,
                          java.util.Properties properties)
If the module implements ModuleSupportable then call its canSupport() method to see if it can or should run in this setup. If it doesn't then it can always run.


boot

static void boot(java.lang.Object module,
                 boolean create,
                 java.util.Properties properties)
          throws org.apache.derby.iapi.error.StandardException
Boot a module. If the module implements ModuleControl then its boot() method is called. Otherwise all the boot code is assumed to take place in its constructor.


staticGetLocaleFromString

private static java.util.Locale staticGetLocaleFromString(java.lang.String localeDescription)
                                                   throws org.apache.derby.iapi.error.StandardException

setLocale

private static java.util.Locale setLocale(java.util.Properties properties)
                                   throws org.apache.derby.iapi.error.StandardException

getBundle

public java.util.ResourceBundle getBundle(java.lang.String messageId)
Get the locale from the ContextManager and then find the bundle based upon that locale.

Specified by:
getBundle in interface org.apache.derby.iapi.services.i18n.BundleFinder

getDaemonThread

public java.lang.Thread getDaemonThread(java.lang.Runnable task,
                                        java.lang.String name,
                                        boolean setMinPriority)
Description copied from interface: org.apache.derby.iapi.services.monitor.ModuleFactory
Get a newly created background thread. The thread is set to be a daemon but is not started.

Specified by:
getDaemonThread in interface org.apache.derby.iapi.services.monitor.ModuleFactory

setThreadPriority

public void setThreadPriority(int priority)
Description copied from interface: org.apache.derby.iapi.services.monitor.ModuleFactory
Set the priority of the current thread. If the current thread was not returned by getDaemonThread() then no action is taken.

Specified by:
setThreadPriority in interface org.apache.derby.iapi.services.monitor.ModuleFactory

initialize

public abstract boolean initialize(boolean lite)
Initialize the monitor wrt the current environemnt. Returns false if the monitor cannot be initialized, true otherwise.