Class DistributedSequenceDB

  • All Implemented Interfaces:
    SequenceDB, SequenceDBLite, Changeable

    public class DistributedSequenceDB
    extends AbstractSequenceDB
    implements SequenceDB
    Sequence database from the meta-DAS system.
    Since:
    1.2 Once you've made one of these and populated it with a few DistDataSource instances, you should be able to prety much forget about it and use it directly as a normal SequenceDB implementation. DataSources can be added and removed while the object is live.
    Author:
    Thomas Down, Matthew Pocock
    • Field Detail

      • DATASOURCE

        public static final ChangeType DATASOURCE
      • DATASOURCE_SELECTION

        public static final ChangeType DATASOURCE_SELECTION
    • Constructor Detail

      • DistributedSequenceDB

        public DistributedSequenceDB()
    • Method Detail

      • hasChangeSupport

        protected boolean hasChangeSupport()
      • getDataSources

        public java.util.Set getDataSources()
        Get the current set of all currently registered data sources.

        The returned Set is totaly independant of any future changes made to the distributed sequence DB.

        Returns:
        a new Set containing all DistDataSource instances registered at the time
      • getName

        public java.lang.String getName()
        Description copied from interface: SequenceDBLite
        Get the name of this sequence database.
        Specified by:
        getName in interface SequenceDBLite
        Returns:
        the name of the sequence database, which may be null.
      • ids

        public java.util.Set ids()
        Description copied from interface: SequenceDB
        Get an immutable set of all of the IDs in the database. The ids are legal arguments to getSequence.
        Specified by:
        ids in interface SequenceDB
        Returns:
        a Set of ids - at the moment, strings