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.types;
020
021import org.apache.hadoop.classification.InterfaceAudience;
022import org.apache.hadoop.classification.InterfaceStability;
023
024/**
025 * some common protocol types
026 */
027@InterfaceAudience.Public
028@InterfaceStability.Evolving
029public interface ProtocolTypes {
030
031  /**
032   * Addresses are URIs of Hadoop Filesystem paths: {@value}.
033   */
034  String PROTOCOL_FILESYSTEM = "hadoop/filesystem";
035
036  /**
037   * Hadoop IPC,  "classic" or protobuf : {@value}.
038   */
039  String PROTOCOL_HADOOP_IPC = "hadoop/IPC";
040
041  /**
042   * Corba IIOP: {@value}.
043   */
044  String PROTOCOL_IIOP = "IIOP";
045
046  /**
047   * REST: {@value}.
048   */
049  String PROTOCOL_REST = "REST";
050
051  /**
052   * Java RMI: {@value}.
053   */
054  String PROTOCOL_RMI = "RMI";
055
056  /**
057   * SunOS RPC, as used by NFS and similar: {@value}.
058   */
059  String PROTOCOL_SUN_RPC = "sunrpc";
060
061  /**
062   * Thrift-based protocols: {@value}.
063   */
064  String PROTOCOL_THRIFT = "thrift";
065
066  /**
067   * Custom TCP protocol: {@value}.
068   */
069  String PROTOCOL_TCP = "tcp";
070
071  /**
072   * Custom UPC-based protocol : {@value}.
073   */
074  String PROTOCOL_UDP = "udp";
075
076  /**
077   * Default value —the protocol is unknown : "{@value}"
078   */
079  String PROTOCOL_UNKNOWN = "";
080
081  /**
082   * Web page: {@value}.
083   *
084   * This protocol implies that the URLs are designed for
085   * people to view via web browsers.
086   */
087  String PROTOCOL_WEBUI = "webui";
088
089  /**
090   * Web Services: {@value}.
091   */
092  String PROTOCOL_WSAPI = "WS-*";
093
094  /**
095   * A zookeeper binding: {@value}.
096   */
097  String PROTOCOL_ZOOKEEPER_BINDING = "zookeeper";
098
099}