Method Summary |
|
abstract InputStream | applicationPropertiesStream() Get InputStream for application properties file Returns nul if it does not exist. |
static void | boot(Object module, boolean create, Properties properties) Boot a module. |
protected void | bootPersistentServices() Boot all persistent services that can be located at run time. |
protected void | bootProviderServices(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 Object | bootService(PersistentService provider, String factoryInterface, String serviceName, Properties properties, boolean create) Boot (start or create) a service (persistent or non-persistent). |
protected void | bootServiceProviders() Boot all the service providers, ie. |
static boolean | canSupport(Object instance, Properties properties) If the module implements ModuleSupportable then call its
canSupport() method to see if it can or should run in
this setup. |
public InstanceGetter | classFromIdentifier(int fmtId) Obtain a class that supports the given identifier. |
public Object | createPersistentService(String factoryInterface, String name, Properties properties) Create a persistent service. |
void | dumpProperties(String title, Properties props) |
public Object | findModule(Object serviceModule, String factoryInterface, String identifier) |
protected PersistentService | findProviderForCreate(String name) |
public Object | findService(String factoryInterface, String serviceName) |
public Properties | getApplicationProperties() |
public ResourceBundle | getBundle(String messageId) Get the locale from the ContextManager and then find the bundle
based upon that locale. |
public Thread | getDaemonThread(Runnable task, String name, boolean setMinPriority) |
Properties | getDefaultModuleProperties() Get the complete set of module properties by
loading in contents of all the org/apache/derby/modules.properties
files. |
public Locale | getLocale(Object serviceModule) |
public Locale | getLocaleFromString(String localeDescription) |
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 String | getServiceName(Object serviceModule) Return the name of the service that the passed in module lives in. |
public PersistentService | getServiceProvider(String subSubProtocol) |
public PersistentService | getServiceType(Object serviceModule) Return the PersistentService object for a service. |
public InfoStreams | getSystemStreams() |
public TimerFactory | getTimerFactory() Returns the Timer factory for this system. |
public UUIDFactory | getUUIDFactory() Return the UUID factory for this system. |
abstract boolean | initialize(boolean lite) Initialize the monitor wrt the current environemnt. |
protected Object | loadInstance(Class factoryInterface, Properties properties) load a module instance. |
public Object | newInstanceFromIdentifier(int identifier) Obtain an new instance of a class that supports the given identifier. |
protected Properties | readApplicationProperties() |
public void | removePersistentService(String name) Removes a PersistentService. |
protected static Properties | removeRuntimeProperties(Properties properties) Return a property set that has the runtime properties removed. |
protected void | report(String message) Should only be called if reportOn is true
apart from report/Exception(). |
protected void | reportException(Throwable t) |
final protected void | runWithState(Properties properties, PrintStream log) |
public Locale | setLocale(Object serviceModule, String userDefinedLocale) Set the locale for the service *outside* of boot time. |
public Locale | setLocale(Properties serviceProperties, String userDefinedLocale) Set the locale for the service at boot time. |
public void | setThreadPriority(int priority) |
public void | shutdown() |
public void | shutdown(Object serviceModule) Shut down a service that was started by this Monitor. |
public Object | startModule(boolean create, Object serviceModule, String factoryInterface, String identifier, Properties properties) Start a module. |
public Object | startNonPersistentService(String factoryInterface, String serviceName, Properties properties) Start a non-persistent service. |
final public boolean | startPersistentService(String name, Properties properties) Start a peristent service. |
protected void | startProviderService(PersistentService provider, String serviceName, Properties serviceProperties) |
public void | startServices(Properties properties, boolean bootAll) |