001/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *     http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019package org.apache.hadoop.registry.client.impl;
020
021import org.apache.hadoop.classification.InterfaceAudience;
022import org.apache.hadoop.classification.InterfaceStability;
023import org.apache.hadoop.registry.client.impl.zk.RegistryBindingSource;
024import org.apache.hadoop.registry.client.impl.zk.RegistryOperationsService;
025
026
027/**
028 * This is the client service for applications to work with the registry.
029 *
030 * It does not set up the root paths for the registry, is bonded
031 * to a user, and can be set to use SASL, anonymous or id:pass auth.
032 *
033 * For SASL, the client must be operating in the context of an authed user.
034 *
035 * For id:pass the client must have the relevant id and password, SASL is
036 * not used even if the client has credentials.
037 *
038 * For anonymous, nothing is used.
039 *
040 * Any SASL-authed client also has the ability to add one or more authentication
041 * id:pass pair on all future writes, and to reset them later.
042 */
043@InterfaceAudience.Public
044@InterfaceStability.Evolving
045public class RegistryOperationsClient extends RegistryOperationsService {
046
047  public RegistryOperationsClient(String name) {
048    super(name);
049  }
050
051  public RegistryOperationsClient(String name,
052      RegistryBindingSource bindingSource) {
053    super(name, bindingSource);
054  }
055}