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 hsyndicate.hadoop.dfs.HSyndicateUGMonitor.java

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

    private List<String> usergatewayHostnames = new ArrayList<String>();
    private Map<String, SyndicateFileSystem> syndicateFSs = new HashMap<String, SyndicateFileSystem>();

From source file org.sonar.db.ResultSetIterator.java

/**
 * Forward-only {@link java.util.Iterator} over a {@link java.sql.ResultSet}. Rows are
 * lazily loaded. The underlying ResultSet must be closed by calling the method
 * {@link #close()}
 * <p/>
 * As a safeguard, the ResultSet is automatically closed after the last element has

From source file org.springframework.cloud.config.client.ConfigClientWatch.java

/**
 * @author Spencer Gibb
 */
public class ConfigClientWatch implements Closeable, EnvironmentAware {

    private static Log log = LogFactory.getLog(ConfigServicePropertySourceLocator.class);

From source file com.asakusafw.runtime.directio.keepalive.HeartbeatKeeper.java

/**
 * Keep alive using heartbeat.
 * @since 0.2.6
 */
class HeartbeatKeeper implements Closeable {

From source file com.adaptris.util.text.mime.MultipartIterator.java

public abstract class MultipartIterator implements Closeable {

    protected transient Logger log = LoggerFactory.getLogger(this.getClass());
    protected DataSource dataSource;
    protected static final IdGenerator idGenerator = new GuidGenerator();

From source file com.stackify.api.common.log.LogAppender.java

/**
 * LogAppender
 * @author Eric Martin
 */
public class LogAppender<T> implements Closeable {

From source file org.springframework.boot.actuate.metrics.statsd.StatsdMetricWriter.java

/**
 * A {@link MetricWriter} that pushes data to statsd. Statsd has the concept of counters
 * and gauges, but only supports gauges with data type Long, so values will be truncated
 * towards zero. Metrics whose name contains "timer." (but not "gauge." or "counter.")
 * will be treated as execution times (in statsd terms). Anything incremented is treated
 * as a counter, and anything with a snapshot value in {@link #set(Metric)} is treated as

From source file org.kiji.bento.box.UpgradeServerClient.java

/**
 * <p>Client for sending check-in messages to the BentoBox upgrade server. Use the static method
 * {@link #create(org.apache.http.client.HttpClient, java.net.URI)} to obtain an instance that
 * can communicate with a particular upgrade server. Then, use the method
 * {@link #checkin(UpgradeCheckin)} to send a check-in message to the upgrade server and receive
 * a response.</p>

From source file org.apache.hadoop.hdfs.shortcircuit.ClientMmap.java

/**
 * A reference to a memory-mapped region used by an HDFS client.
 */
@InterfaceAudience.Private
public class ClientMmap implements Closeable {
    static final Log LOG = LogFactory.getLog(ClientMmap.class);

From source file org.apache.tajo.storage.http.ExampleHttpTablespaceTestServer.java

public class ExampleHttpTablespaceTestServer implements Closeable {

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

    private ServerBootstrap bootstrap;
    private Channel channel;