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()
           
 
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, TCredentials credentials)
           
 void init(org.apache.hadoop.fs.FileSystem fs, Instance instance, TCredentials credentials, boolean noTrash)
           
static void main(String[] args)
           
 void setOffline()
           
 void setSafeMode()
           
 void setVerbose()
           
 void useAddress(String address)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGarbageCollector

public SimpleGarbageCollector()
Method Detail

main

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

setSafeMode

public void setSafeMode()

setOffline

public void setOffline()

setVerbose

public void setVerbose()

useAddress

public void useAddress(String address)

init

public void init(org.apache.hadoop.fs.FileSystem fs,
                 Instance instance,
                 TCredentials credentials,
                 boolean noTrash)
          throws IOException
Throws:
IOException

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,
                          TCredentials credentials)
Specified by:
getStatus in interface GCMonitorService.Iface


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.