Codota Logo
Tracker.notifyDeleting
Code IndexAdd Codota to your IDE (free)

How to use
notifyDeleting
method
in
org.apache.cassandra.db.lifecycle.Tracker

Best Java code snippets using org.apache.cassandra.db.lifecycle.Tracker.notifyDeleting (Showing top 4 results out of 315)

  • Common ways to obtain Tracker
private void myMethod () {
Tracker t =
  • Codota Iconnew Tracker(null, false)
  • Codota IconColumnFamilyStore columnFamilyStore;columnFamilyStore.getTracker()
  • Codota IconMemtable memtable;new Tracker(memtable, loadsstables)
  • Smart code suggestions by Codota
}
origin: jsevellec/cassandra-unit

Map<SSTableReader, SSTableTidier> bulkObsoletion(Iterable<SSTableReader> sstables)
{
  if (!txnFile.isEmpty())
    throw new IllegalStateException("Bad state when doing bulk obsoletions");
  txnFile.addAll(Type.REMOVE, sstables);
  Map<SSTableReader, SSTableTidier> tidiers = new HashMap<>();
  for (SSTableReader sstable : sstables)
  {
    if (tracker != null)
      tracker.notifyDeleting(sstable);
    tidiers.put(sstable, new SSTableTidier(sstable, false, this));
  }
  return tidiers;
}
origin: jsevellec/cassandra-unit

/**
 * Schedule a reader for deletion as soon as it is fully unreferenced.
 */
SSTableTidier obsoleted(SSTableReader reader)
{
  if (txnFile.contains(Type.ADD, reader))
  {
    if (txnFile.contains(Type.REMOVE, reader))
      throw new IllegalArgumentException();
    return new SSTableTidier(reader, true, this);
  }
  txnFile.add(Type.REMOVE, reader);
  if (tracker != null)
    tracker.notifyDeleting(reader);
  return new SSTableTidier(reader, false, this);
}
origin: org.apache.cassandra/cassandra-all

/**
 * Schedule a reader for deletion as soon as it is fully unreferenced.
 */
SSTableTidier obsoleted(SSTableReader reader, LogRecord logRecord)
{
  if (txnFile.contains(Type.ADD, reader, logRecord))
  {
    if (txnFile.contains(Type.REMOVE, reader, logRecord))
      throw new IllegalArgumentException();
    return new SSTableTidier(reader, true, this);
  }
  txnFile.add(logRecord);
  if (tracker != null)
    tracker.notifyDeleting(reader);
  return new SSTableTidier(reader, false, this);
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * Schedule a reader for deletion as soon as it is fully unreferenced.
 */
SSTableTidier obsoleted(SSTableReader reader, LogRecord logRecord)
{
  if (txnFile.contains(Type.ADD, reader, logRecord))
  {
    if (txnFile.contains(Type.REMOVE, reader, logRecord))
      throw new IllegalArgumentException();
    return new SSTableTidier(reader, true, this);
  }
  txnFile.add(logRecord);
  if (tracker != null)
    tracker.notifyDeleting(reader);
  return new SSTableTidier(reader, false, this);
}
org.apache.cassandra.db.lifecycleTrackernotifyDeleting

Popular methods of Tracker

  • tryModify
  • <init>
  • addInitialSSTables
  • apply
    atomically tests permit against the view and applies function to it, if permit yields true, returnin
  • dropSSTables
    removes all sstables that are not busy compacting.
  • dropSSTablesIfInvalid
  • emptySet
  • isDummy
  • updateSizeTracking
  • addSSTables
  • getCompacting
  • getMemtableFor
    get the Memtable that the ordered writeOp should be directed to
  • getCompacting,
  • getMemtableFor,
  • getUncompacting,
  • getView,
  • markFlushing,
  • maybeIncrementallyBackup,
  • notify,
  • notifyAdded,
  • notifyDiscarded

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Reference (javax.naming)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now