/** * Protocol to get versions and signatures for supported protocols from the * server. * * Note: This extends the protocolbuffer service based interface to * add annotations. */ @ProtocolInfo( protocolName = "org.apache.hadoop.ipc.ProtocolMetaInfoPB", protocolVersion = 1) public interface ProtocolMetaInfoPB extends ProtocolInfoService.BlockingInterface { }
/** * Get the protocol name. * If the protocol class has a ProtocolAnnotation, then get the protocol * name from the annotation; otherwise the class name is the protocol name. */ static public String getProtocolName(Class<?> protocol) { if (protocol == null) { return null; } ProtocolInfo anno = protocol.getAnnotation(ProtocolInfo.class); return (anno == null) ? protocol.getName() : anno.protocolName(); }
/** * Get the protocol version from protocol class. * If the protocol class has a ProtocolAnnotation, * then get the protocol version from the annotation; * otherwise get it from the versionID field of the protocol class. */ static public long getProtocolVersion(Class<?> protocol) { if (protocol == null) { throw new IllegalArgumentException("Null protocol"); } long version; ProtocolInfo anno = protocol.getAnnotation(ProtocolInfo.class); if (anno != null) { version = anno.protocolVersion(); if (version != -1) return version; } try { Field versionField = protocol.getField("versionID"); versionField.setAccessible(true); return versionField.getLong(protocol); } catch (NoSuchFieldException ex) { throw new RuntimeException(ex); } catch (IllegalAccessException ex) { throw new RuntimeException(ex); } }
@ProtocolInfo(protocolName = "org.apache.hadoop.hive.llap.protocol.LlapPluginProtocolPB", protocolVersion = 1) @TokenInfo(JobTokenSelector.class) @InterfaceAudience.Private public interface LlapPluginProtocolPB extends LlapPluginProtocolProtos.LlapPluginProtocol.BlockingInterface { }
/** * Get the protocol name. * If the protocol class has a ProtocolAnnotation, then get the protocol * name from the annotation; otherwise the class name is the protocol name. */ static public String getProtocolName(Class<?> protocol) { if (protocol == null) { return null; } ProtocolInfo anno = protocol.getAnnotation(ProtocolInfo.class); return (anno == null) ? protocol.getName() : anno.protocolName(); }
@ProtocolInfo(protocolName = "org.apache.hadoop.hive.llap.protocol.LlapManagementProtocolPB", protocolVersion = 1) @KerberosInfo(serverPrincipal = HiveConf.HIVE_LLAP_DAEMON_SERVICE_PRINCIPAL_NAME) @InterfaceAudience.Private public interface LlapManagementProtocolPB extends LlapDaemonProtocolProtos.LlapManagementProtocol.BlockingInterface { }
/** * Get the protocol name. * If the protocol class has a ProtocolAnnotation, then get the protocol * name from the annotation; otherwise the class name is the protocol name. */ static public String getProtocolName(Class<?> protocol) { if (protocol == null) { return null; } ProtocolInfo anno = protocol.getAnnotation(ProtocolInfo.class); return (anno == null) ? protocol.getName() : anno.protocolName(); }
@ProtocolInfo(protocolName = "org.apache.hadoop.hive.llap.protocol.LlapProtocolBlockingPB", protocolVersion = 1) @KerberosInfo(serverPrincipal = HiveConf.HIVE_LLAP_DAEMON_SERVICE_PRINCIPAL_NAME) @TokenInfo(LlapTokenSelector.class) @InterfaceAudience.Private public interface LlapProtocolBlockingPB extends LlapDaemonProtocolProtos.LlapDaemonProtocol.BlockingInterface { }
/** * Get the protocol name. * If the protocol class has a ProtocolAnnotation, then get the protocol * name from the annotation; otherwise the class name is the protocol name. */ static public String getProtocolName(Class<?> protocol) { if (protocol == null) { return null; } ProtocolInfo anno = protocol.getAnnotation(ProtocolInfo.class); return (anno == null) ? protocol.getName() : anno.protocolName(); }
@KerberosInfo( serverPrincipal=CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY) @ProtocolInfo( protocolName = "org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol", protocolVersion = 1) @InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) @InterfaceStability.Evolving public interface RefreshAuthorizationPolicyProtocolPB extends RefreshAuthorizationPolicyProtocolService.BlockingInterface { }
/** * Get the protocol name. * If the protocol class has a ProtocolAnnotation, then get the protocol * name from the annotation; otherwise the class name is the protocol name. */ static public String getProtocolName(Class<?> protocol) { if (protocol == null) { return null; } ProtocolInfo anno = protocol.getAnnotation(ProtocolInfo.class); return (anno == null) ? protocol.getName() : anno.protocolName(); }
@KerberosInfo( serverPrincipal=CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY) @ProtocolInfo( protocolName = "org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService", protocolVersion = 1) @InterfaceAudience.Public @InterfaceStability.Evolving public interface TraceAdminProtocolPB extends TraceAdminService.BlockingInterface, VersionedProtocol { }
@KerberosInfo( serverPrincipal=CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY) @ProtocolInfo(protocolName = "org.apache.hadoop.ha.HAServiceProtocol", protocolVersion = 1) @InterfaceAudience.Public @InterfaceStability.Evolving public interface HAServiceProtocolPB extends HAServiceProtocolService.BlockingInterface, VersionedProtocol { /** * If any methods need annotation, it can be added here */ }
@KerberosInfo( serverPrincipal=CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY) @ProtocolInfo( protocolName = "org.apache.hadoop.ipc.GenericRefreshProtocol", protocolVersion = 1) @InterfaceAudience.LimitedPrivate({"HDFS"}) @InterfaceStability.Evolving public interface GenericRefreshProtocolPB extends GenericRefreshProtocolService.BlockingInterface { }
@KerberosInfo( serverPrincipal=CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY) @ProtocolInfo( protocolName = "org.apache.hadoop.security.RefreshUserMappingsProtocol", protocolVersion = 1) @InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) @InterfaceStability.Evolving public interface RefreshUserMappingsProtocolPB extends RefreshUserMappingsProtocolService.BlockingInterface { }
@KerberosInfo( serverPrincipal=CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY) @ProtocolInfo( protocolName = "org.apache.hadoop.tools.GetUserMappingsProtocol", protocolVersion = 1) @InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) @InterfaceStability.Evolving public interface GetUserMappingsProtocolPB extends GetUserMappingsProtocolService.BlockingInterface { }
@KerberosInfo( serverPrincipal=CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY) @ProtocolInfo( protocolName = "org.apache.hadoop.ipc.RefreshCallQueueProtocol", protocolVersion = 1) @InterfaceAudience.LimitedPrivate({"HDFS"}) @InterfaceStability.Evolving public interface RefreshCallQueueProtocolPB extends RefreshCallQueueProtocolService.BlockingInterface { }
@KerberosInfo( serverPrincipal=CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY) @ProtocolInfo(protocolName = "org.apache.hadoop.ha.ZKFCProtocol", protocolVersion = 1) @InterfaceAudience.Public @InterfaceStability.Evolving public interface ZKFCProtocolPB extends ZKFCProtocolService.BlockingInterface, VersionedProtocol { /** * If any methods need annotation, it can be added here */ }
@KerberosInfo( serverPrincipal = DFSConfigKeys.DFS_NAMENODE_KERBEROS_PRINCIPAL_KEY, clientPrincipal = DFSConfigKeys.DFS_DATANODE_KERBEROS_PRINCIPAL_KEY) @ProtocolInfo( protocolName = "org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol", protocolVersion = 1) @InterfaceAudience.Private public interface DatanodeProtocolPB extends DatanodeProtocolService.BlockingInterface { }
@KerberosInfo( serverPrincipal = DFSConfigKeys.DFS_DATANODE_KERBEROS_PRINCIPAL_KEY, clientPrincipal = DFSConfigKeys.DFS_DATANODE_KERBEROS_PRINCIPAL_KEY) @ProtocolInfo(protocolName = "org.apache.hadoop.hdfs.server.protocol.InterDatanodeProtocol", protocolVersion = 1) @InterfaceAudience.Private public interface InterDatanodeProtocolPB extends InterDatanodeProtocolService.BlockingInterface { }