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.tajo.util.metrics.reporter.TajoMetricsScheduledReporter.java

public abstract class TajoMetricsScheduledReporter extends TajoMetricsReporter implements Closeable {
    private static final Log LOG = LogFactory.getLog(TajoMetricsScheduledReporter.class);

    public static final String PERIOD_KEY = "period";

    protected MetricRegistry registry;

From source file org.apache.druid.indexing.kafka.test.TestBroker.java

public class TestBroker implements Closeable {

    private final String zookeeperConnect;
    private final File directory;
    private final boolean directoryCleanup;
    private final int id;

From source file com.qualys.jserf.ChannelManger.java

/**
 * @author Tristan Burch
 */
@Slf4j
public class ChannelManger implements Supplier<Channel>, Closeable {
    private final String serfHost;

From source file org.xwiki.wikistream.xar.internal.output.XARWikiWriter.java

/**
 * @version $Id: 812909831d90f706d549a219179df899c1a61708 $
 * @since 5.2M2
 */
public class XARWikiWriter implements Closeable {
    private final String name;

From source file org.apache.hadoop.hdfs.server.datanode.DatanodeBlockReader.java

/**
 * Base class for reading data for blocks from local disks and
 * fill in packet buffer.
 * 
 * @author sdong
 *

From source file org.apache.hadoop.hdfs.protocol.datatransfer.PacketReceiver.java

/**
 * Class to handle reading packets one-at-a-time from the wire.
 * These packets are used both for reading and writing data to/from
 * DataNodes.
 */
@InterfaceAudience.Private

From source file org.pircbotx.IdentServer.java

/**
 * A simple IdentServer (also know as "The Identification Protocol"). An ident
 * server provides a means to determine the identity of a user of a particular
 * TCP connection.
 * <p>
 * Most IRC servers attempt to contact the ident server on connecting hosts in

From source file org.springframework.cloud.zookeeper.config.ConfigWatcher.java

/**
 * Class that registers a {@link TreeCache} for each context.
 * It publishes events upon element change in Zookeeper.
 *
 * @author Spencer Gibb
 * @since 1.0.0

From source file io.undertow.server.handlers.proxy.mod_cluster.MCMPTestClient.java

/**
 * Basic mod_cluster management client. This can be used to simulate management requests to the mod_cluster manager.
 *
 * @author Emanuel Muckenhuber
 */
public class MCMPTestClient implements Closeable {

From source file org.apache.spark.network.server.TransportServer.java

/**
 * Server for the efficient, low-level streaming service.
 */
public class TransportServer implements Closeable {
    private static final Logger logger = LoggerFactory.getLogger(TransportServer.class);