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 ai.grakn.engine.GraknEngineServer.java

        int redisPort = prop.getPropertyAsInt(GraknEngineConfig.REDIS_SERVER_PORT);
        redis = RedisConnection.create(redisUrl, redisPort);

        factory = EngineGraknGraphFactory.create(prop.getProperties());
        taskManager = startTaskManager();

From source file com.bt.sitb.opendaylight.controller.sample.btil.provider.OpendaylightBtil.java

public class OpendaylightBtil
        implements SitbBtilService, SitbBtilProviderRuntimeMXBean, DataChangeListener, AutoCloseable {

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

    public static final InstanceIdentifier<SitbBtil> TOASTER_IID = InstanceIdentifier.builder(SitbBtil.class)

From source file com.hortonworks.streamline.streams.cluster.service.metadata.HBaseMetadataService.java

/**
 * Provides HBase databases tables metadata information using {@link org.apache.hadoop.hbase.client.HBaseAdmin}
 */
public class HBaseMetadataService implements AutoCloseable {
    private static final Logger LOG = LoggerFactory.getLogger(HBaseMetadataService.class);

From source file org.apache.cassandra.hadoop.cql3.CqlRecordReader.java

/**
 * <p>
 * CqlRecordReader reads the rows return from the CQL query
 * It uses CQL auto-paging.
 * </p>
 * <p>

From source file io.mindmaps.graql.GraqlShell.java

/**
 * A Graql REPL shell that can be run from the command line
 */
@WebSocket
public class GraqlShell implements AutoCloseable {
    private static final String LICENSE_PROMPT = "\n" + "MindmapsDB  Copyright (C) 2016  Mindmaps Research Ltd \n"

From source file org.commonjava.propulsor.client.http.ClientHttpSupport.java

public class ClientHttpSupport implements AutoCloseable {
    private static final int GLOBAL_MAX_CONNECTIONS = 20;

    private final Logger logger = LoggerFactory.getLogger(getClass());

    private final String baseUrl;

From source file org.apache.arrow.vector.ipc.JsonFileReader.java

public class JsonFileReader implements AutoCloseable, DictionaryProvider {
    private final JsonParser parser;
    private final BufferAllocator allocator;
    private Schema schema;
    private Map<Long, Dictionary> dictionaries;
    private Boolean started = false;

From source file org.apache.druid.segment.realtime.appenderator.AppenderatorTester.java

public class AppenderatorTester implements AutoCloseable {
    public static final String DATASOURCE = "foo";

    private final DataSchema schema;
    private final RealtimeTuningConfig tuningConfig;
    private final FireDepartmentMetrics metrics;

From source file com.spotify.reaper.cassandra.JmxProxy.java

public class JmxProxy implements NotificationListener, AutoCloseable {

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

    private static final int JMX_PORT = 7199;
    private static final String JMX_URL = "service:jmx:rmi:///jndi/rmi://%s:%d/jmxrmi";

From source file org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.java

/**
 * Execute Gremlin scripts against a {@code ScriptEngine} instance.  It is designed to host any JSR-223 enabled
 * {@code ScriptEngine} and assumes such engines are designed to be thread-safe in the evaluation.  Script evaluation
 * functions return a {@link CompletableFuture} where scripts may timeout if their evaluation
 * takes too long.  The default timeout is 8000ms.
 * <p/>