Top Description Methods
org.apache.derby.iapi.services.monitor

public Interface ModuleSupportable

Known Direct Subinterfaces
org.apache.derby.iapi.store.access.conglomerate.MethodFactory
Known Direct Implementers
org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase, org.apache.derby.impl.sql.catalog.DataDictionaryImpl, org.apache.derby.impl.store.access.heap.HeapConglomerateFactory, org.apache.derby.impl.store.raw.RawStore, org.apache.derby.impl.store.raw.data.BaseDataFileFactory, org.apache.derby.impl.store.raw.log.LogToFile, org.apache.derby.impl.store.raw.log.ReadOnly, org.apache.derby.impl.db.BasicDatabase, org.apache.derby.impl.sql.conn.GenericLanguageConnectionFactory, org.apache.derby.impl.store.access.sort.ExternalSortFactory, org.apache.derby.impl.store.raw.xact.XactFactory, org.apache.derby.impl.store.replication.master.MasterController, org.apache.derby.impl.store.replication.slave.SlaveController, org.apache.derby.impl.sql.execute.GenericExecutionFactory
Imports
java.util.Properties

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

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this instance can be used, false otherwise.
canSupport
(Properties properties)

See if this implementation can support any attributes that are listed in properties.

Method Detail

canSupportback to 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. 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:boolean

true if this instance can be used, false otherwise.