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 VASSAL.preferences.Prefs.java

/**
 * A set of preferences. Each set of preferences is identified by a name, and different sets may share a common editor,
 * which is responsible for writing the preferences to disk
 */
public class Prefs implements Closeable {
    /** Preferences key for the directory containing modules */

From source file org.apache.hadoop.hbase.procedure.ProcedureMember.java

/**
 * Process to kick off and manage a running {@link Subprocedure} on a member. This is the
 * specialized part of a {@link Procedure} that actually does procedure type-specific work
 * and reports back to the coordinator as it completes each phase.
 * <p>
 * If there is a connection error ({@link #controllerConnectionFailure(String, IOException)}), all

From source file org.apache.eagle.alert.metadata.IMetadataDao.java

public interface IMetadataDao extends Closeable {

    List<Topology> listTopologies();

    OpResult addTopology(Topology t);

From source file com.ibasco.agql.examples.base.BaseExample.java

abstract public class BaseExample implements Closeable {
    private static final String worldsMostSecureUnhackableIvKey = "aGqLsOurc3querYs";
    private static String worldsMostSecureUnhackableKey = "0123456789abcdef";
    private static final Logger log = LoggerFactory.getLogger(BaseExample.class);
    private static final String EXAMPLE_PROP_FILE = "example.properties";
    private Properties exampleProps = new Properties();

From source file io.amient.kafka.metrics.DiscoveryTool.java

public class DiscoveryTool extends ZkClient implements Closeable {

    private static final String DEFAULT_DATASOURCE = "Kafka Metrics InfluxDB";
    private static final String DEFAULT_DATABASE = "metrics";

    public static void main(String[] args) throws IOException {

From source file org.ardverk.daap.bio.DaapConnectionBIO.java

/**
 * This class is a cover for an incoming connection and is based on the
 * classical BIO (Blocking I/O) pattern. A connection can either be a general
 * DAAP connection or an Audio request.
 * 
 * @author Roger Kapsi

From source file org.zenoss.zep.rest.RestClient.java

public class RestClient implements Closeable {
    @SuppressWarnings("unused")
    private static final Logger logger = LoggerFactory.getLogger(RestClient.class);

    private HttpClient client = new DefaultHttpClient();
    private Map<String, Message> supportedMessages = new HashMap<String, Message>();

From source file no.finntech.yammer.YammerClient.java

public final class YammerClient implements Closeable {

    /**
     * Restful Yammer URL for messages api.
     */
    private static final String YAMMER_API_V1_MESSAGES = "https://www.yammer.com/api/v1/messages";

From source file org.apache.hadoop.hbase.quotas.QuotaRetriever.java

/**
 * Scanner to iterate over the quota settings.
 */
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class QuotaRetriever implements Closeable, Iterable<QuotaSettings> {

From source file biospectra.classify.ClassifierClient.java

/**
 *
 * @author iychoi
 */
public class ClassifierClient implements Closeable {