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 edu.cornell.med.icb.goby.alignments.perms.PermutationWriter.java

/**
 * Write query index to small index permutations. Goby 2.0+ replaces large query indices by small indices
 * to improve compression of sorted alignment entries files. The permutation writer class takes care
 * of writing the reverse permutation smallIndex->queryIndex, to make it possible to retrieve the read
 * index for these applications that need it (i.e., to retrieve the reads that did not align against a
 * genome).

From source file org.excalibur.service.deployment.server.WebServer.java

public final class WebServer implements Closeable {
    private static final Logger LOG = LoggerFactory.getLogger(WebServer.class.getName());

    private final Server server;
    private final String contextPath;
    private final AtomicBoolean started = new AtomicBoolean(false);

From source file com.qwazr.utils.cassandra.CassandraCluster.java

public class CassandraCluster implements Closeable {

    private final static Logger logger = LoggerFactory.getLogger(CassandraCluster.class);

    private final LockUtils.ReadWriteLock rwl = new LockUtils.ReadWriteLock();
    private Cluster cluster;

From source file org.apache.jackrabbit.oak.plugins.blob.GarbageCollectorFileState.java

/**
 * Class for keeping the file system state of the garbage collection.
 * 
 * Also, manages any temporary files needed as well as external sorting.
 * 
 */

From source file org.apache.nifi.minifi.c2.provider.nifi.rest.TemplatesIterator.java

public class TemplatesIterator implements Iterator<Pair<String, String>>, Closeable {
    public static final String FLOW_TEMPLATES = "/flow/templates";

    private final HttpURLConnection urlConnection;
    private final InputStream inputStream;
    private final JsonParser parser;

From source file org.kiji.mapreduce.JobHistoryKijiTable.java

/**
 * A class providing an API to install and access the job history kiji table.
 *
 * Used in places like KijiMapReduceJob to record information about jobs run through Kiji.
 */
public final class JobHistoryKijiTable implements Closeable {

From source file com.facebook.presto.jdbc.QueryExecutor.java

class QueryExecutor implements Closeable {
    private final ObjectMapper mapper;
    private final CloseableHttpAsyncClient httpClient;
    private final String userAgent;

    private QueryExecutor(String userAgent, ObjectMapper mapper, HttpHost proxy) {

From source file org.apache.hadoop.hdfs.storageservice.server.NameNodeRouter.java

/**
 * Multiplexing layer, resolves requests destinations and creates proper NameNodeHandlers.
 * There is one NameNodeRouter per ClientProxyService and many NameNodeHandlers per one
 * NameNodeRouter.
 */
final class NameNodeRouter implements Closeable {

From source file org.dice_research.topicmodeling.io.json.stream.JsonWritingDocumentConsumer.java

public class JsonWritingDocumentConsumer extends AbstractDocumentJsonWriter implements DocumentConsumer, Closeable {

    private static final Logger LOGGER = LoggerFactory.getLogger(JsonWritingDocumentConsumer.class);

    public static JsonWritingDocumentConsumer createJsonWritingDocumentConsumer(File file) {
        FileOutputStream out = null;

From source file org.apache.tajo.client.v2.TajoClient.java

public class TajoClient implements Closeable {
    private static Log LOG = LogFactory.getLog(TajoClient.class);

    /**
     * default client port number
     */