org.apache.accumulo.server.gc
Class SimpleGarbageCollector

java.lang.Object
  extended by org.apache.accumulo.server.gc.SimpleGarbageCollector
All Implemented Interfaces:
GCMonitorService.Iface

public class SimpleGarbageCollector
extends Object
implements GCMonitorService.Iface


Constructor Summary
SimpleGarbageCollector(String[] args)
           
 
Method Summary
static boolean almostOutOfMemory()
           
 void confirmDeletes(SortedSet<String> candidates)
          This method removes candidates from the candidate list under two conditions: 1.
 GCStatus getStatus(TInfo info, AuthInfo credentials)
           
 void init(org.apache.hadoop.fs.FileSystem fs, Instance instance, AuthInfo credentials, AccumuloConfiguration conf)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGarbageCollector

public SimpleGarbageCollector(String[] args)
                       throws UnknownHostException
Throws:
UnknownHostException
Method Detail

main

public static void main(String[] args)
                 throws UnknownHostException,
                        IOException
Throws:
UnknownHostException
IOException

init

public void init(org.apache.hadoop.fs.FileSystem fs,
                 Instance instance,
                 AuthInfo credentials,
                 AccumuloConfiguration conf)

almostOutOfMemory

public static boolean almostOutOfMemory()

confirmDeletes

public void confirmDeletes(SortedSet<String> candidates)
                    throws AccumuloException
This method removes candidates from the candidate list under two conditions: 1. They are in the same folder as a bulk processing file, if that option is selected 2. They are still in use in the file column family in the METADATA table

Throws:
AccumuloException

getStatus

public GCStatus getStatus(TInfo info,
                          AuthInfo credentials)
Specified by:
getStatus in interface GCMonitorService.Iface


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.