org.apache.hadoop.yarn.proto.ContainerManagementProtocol Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: containermanagement_protocol.proto
package org.apache.hadoop.yarn.proto;
public final class ContainerManagementProtocol {
private ContainerManagementProtocol() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf service {@code hadoop.yarn.ContainerManagementProtocolService}
*/
public static abstract class ContainerManagementProtocolService
implements com.google.protobuf.Service {
protected ContainerManagementProtocolService() {}
public interface Interface {
/**
* rpc startContainers(.hadoop.yarn.StartContainersRequestProto) returns (.hadoop.yarn.StartContainersResponseProto);
*/
public abstract void startContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc stopContainers(.hadoop.yarn.StopContainersRequestProto) returns (.hadoop.yarn.StopContainersResponseProto);
*/
public abstract void stopContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc getContainerStatuses(.hadoop.yarn.GetContainerStatusesRequestProto) returns (.hadoop.yarn.GetContainerStatusesResponseProto);
*/
public abstract void getContainerStatuses(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc increaseContainersResource(.hadoop.yarn.IncreaseContainersResourceRequestProto) returns (.hadoop.yarn.IncreaseContainersResourceResponseProto);
*/
public abstract void increaseContainersResource(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc updateContainer(.hadoop.yarn.ContainerUpdateRequestProto) returns (.hadoop.yarn.ContainerUpdateResponseProto);
*/
public abstract void updateContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc signalToContainer(.hadoop.yarn.SignalContainerRequestProto) returns (.hadoop.yarn.SignalContainerResponseProto);
*/
public abstract void signalToContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc localize(.hadoop.yarn.ResourceLocalizationRequestProto) returns (.hadoop.yarn.ResourceLocalizationResponseProto);
*/
public abstract void localize(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc reInitializeContainer(.hadoop.yarn.ReInitializeContainerRequestProto) returns (.hadoop.yarn.ReInitializeContainerResponseProto);
*/
public abstract void reInitializeContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc restartContainer(.hadoop.yarn.ContainerIdProto) returns (.hadoop.yarn.RestartContainerResponseProto);
*/
public abstract void restartContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc rollbackLastReInitialization(.hadoop.yarn.ContainerIdProto) returns (.hadoop.yarn.RollbackResponseProto);
*/
public abstract void rollbackLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc commitLastReInitialization(.hadoop.yarn.ContainerIdProto) returns (.hadoop.yarn.CommitResponseProto);
*/
public abstract void commitLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done);
}
public static com.google.protobuf.Service newReflectiveService(
final Interface impl) {
return new ContainerManagementProtocolService() {
@java.lang.Override
public void startContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProto request,
com.google.protobuf.RpcCallback done) {
impl.startContainers(controller, request, done);
}
@java.lang.Override
public void stopContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProto request,
com.google.protobuf.RpcCallback done) {
impl.stopContainers(controller, request, done);
}
@java.lang.Override
public void getContainerStatuses(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesRequestProto request,
com.google.protobuf.RpcCallback done) {
impl.getContainerStatuses(controller, request, done);
}
@java.lang.Override
public void increaseContainersResource(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProto request,
com.google.protobuf.RpcCallback done) {
impl.increaseContainersResource(controller, request, done);
}
@java.lang.Override
public void updateContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateRequestProto request,
com.google.protobuf.RpcCallback done) {
impl.updateContainer(controller, request, done);
}
@java.lang.Override
public void signalToContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto request,
com.google.protobuf.RpcCallback done) {
impl.signalToContainer(controller, request, done);
}
@java.lang.Override
public void localize(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationRequestProto request,
com.google.protobuf.RpcCallback done) {
impl.localize(controller, request, done);
}
@java.lang.Override
public void reInitializeContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerRequestProto request,
com.google.protobuf.RpcCallback done) {
impl.reInitializeContainer(controller, request, done);
}
@java.lang.Override
public void restartContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done) {
impl.restartContainer(controller, request, done);
}
@java.lang.Override
public void rollbackLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done) {
impl.rollbackLastReInitialization(controller, request, done);
}
@java.lang.Override
public void commitLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done) {
impl.commitLastReInitialization(controller, request, done);
}
};
}
public static com.google.protobuf.BlockingService
newReflectiveBlockingService(final BlockingInterface impl) {
return new com.google.protobuf.BlockingService() {
public final com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptorForType() {
return getDescriptor();
}
public final com.google.protobuf.Message callBlockingMethod(
com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request)
throws com.google.protobuf.ServiceException {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.callBlockingMethod() given method descriptor for " +
"wrong service type.");
}
switch(method.getIndex()) {
case 0:
return impl.startContainers(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProto)request);
case 1:
return impl.stopContainers(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProto)request);
case 2:
return impl.getContainerStatuses(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesRequestProto)request);
case 3:
return impl.increaseContainersResource(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProto)request);
case 4:
return impl.updateContainer(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateRequestProto)request);
case 5:
return impl.signalToContainer(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto)request);
case 6:
return impl.localize(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationRequestProto)request);
case 7:
return impl.reInitializeContainer(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerRequestProto)request);
case 8:
return impl.restartContainer(controller, (org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)request);
case 9:
return impl.rollbackLastReInitialization(controller, (org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)request);
case 10:
return impl.commitLastReInitialization(controller, (org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)request);
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getRequestPrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getRequestPrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProto.getDefaultInstance();
case 1:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProto.getDefaultInstance();
case 2:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesRequestProto.getDefaultInstance();
case 3:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProto.getDefaultInstance();
case 4:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateRequestProto.getDefaultInstance();
case 5:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.getDefaultInstance();
case 6:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationRequestProto.getDefaultInstance();
case 7:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerRequestProto.getDefaultInstance();
case 8:
return org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
case 9:
return org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
case 10:
return org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getResponsePrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getResponsePrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProto.getDefaultInstance();
case 1:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProto.getDefaultInstance();
case 2:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesResponseProto.getDefaultInstance();
case 3:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProto.getDefaultInstance();
case 4:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateResponseProto.getDefaultInstance();
case 5:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerResponseProto.getDefaultInstance();
case 6:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationResponseProto.getDefaultInstance();
case 7:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerResponseProto.getDefaultInstance();
case 8:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.RestartContainerResponseProto.getDefaultInstance();
case 9:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.RollbackResponseProto.getDefaultInstance();
case 10:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.CommitResponseProto.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
};
}
/**
* rpc startContainers(.hadoop.yarn.StartContainersRequestProto) returns (.hadoop.yarn.StartContainersResponseProto);
*/
public abstract void startContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc stopContainers(.hadoop.yarn.StopContainersRequestProto) returns (.hadoop.yarn.StopContainersResponseProto);
*/
public abstract void stopContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc getContainerStatuses(.hadoop.yarn.GetContainerStatusesRequestProto) returns (.hadoop.yarn.GetContainerStatusesResponseProto);
*/
public abstract void getContainerStatuses(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc increaseContainersResource(.hadoop.yarn.IncreaseContainersResourceRequestProto) returns (.hadoop.yarn.IncreaseContainersResourceResponseProto);
*/
public abstract void increaseContainersResource(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc updateContainer(.hadoop.yarn.ContainerUpdateRequestProto) returns (.hadoop.yarn.ContainerUpdateResponseProto);
*/
public abstract void updateContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc signalToContainer(.hadoop.yarn.SignalContainerRequestProto) returns (.hadoop.yarn.SignalContainerResponseProto);
*/
public abstract void signalToContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc localize(.hadoop.yarn.ResourceLocalizationRequestProto) returns (.hadoop.yarn.ResourceLocalizationResponseProto);
*/
public abstract void localize(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc reInitializeContainer(.hadoop.yarn.ReInitializeContainerRequestProto) returns (.hadoop.yarn.ReInitializeContainerResponseProto);
*/
public abstract void reInitializeContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerRequestProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc restartContainer(.hadoop.yarn.ContainerIdProto) returns (.hadoop.yarn.RestartContainerResponseProto);
*/
public abstract void restartContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc rollbackLastReInitialization(.hadoop.yarn.ContainerIdProto) returns (.hadoop.yarn.RollbackResponseProto);
*/
public abstract void rollbackLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done);
/**
* rpc commitLastReInitialization(.hadoop.yarn.ContainerIdProto) returns (.hadoop.yarn.CommitResponseProto);
*/
public abstract void commitLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done);
public static final
com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.ContainerManagementProtocol.getDescriptor().getServices().get(0);
}
public final com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptorForType() {
return getDescriptor();
}
public final void callMethod(
com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request,
com.google.protobuf.RpcCallback<
com.google.protobuf.Message> done) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.callMethod() given method descriptor for wrong " +
"service type.");
}
switch(method.getIndex()) {
case 0:
this.startContainers(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProto)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 1:
this.stopContainers(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProto)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 2:
this.getContainerStatuses(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesRequestProto)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 3:
this.increaseContainersResource(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProto)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 4:
this.updateContainer(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateRequestProto)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 5:
this.signalToContainer(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 6:
this.localize(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationRequestProto)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 7:
this.reInitializeContainer(controller, (org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerRequestProto)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 8:
this.restartContainer(controller, (org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 9:
this.rollbackLastReInitialization(controller, (org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
case 10:
this.commitLastReInitialization(controller, (org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getRequestPrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getRequestPrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProto.getDefaultInstance();
case 1:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProto.getDefaultInstance();
case 2:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesRequestProto.getDefaultInstance();
case 3:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProto.getDefaultInstance();
case 4:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateRequestProto.getDefaultInstance();
case 5:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.getDefaultInstance();
case 6:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationRequestProto.getDefaultInstance();
case 7:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerRequestProto.getDefaultInstance();
case 8:
return org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
case 9:
return org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
case 10:
return org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getResponsePrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getResponsePrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProto.getDefaultInstance();
case 1:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProto.getDefaultInstance();
case 2:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesResponseProto.getDefaultInstance();
case 3:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProto.getDefaultInstance();
case 4:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateResponseProto.getDefaultInstance();
case 5:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerResponseProto.getDefaultInstance();
case 6:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationResponseProto.getDefaultInstance();
case 7:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerResponseProto.getDefaultInstance();
case 8:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.RestartContainerResponseProto.getDefaultInstance();
case 9:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.RollbackResponseProto.getDefaultInstance();
case 10:
return org.apache.hadoop.yarn.proto.YarnServiceProtos.CommitResponseProto.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public static Stub newStub(
com.google.protobuf.RpcChannel channel) {
return new Stub(channel);
}
public static final class Stub extends org.apache.hadoop.yarn.proto.ContainerManagementProtocol.ContainerManagementProtocolService implements Interface {
private Stub(com.google.protobuf.RpcChannel channel) {
this.channel = channel;
}
private final com.google.protobuf.RpcChannel channel;
public com.google.protobuf.RpcChannel getChannel() {
return channel;
}
public void startContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProto request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(0),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProto.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProto.class,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProto.getDefaultInstance()));
}
public void stopContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProto request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(1),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProto.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProto.class,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProto.getDefaultInstance()));
}
public void getContainerStatuses(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesRequestProto request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(2),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesResponseProto.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesResponseProto.class,
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesResponseProto.getDefaultInstance()));
}
public void increaseContainersResource(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProto request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(3),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProto.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProto.class,
org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProto.getDefaultInstance()));
}
public void updateContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateRequestProto request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(4),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateResponseProto.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateResponseProto.class,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateResponseProto.getDefaultInstance()));
}
public void signalToContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(5),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerResponseProto.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerResponseProto.class,
org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerResponseProto.getDefaultInstance()));
}
public void localize(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationRequestProto request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(6),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationResponseProto.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationResponseProto.class,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationResponseProto.getDefaultInstance()));
}
public void reInitializeContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerRequestProto request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(7),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerResponseProto.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerResponseProto.class,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerResponseProto.getDefaultInstance()));
}
public void restartContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(8),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.RestartContainerResponseProto.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
org.apache.hadoop.yarn.proto.YarnServiceProtos.RestartContainerResponseProto.class,
org.apache.hadoop.yarn.proto.YarnServiceProtos.RestartContainerResponseProto.getDefaultInstance()));
}
public void rollbackLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(9),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.RollbackResponseProto.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
org.apache.hadoop.yarn.proto.YarnServiceProtos.RollbackResponseProto.class,
org.apache.hadoop.yarn.proto.YarnServiceProtos.RollbackResponseProto.getDefaultInstance()));
}
public void commitLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(10),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.CommitResponseProto.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
org.apache.hadoop.yarn.proto.YarnServiceProtos.CommitResponseProto.class,
org.apache.hadoop.yarn.proto.YarnServiceProtos.CommitResponseProto.getDefaultInstance()));
}
}
public static BlockingInterface newBlockingStub(
com.google.protobuf.BlockingRpcChannel channel) {
return new BlockingStub(channel);
}
public interface BlockingInterface {
public org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProto startContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProto request)
throws com.google.protobuf.ServiceException;
public org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProto stopContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProto request)
throws com.google.protobuf.ServiceException;
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesResponseProto getContainerStatuses(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesRequestProto request)
throws com.google.protobuf.ServiceException;
public org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProto increaseContainersResource(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProto request)
throws com.google.protobuf.ServiceException;
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateResponseProto updateContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateRequestProto request)
throws com.google.protobuf.ServiceException;
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerResponseProto signalToContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto request)
throws com.google.protobuf.ServiceException;
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationResponseProto localize(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationRequestProto request)
throws com.google.protobuf.ServiceException;
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerResponseProto reInitializeContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerRequestProto request)
throws com.google.protobuf.ServiceException;
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RestartContainerResponseProto restartContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request)
throws com.google.protobuf.ServiceException;
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RollbackResponseProto rollbackLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request)
throws com.google.protobuf.ServiceException;
public org.apache.hadoop.yarn.proto.YarnServiceProtos.CommitResponseProto commitLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request)
throws com.google.protobuf.ServiceException;
}
private static final class BlockingStub implements BlockingInterface {
private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
this.channel = channel;
}
private final com.google.protobuf.BlockingRpcChannel channel;
public org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProto startContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProto request)
throws com.google.protobuf.ServiceException {
return (org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProto) channel.callBlockingMethod(
getDescriptor().getMethods().get(0),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProto.getDefaultInstance());
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProto stopContainers(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProto request)
throws com.google.protobuf.ServiceException {
return (org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProto) channel.callBlockingMethod(
getDescriptor().getMethods().get(1),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProto.getDefaultInstance());
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesResponseProto getContainerStatuses(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesRequestProto request)
throws com.google.protobuf.ServiceException {
return (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesResponseProto) channel.callBlockingMethod(
getDescriptor().getMethods().get(2),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesResponseProto.getDefaultInstance());
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProto increaseContainersResource(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceRequestProto request)
throws com.google.protobuf.ServiceException {
return (org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProto) channel.callBlockingMethod(
getDescriptor().getMethods().get(3),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProto.getDefaultInstance());
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateResponseProto updateContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateRequestProto request)
throws com.google.protobuf.ServiceException {
return (org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateResponseProto) channel.callBlockingMethod(
getDescriptor().getMethods().get(4),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateResponseProto.getDefaultInstance());
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerResponseProto signalToContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto request)
throws com.google.protobuf.ServiceException {
return (org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerResponseProto) channel.callBlockingMethod(
getDescriptor().getMethods().get(5),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerResponseProto.getDefaultInstance());
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationResponseProto localize(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationRequestProto request)
throws com.google.protobuf.ServiceException {
return (org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationResponseProto) channel.callBlockingMethod(
getDescriptor().getMethods().get(6),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ResourceLocalizationResponseProto.getDefaultInstance());
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerResponseProto reInitializeContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerRequestProto request)
throws com.google.protobuf.ServiceException {
return (org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerResponseProto) channel.callBlockingMethod(
getDescriptor().getMethods().get(7),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.ReInitializeContainerResponseProto.getDefaultInstance());
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RestartContainerResponseProto restartContainer(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request)
throws com.google.protobuf.ServiceException {
return (org.apache.hadoop.yarn.proto.YarnServiceProtos.RestartContainerResponseProto) channel.callBlockingMethod(
getDescriptor().getMethods().get(8),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.RestartContainerResponseProto.getDefaultInstance());
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RollbackResponseProto rollbackLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request)
throws com.google.protobuf.ServiceException {
return (org.apache.hadoop.yarn.proto.YarnServiceProtos.RollbackResponseProto) channel.callBlockingMethod(
getDescriptor().getMethods().get(9),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.RollbackResponseProto.getDefaultInstance());
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.CommitResponseProto commitLastReInitialization(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto request)
throws com.google.protobuf.ServiceException {
return (org.apache.hadoop.yarn.proto.YarnServiceProtos.CommitResponseProto) channel.callBlockingMethod(
getDescriptor().getMethods().get(10),
controller,
request,
org.apache.hadoop.yarn.proto.YarnServiceProtos.CommitResponseProto.getDefaultInstance());
}
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ContainerManagementProtocolService)
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\"containermanagement_protocol.proto\022\013ha" +
"doop.yarn\032\021yarn_protos.proto\032\031yarn_servi" +
"ce_protos.proto2\312\t\n\"ContainerManagementP" +
"rotocolService\022f\n\017startContainers\022(.hado" +
"op.yarn.StartContainersRequestProto\032).ha" +
"doop.yarn.StartContainersResponseProto\022c" +
"\n\016stopContainers\022\'.hadoop.yarn.StopConta" +
"inersRequestProto\032(.hadoop.yarn.StopCont" +
"ainersResponseProto\022u\n\024getContainerStatu" +
"ses\022-.hadoop.yarn.GetContainerStatusesRe",
"questProto\032..hadoop.yarn.GetContainerSta" +
"tusesResponseProto\022\207\001\n\032increaseContainer" +
"sResource\0223.hadoop.yarn.IncreaseContaine" +
"rsResourceRequestProto\0324.hadoop.yarn.Inc" +
"reaseContainersResourceResponseProto\022f\n\017" +
"updateContainer\022(.hadoop.yarn.ContainerU" +
"pdateRequestProto\032).hadoop.yarn.Containe" +
"rUpdateResponseProto\022h\n\021signalToContaine" +
"r\022(.hadoop.yarn.SignalContainerRequestPr" +
"oto\032).hadoop.yarn.SignalContainerRespons",
"eProto\022i\n\010localize\022-.hadoop.yarn.Resourc" +
"eLocalizationRequestProto\032..hadoop.yarn." +
"ResourceLocalizationResponseProto\022x\n\025reI" +
"nitializeContainer\022..hadoop.yarn.ReIniti" +
"alizeContainerRequestProto\032/.hadoop.yarn" +
".ReInitializeContainerResponseProto\022]\n\020r" +
"estartContainer\022\035.hadoop.yarn.ContainerI" +
"dProto\032*.hadoop.yarn.RestartContainerRes" +
"ponseProto\022a\n\034rollbackLastReInitializati" +
"on\022\035.hadoop.yarn.ContainerIdProto\032\".hado",
"op.yarn.RollbackResponseProto\022]\n\032commitL" +
"astReInitialization\022\035.hadoop.yarn.Contai" +
"nerIdProto\032 .hadoop.yarn.CommitResponseP" +
"rotoBA\n\034org.apache.hadoop.yarn.protoB\033Co" +
"ntainerManagementProtocol\210\001\001\240\001\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor(),
org.apache.hadoop.yarn.proto.YarnServiceProtos.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy