Package org.apache.accumulo.core.util
Class CleanUp
- java.lang.Object
-
- org.apache.accumulo.core.util.CleanUp
-
@Deprecated(since="2.0.0") public class CleanUp extends Object
Deprecated.since 2.0.0 Use onlyAccumuloClient
instead. Also, make sure you close the AccumuloClient instances.Connector uses static resource that create threads and use memory. The only way to clean up these static resource related to Connectors created using ZookeeperInstance is to use this class.This class is not needed when only using
AccumuloClient
. The new AccumuloClient API that replaces Connector is closable. For code that only uses AccumuloClient, when all AccumuloClients are closed resources are cleaned up. Connectors that are derived from an AccumuloClient do not necessitate the use of this code.
-
-
Constructor Summary
Constructors Constructor Description CleanUp()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
shutdownNow(Connector conn)
Deprecated.kills all threads created by internal Accumulo singleton resources.
-
-
-
Method Detail
-
shutdownNow
public static void shutdownNow(Connector conn)
Deprecated.kills all threads created by internal Accumulo singleton resources. After this method is called, no Connector will work in the current classloader.- Parameters:
conn
- If available, Connector object to close resources on. Will accept null otherwise.
-
-