|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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()
|
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.util.Properties startParams,
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. |
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 |
public java.lang.Object findModule(java.lang.Object service, java.lang.String protocol, java.lang.String identifier)
public java.lang.String getServiceName(java.lang.Object serviceModule)
public java.util.Locale getLocale(java.lang.Object serviceModule)
public java.util.Locale getLocaleFromString(java.lang.String localeDescription) throws StandardException
StandardException
public 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 errorpublic java.util.Locale setLocale(java.util.Properties serviceProperties, java.lang.String userDefinedLocale) throws StandardException
StandardException
- Cloudscape error.public PersistentService getServiceType(java.lang.Object serviceModule)
public PersistentService getServiceProvider(java.util.Properties startParams, java.lang.String subSubProtocol) throws StandardException
StandardException
public java.util.Properties getApplicationProperties()
public void shutdown()
public void shutdown(java.lang.Object service)
public InstanceGetter classFromIdentifier(int identifier) throws StandardException
identifier
- identifer to associate with class
StandardException
- See Monitor.classFromIdentifierpublic java.lang.Object newInstanceFromIdentifier(int identifier) throws StandardException
identifier
- identifer to associate with class
StandardException
- See Monitor.newInstanceFromIdentifierpublic java.lang.Object getEnvironment()
public java.lang.String[] getServiceList(java.lang.String protocol)
public boolean startPersistentService(java.lang.String serviceName, java.util.Properties properties) throws StandardException
StandardException
- An attempt to start the service failed.Monitor.startPersistentService(java.lang.String, java.util.Properties)
public 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)
public void removePersistentService(java.lang.String name) throws StandardException
StandardException
public 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)
public java.lang.Object findService(java.lang.String protocol, java.lang.String identifier)
Monitor.findService(java.lang.String, java.lang.String)
public 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)
public InfoStreams getSystemStreams()
public void startServices(java.util.Properties properties, boolean bootAll)
public java.lang.String getJVMProperty(java.lang.String key)
public java.lang.Thread getDaemonThread(java.lang.Runnable task, java.lang.String name, boolean setMinPriority)
public void setThreadPriority(int priority)
public ProductVersionHolder getEngineVersion()
public UUIDFactory getUUIDFactory()
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |