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.opendaylight.vpnservice.dhcpservice.DhcpInterfaceEventListener.java

public class DhcpInterfaceEventListener extends AbstractDataChangeListener<Interface> implements AutoCloseable {

    private static final Logger logger = LoggerFactory.getLogger(DhcpInterfaceEventListener.class);
    private DhcpManager dhcpManager;
    private ListenerRegistration<DataChangeListener> listenerRegistration;
    private DataBroker dataBroker;

From source file org.opendaylight.iotdm.onem2m.protocols.http.Onem2mHttpProvider.java

public class Onem2mHttpProvider implements AbstractIotDMPlugin, Onem2mNotifierPlugin, Onem2mRouterPlugin,
        BindingAwareProvider, AutoCloseable {

    private static final Logger LOG = LoggerFactory.getLogger(Onem2mHttpProvider.class);
    protected Onem2mService onem2mService;
    private HttpClient client;

From source file org.apache.reef.runtime.local.driver.ContainerManager.java

/**
 * Manages a set of Containers that each reference a Thread.
 */
@Private
@DriverSide
final class ContainerManager implements AutoCloseable {

From source file org.apache.drill.test.ClusterFixture.java

/**
 * Test fixture to start a Drillbit with provide options, create a client, and
 * execute queries. Can be used in JUnit tests, or in ad-hoc programs. Provides
 * a builder to set the necessary embedded Drillbit and client options, then
 * creates the requested Drillbit and client.
 */

From source file com.twentyn.patentSearch.Searcher.java

public class Searcher implements AutoCloseable {
    public static final Logger LOGGER = LogManager.getFormatterLogger(Searcher.class);

    private static final List<String> KEYWORDS = Collections
            .unmodifiableList(Arrays.asList("yeast", "cerevisiae", "coli", "biosynthesis", "biogenesis",
                    "anabolism", "catalysis", "ferment", "fermenter", "fermentor", "fermentation", "fermentive"));

From source file ai.grakn.engine.tasks.manager.multiqueue.MultiQueueTaskRunner.java

/**
 * <p>
 *      Picks up tasks from the work queue, runs them and marks them as completed or failed.
 * </p>
 *
 * <p>

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

/**
 * Provides Hive databases, and database tables metadata information using {@link HiveMetaStoreClient}
 */
public class HiveMetadataService implements AutoCloseable {
    private static final Logger LOG = LoggerFactory.getLogger(HiveMetadataService.class);

From source file io.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 ai.grakn.engine.tasks.manager.multiqueue.Scheduler.java

/**
 * Handle execution of recurring tasks.
 * Monitor new tasks queue to add them to ScheduledExecutorService.
 * ScheduledExecutorService will be given a function to add the task in question to the work queue.
 *
 * @author Denis Lobanov, alexandraorth

From source file org.apache.spark.sql.execution.vectorized.ColumnVector.java

/**
 * This class represents a column of values and provides the main APIs to access the data
 * values. It supports all the types and contains get/put APIs as well as their batched versions.
 * The batched versions are preferable whenever possible.
 *
 * To handle nested schemas, ColumnVector has two types: Arrays and Structs. In both cases these