Example usage for org.apache.hadoop.registry.client.api RegistryOperationsFactory createInstance

List of usage examples for org.apache.hadoop.registry.client.api RegistryOperationsFactory createInstance

Introduction

In this page you can find the example usage for org.apache.hadoop.registry.client.api RegistryOperationsFactory createInstance.

Prototype

public static RegistryOperations createInstance(String name, Configuration conf) 

Source Link

Document

Create and initialize a registry operations instance.

Usage

From source file:org.apache.slider.server.services.utility.AbstractSliderLaunchedService.java

License:Apache License

/**
 * Create the registry operations instance. This is to allow
 * subclasses to instantiate a subclass service
 * @return an instance to match to the lifecycle of this service
 *///from  w  ww .ja  v  a2 s .  c o  m
protected RegistryOperations createRegistryOperationsInstance() {
    return RegistryOperationsFactory.createInstance("YarnRegistry", getConfig());
}