Example usage for java.lang AutoCloseable interface-usage

List of usage examples for java.lang AutoCloseable interface-usage

Introduction

In this page you can find the example usage for java.lang AutoCloseable interface-usage.

Usage

From source file org.dspace.core.Context.java

/**
 * Class representing the context of a particular DSpace operation. This stores
 * information such as the current authenticated user and the database
 * connection being used.
 * <P>
 * Typical use of the context object will involve constructing one, and setting

From source file org.apache.sentry.service.thrift.SentryHMSClient.java

/**
 * Wrapper class for <Code>HiveMetaStoreClient</Code>
 *
 * <p>Abstracts communication with HMS and exposes APi's to connect/disconnect to HMS and to
 * request HMS snapshots and also for new notifications.
 */

From source file org.protempa.Protempa.java

/**
 * Main PROTEMPA API.
 *
 * @author Andrew Post
 */
public final class Protempa implements AutoCloseable {

From source file org.springframework.boot.loader.tools.JarWriter.java

/**
 * Writes JAR content, ensuring valid directory entries are always created and duplicate
 * items are ignored.
 *
 * @author Phillip Webb
 * @author Andy Wilkinson

From source file com.emc.storageos.driver.dellsc.scapi.rest.RestClient.java

/**
 * A basic REST client for SC API communication.
 */
public class RestClient implements AutoCloseable {

    private static final Logger LOG = LoggerFactory.getLogger(RestClient.class);

From source file org.apache.sysml.runtime.matrix.data.LibMatrixCuDNNRnnAlgorithm.java

public class LibMatrixCuDNNRnnAlgorithm implements java.lang.AutoCloseable {
    private static final Log LOG = LogFactory.getLog(LibMatrixCuDNNRnnAlgorithm.class.getName());
    GPUContext gCtx;
    String instName;
    cudnnDropoutDescriptor dropoutDesc;
    cudnnRNNDescriptor rnnDesc;

From source file org.apache.drill.exec.service.ServiceEngine.java

public class ServiceEngine implements AutoCloseable {
    static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ServiceEngine.class);

    private final UserServer userServer;
    private final Controller controller;
    private final DataConnectionCreator dataPool;

From source file org.apache.reef.runtime.yarn.client.YarnSubmissionHelper.java

/**
 * Helper code that wraps the YARN Client API for our purposes.
 */
public final class YarnSubmissionHelper implements AutoCloseable {

    private static final Logger LOG = Logger.getLogger(YarnSubmissionHelper.class.getName());

From source file org.apache.tinkerpop.gremlin.process.traversal.TraversalSource.java

/**
 * A {@code TraversalSource} is used to create {@link Traversal} instances.
 * A traversal source can generate any number of {@link Traversal} instances.
 * A traversal source is primarily composed of a {@link Graph} and a {@link TraversalStrategies}.
 * Various {@code withXXX}-based methods are used to configure the traversal strategies (called "configurations").
 * Various other methods (dependent on the traversal source type) will then generate a traversal given the graph and configured strategies (called "spawns").

From source file org.echocat.jemoni.carbon.jmx.Jmx2CarbonBridge.java

public class Jmx2CarbonBridge implements AutoCloseable {

    private static final Pattern NAME_REPLACE_PATTERN = compile("[,:][^=]+\\=");
    private static final Logger LOG = LoggerFactory.getLogger(Jmx2CarbonBridge.class);

    protected static final MBeanServer SERVER = ManagementFactory.getPlatformMBeanServer();