| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Properties | |
| pack-priv Properties | |
| private ContextService | |
| pack-priv ThreadGroup | |
| private boolean | |
| private List | |
| pack-priv boolean | |
| private static final String | |
| private PrintWriter | |
| private InstanceGetter[] | |
| pack-priv boolean | |
| private static final String | SERVICE
Look for any services in the a properties set and the application property set and then start them. |
| private final HashMap | serviceProviders
Hash table of objects that implement PersistentService keyed by their getType() method. |
| private final Vector | |
| private static final HashMap | |
| private InfoStreams | |
| private TimerFactory | |
| private AccessibleByteArrayOutputStream | |
| private PrintWriter | |
| private UUIDFactory |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv abstract InputStream | applicationPropertiesStream()
Get InputStream for application properties file Returns nul if it does not exist. |
| pack-priv static void | |
| private void | |
| 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). |
| pack-priv 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 | Returns: a reference InstanceGetteridentifer to associate with class fmtId)Implements org. Obtain a class that supports the given identifier. |
| public Object | Returns: The module from the service if it was created successfully, null if a service already existed.Implements org. Create a persistent service. |
| private void | determineSupportedServiceProviders()
Determine which of the set of service providers (PersistentService objects) are supported in the current environment. |
| pack-priv void | |
| private void | |
| private static int | findImplementation(List<Class<?>> implementations, int startIndex, Class<?> factoryInterface)
Find a class that implements the required index, return the index into the implementations vector of that class. |
| public Object | findModule(Object serviceModule, String factoryInterface, String identifier)
Implements org. Find the module in the system with the given module protocol, protocolVersion and identifier. |
| private boolean | findProviderAndStartService(String name, Properties properties, boolean bootTime)
Find a provider and start a service. |
| protected PersistentService | |
| private PersistentService | findProviderFromName(String name, int colon)
Find the service provider from a name that includes a service type, ie. |
| public Object | findService(String factoryInterface, String serviceName)
Implements org. Find a service. |
| private synchronized TopService | |
| public Properties | getApplicationProperties()
Implements org. Return the application set of properties which correspond to the set of properties in the file derby.properties. |
| public ResourceBundle | getBundle(String
Message being searched for. messageId)Implements org. Get the locale from the ContextManager and then find the bundle based upon that locale. |
| public String | getCanonicalServiceName(String userSpecifiedName)
Implements org. Canonicalize a service name, mapping different user-specifications of a database name onto a single, standard name. |
| private static ContextService | |
| public Thread | getDaemonThread(Runnable task, String name, boolean setMinPriority)
Implements org. Get a newly created background thread. |
| private Vector | |
| pack-priv Properties | getDefaultModuleProperties()
Get the complete set of module properties by loading in contents of all the org/apache/derby/modules.properties files. |
| private Vector | |
| public Locale | getLocale(Object serviceModule)
Implements org. Return the locale of the service that the passed in module lives in. Will return null if no-locale has been defined. |
| public Locale | getLocaleFromString(String localeDescription)
Implements org. Translate a string of the form ll[_CC[_variant]] to a Locale. |
| private PersistentService | Returns: Valid PersistentService or null if the protocol is not handled.Return a PersistentService implementation to handle the subSubProtocol. |
| private PersistentService | |
| private boolean | |
| public String[] | Returns: The list of service names, if no services exist that implement the protocol an array with zero elements is returned.Implements org. 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)
Implements org. Return the name of the service that the passed in module lives in. |
| public PersistentService | getServiceProvider(String subSubProtocol)
Implements org. Return the PersistentService for a subsubprotocol. |
| public PersistentService | getServiceType(Object serviceModule)
Implements org. Return the PersistentService object for a service. |
| private String | Returns: Valid class name, or null if no StorageFactory handles the protocol.Find the StorageFactory class name that handles the subSub protocol. |
| public InfoStreams | getSystemStreams()
Implements org. Get the defined default system streams object. |
| private PrintWriter | |
| public TimerFactory | Returns: the system's Timer factory.Implements org. Returns the Timer factory for this system. |
| public UUIDFactory | getUUIDFactory()
Implements org. Return the UUID factory for this system. |
| pack-priv abstract boolean | |
| public final boolean | isDaemonThread(Thread
the thread to check thread)Implements org. Check if a thread is a daemon thread created by |
| protected Object | |
| private Object | |
| private Object | Returns: the instantiated objectthe class to instantiate classObject)Return a new instance of class |
| public Object | Returns: a reference to a newly created object or null if a matching class cannot be found.identifer to associate with class identifier)Implements org. Obtain an new instance of a class that supports the given identifier. |
| protected Properties | |
| public void | removePersistentService(String
: Service name to be removed. name)Implements org. Removes a PersistentService. |
| protected static Properties | removeRuntimeProperties(Properties properties)
Return a property set that has the runtime properties removed. |
| protected void | |
| protected void | |
| protected final void | |
| public Locale | setLocale(Object serviceModule, String
A String in the form xx_YY, where xx is the
language code and YY is the country code. userDefinedLocale)Implements org. Set the locale for the service *outside* of boot time. |
| public Locale | setLocale(Properties serviceProperties, String userDefinedLocale)
Implements org. Set the locale for the service at boot time. |
| private static Locale | |
| private static boolean | setMonitor(final BaseMonitor baseMonitor)
Must be private so that user code can't call this entry point. |
| public void | shutdown()
Implements org. Shut down the complete system that was started by this Monitor. |
| public void | shutdown(Object serviceModule)
Implements org. Shut down a service that was started by this Monitor. |
| public Object | startModule(boolean create, Object serviceModule, String factoryInterface, String identifier, Properties properties)
Implements org. Start a module. |
| public Object | startNonPersistentService(String factoryInterface, String serviceName, Properties properties)
Implements org. Start a non-persistent service. |
| public final boolean | startPersistentService(String
Name of the service to be started name, Properties Property set made available to all modules booted
for this service, through their ModuleControl.boot method. properties)Implements org. Start a peristent service. |
| protected void | startProviderService(PersistentService provider, String serviceName, Properties serviceProperties)
Boot a service under the control of the provider |
| public void | startServices(Properties properties, boolean bootAll)
Implements org. Start all services identified by derby.service.* in the property set. |
| private static Locale | |
| private static void |