| org.apache.derby.iapi.services.monitor.ModuleSupportable
All known Subclasses: org.apache.derby.iapi.types.CDCDataValueFactory, org.apache.derby.impl.store.raw.xact.XactFactory, org.apache.derby.impl.sql.compile.NodeFactoryImpl, org.apache.derby.impl.sql.catalog.DataDictionaryImpl, org.apache.derby.impl.sql.conn.GenericLanguageConnectionFactory, org.apache.derby.impl.store.access.sort.ExternalSortFactory, org.apache.derby.impl.store.raw.data.BaseDataFileFactory, org.apache.derby.impl.db.BasicDatabase, org.apache.derby.impl.store.raw.log.LogToFile, org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase, org.apache.derby.impl.store.raw.log.ReadOnly, org.apache.derby.impl.sql.execute.GenericExecutionFactory, org.apache.derby.impl.store.access.heap.HeapConglomerateFactory, org.apache.derby.impl.store.raw.RawStore,
ModuleSupportable | public interface ModuleSupportable (Code) | | Allows a module to check its environment
before it is selected as an implementation.
|
Method Summary | |
public boolean | canSupport(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. |
canSupport | public boolean canSupport(Properties properties)(Code) | | 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
true if this instance can be used, false otherwise. |
|
|