Interface ModuleSupportable

All Known Subinterfaces:
ConglomerateFactory, MethodFactory, SortFactory
All Known Implementing Classes:
AuthenticationServiceBase, B2IFactory, BaseDataFileFactory, BaseDataFileFactoryJ4, BasicAuthenticationServiceImpl, BasicDatabase, DataDictionaryImpl, ExternalSortFactory, GenericExecutionFactory, GenericLanguageConnectionFactory, HeapConglomerateFactory, JNDIAuthenticationService, LogToFile, MasterController, NativeAuthenticationServiceImpl, 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

    Modifier and Type
    Method
    Description
    boolean
    canSupport(Properties properties)
    See if this implementation can support any attributes that are listed in properties.
  • Method Details

    • canSupport

      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:
      true if this instance can be used, false otherwise.