org.apache.derby.iapi.services.monitor
Interface ModuleSupportable

All Known Subinterfaces:
ConglomerateFactory, MethodFactory, SortFactory
All Known Implementing Classes:
AuthenticationServiceBase, B2IFactory, BaseDataFileFactory, BaseDataFileFactoryJ4, BasicAuthenticationServiceImpl, BasicDatabase, CDCDataValueFactory, ConcurrentXactFactory, DataDictionaryImpl, ExternalSortFactory, GenericExecutionFactory, GenericLanguageConnectionFactory, HeapConglomerateFactory, JNDIAuthenticationService, LogToFile, MasterController, NodeFactoryImpl, NoneAuthenticationServiceImpl, RawStore, ReadOnly, SlaveController, SlaveDatabase, SpecificAuthenticationServiceImpl, UniqueWithDuplicateNullsExternalSortFactory, XactFactory

public interface ModuleSupportable

Allows a module to check its environment before it is selected as an implementation.


Method Summary
 boolean canSupport(java.util.Properties properties)
          See if this implementation can support any attributes that are listed in properties.
 

Method Detail

canSupport

boolean canSupport(java.util.Properties properties)
See if this implementation can support any attributes that are listed in properties. This call may be made on a newly created instance before the boot() method has been called, or after the boot method has been called for a running module.

The module can check for attributes in the properties to see if it can fulfill the required behaviour. E.g. the raw store may define an attribute called RawStore.Recoverable. If a temporary raw store is required the property RawStore.recoverable=false would be added to the properties before calling bootServiceModule. If a raw store cannot support this attribute its canSupport method would return null. Also see the Monitor class's prologue to see how the identifier is used in looking up properties.
Actually a better way maybe to have properties of the form RawStore.Attributes.mandatory=recoverable,smallfootprint and RawStore.Attributes.requested=oltp,fast

Returns:
true if this instance can be used, false otherwise.

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.