Example usage for java.io Closeable interface-usage

List of usage examples for java.io Closeable interface-usage

Introduction

In this page you can find the example usage for java.io Closeable interface-usage.

Usage

From source file org.apache.hadoop.hbase.backup.regionserver.LogRollBackupSubprocedurePool.java

/**
 * Handle running each of the individual tasks for completing a backup procedure on a region
 * server.
 */
@InterfaceAudience.Private
public class LogRollBackupSubprocedurePool implements Closeable, Abortable {

From source file com.netflix.curator.ConnectionState.java

class ConnectionState implements Watcher, Closeable {
    private static final int MAX_BACKGROUND_EXCEPTIONS = 10;
    private static final boolean LOG_EVENTS = Boolean.getBoolean(DebugUtils.PROPERTY_LOG_EVENTS);
    private final Logger log = LoggerFactory.getLogger(getClass());
    private final HandleHolder zooKeeper;
    private final AtomicBoolean isConnected = new AtomicBoolean(false);

From source file org.deventropy.junithelper.derby.EmbeddedDerbyResource.java

/**
 * Provides an in-memory Derby resource. An instance of this class is initialized with the
 * {@link DerbyResourceConfig configuration} and a {@link #getDerbySystemHome() Derby System Home}.
 * 
 * <p>The class can be used either as a JUnit {@link org.junit.Rule Rule} / {@link org.junit.ClassRule ClassRule} OR
 * directly by the user. Initialization and de-initialization of an instance of this class (and the embedded Derby

From source file com.vmware.identity.interop.ossam.LinuxNativeAuthDbAdapter.java

public class LinuxNativeAuthDbAdapter extends NativeAdapter implements IOsSamAdapter, Closeable {
    private static final LinuxNativeAuthDbAdapter _instance = new LinuxNativeAuthDbAdapter();

    public static LinuxNativeAuthDbAdapter getInstance() {
        return _instance;
    }

From source file com.alibaba.wasp.WaspCluster.java

/**
 * This class defines methods that can help with managing Wasp clusters from
 * unit tests and system tests. There are 1 type of cluster deployments:
 * <ul>
 * <li><b>MiniWaspCluster:</b> each server is run in the same JVM in separate
 * threads, used by unit tests</li>

From source file org.apache.hadoop.yarn.client.GroupMembershipProxyService.java

public class GroupMembershipProxyService implements Closeable {

    private static final Log LOG = LogFactory.getLog(GroupMembershipProxyService.class);

    Random random = new Random();
    SortedActiveRMList anList = null;

From source file org.hobbit.storage.client.StorageServiceClient.java

/**
 * Simple client of the storage service implementing a synchronized
 * communication.
 *
 * @author Michael R&ouml;der (roeder@informatik.uni-leipzig.de)
 *

From source file org.hobbit.core.rabbit.RabbitRpcClient.java

/**
 * This class implements a thread safe client that can process several RPC calls
 * in parallel.
 *
 * @author Michael R&ouml;der (roeder@informatik.uni-leipzig.de)
 *

From source file org.apache.jackrabbit.oak.segment.file.ReversedLinesFileReader.java

/**
 * Reads lines in a file reversely (similar to a BufferedReader, but starting at
 * the last line). Useful for e.g. searching in log files.
 *
 * FIXME: this is a copy of org.apache.commons.io.input.ReversedLinesFileReader
 * with a fix for IO-471. Replace again once commons-io has released a fixed version.

From source file gobblin.metastore.util.DatabaseJobHistoryStoreSchemaManager.java

/**
 * A utility class for managing the {@link DatabaseJobHistoryStore} schema.
 *
 * @author Joel Baranick
 */
public class DatabaseJobHistoryStoreSchemaManager implements Closeable {