Tabnine Logo
RegisterApplicationMasterRequestPBImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
RegisterApplicationMasterRequestPBImpl
in
org.apache.hadoop.yarn.api.protocolrecords.impl.pb

Best Java code snippets using org.apache.hadoop.yarn.api.protocolrecords.impl.pb.RegisterApplicationMasterRequestPBImpl (Showing top 20 results out of 315)

origin: org.apache.hadoop/hadoop-yarn-common

@Override
public boolean equals(Object other) {
 if (other == null)
  return false;
 if (other.getClass().isAssignableFrom(this.getClass())) {
  return this.getProto().equals(this.getClass().cast(other).getProto());
 }
 return false;
}
origin: org.apache.hadoop/hadoop-yarn-common

private void mergeLocalToProto() {
 if (viaProto) 
  maybeInitBuilder();
 mergeLocalToBuilder();
 proto = builder.build();
 viaProto = true;
}
origin: org.apache.hadoop/hadoop-yarn-common

public RegisterApplicationMasterRequestProto getProto() {
  mergeLocalToProto();
 proto = viaProto ? proto : builder.build();
 viaProto = true;
 return proto;
}
origin: org.apache.hadoop/hadoop-yarn-common

@Override
public void setPlacementConstraints(
  Map<Set<String>, PlacementConstraint> constraints) {
 maybeInitBuilder();
 if (constraints == null) {
  builder.clearPlacementConstraints();
 } else {
  removeEmptyKeys(constraints);
 }
 this.placementConstraints = constraints;
}
origin: ch.cern.hadoop/hadoop-yarn-common

@Override
public void setRpcPort(int port) {
 maybeInitBuilder();
 builder.setRpcPort(port);
}
origin: org.apache.hadoop/hadoop-yarn-common

 @Override
 public RegisterApplicationMasterResponseProto registerApplicationMaster(
   RpcController arg0, RegisterApplicationMasterRequestProto proto)
   throws ServiceException {
  RegisterApplicationMasterRequestPBImpl request = new RegisterApplicationMasterRequestPBImpl(proto);
  try {
   RegisterApplicationMasterResponse response = real.registerApplicationMaster(request);
   return ((RegisterApplicationMasterResponsePBImpl)response).getProto();
  } catch (YarnException e) {
   throw new ServiceException(e);
  } catch (IOException e) {
   throw new ServiceException(e);
  }
 }
}
origin: org.apache.hadoop/hadoop-yarn-common

private void mergeLocalToBuilder() {
 if (this.placementConstraints != null) {
  addPlacementConstraintMap();
 }
}
origin: org.apache.hadoop/hadoop-yarn-common

@Override
public void setRpcPort(int port) {
 maybeInitBuilder();
 builder.setRpcPort(port);
}
origin: com.github.jiayuhan-it/hadoop-yarn-common

 @Override
 public RegisterApplicationMasterResponseProto registerApplicationMaster(
   RpcController arg0, RegisterApplicationMasterRequestProto proto)
   throws ServiceException {
  RegisterApplicationMasterRequestPBImpl request = new RegisterApplicationMasterRequestPBImpl(proto);
  try {
   RegisterApplicationMasterResponse response = real.registerApplicationMaster(request);
   return ((RegisterApplicationMasterResponsePBImpl)response).getProto();
  } catch (YarnException e) {
   throw new ServiceException(e);
  } catch (IOException e) {
   throw new ServiceException(e);
  }
 }
}
origin: com.github.jiayuhan-it/hadoop-yarn-common

@Override
public boolean equals(Object other) {
 if (other == null)
  return false;
 if (other.getClass().isAssignableFrom(this.getClass())) {
  return this.getProto().equals(this.getClass().cast(other).getProto());
 }
 return false;
}
origin: ch.cern.hadoop/hadoop-yarn-common

private void mergeLocalToProto() {
 if (viaProto) 
  maybeInitBuilder();
 mergeLocalToBuilder();
 proto = builder.build();
 viaProto = true;
}
origin: com.github.jiayuhan-it/hadoop-yarn-common

@Override
public void setRpcPort(int port) {
 maybeInitBuilder();
 builder.setRpcPort(port);
}
origin: ch.cern.hadoop/hadoop-yarn-common

 @Override
 public RegisterApplicationMasterResponseProto registerApplicationMaster(
   RpcController arg0, RegisterApplicationMasterRequestProto proto)
   throws ServiceException {
  RegisterApplicationMasterRequestPBImpl request = new RegisterApplicationMasterRequestPBImpl(proto);
  try {
   RegisterApplicationMasterResponse response = real.registerApplicationMaster(request);
   return ((RegisterApplicationMasterResponsePBImpl)response).getProto();
  } catch (YarnException e) {
   throw new ServiceException(e);
  } catch (IOException e) {
   throw new ServiceException(e);
  }
 }
}
origin: com.github.jiayuhan-it/hadoop-yarn-common

public RegisterApplicationMasterRequestProto getProto() {
  mergeLocalToProto();
 proto = viaProto ? proto : builder.build();
 viaProto = true;
 return proto;
}
origin: ch.cern.hadoop/hadoop-yarn-common

@Override
public boolean equals(Object other) {
 if (other == null)
  return false;
 if (other.getClass().isAssignableFrom(this.getClass())) {
  return this.getProto().equals(this.getClass().cast(other).getProto());
 }
 return false;
}
origin: com.github.jiayuhan-it/hadoop-yarn-common

private void mergeLocalToProto() {
 if (viaProto) 
  maybeInitBuilder();
 mergeLocalToBuilder();
 proto = builder.build();
 viaProto = true;
}
origin: org.apache.hadoop/hadoop-yarn-common

@Override
public void setTrackingUrl(String url) {
 maybeInitBuilder();
 if (url == null) {
  builder.clearTrackingUrl();
  return;
 }
 builder.setTrackingUrl(url);
}
origin: org.apache.hadoop/hadoop-yarn-server-nodemanager

    .parseFrom(recoveredDataMap.get(NMSS_REG_REQUEST_KEY));
this.amRegistrationRequest =
  new RegisterApplicationMasterRequestPBImpl(pb);
LOG.info("amRegistrationRequest recovered for {}", this.attemptId);
origin: ch.cern.hadoop/hadoop-yarn-common

public RegisterApplicationMasterRequestProto getProto() {
  mergeLocalToProto();
 proto = viaProto ? proto : builder.build();
 viaProto = true;
 return proto;
}
origin: ch.cern.hadoop/hadoop-yarn-common

@Override
public int hashCode() {
 return getProto().hashCode();
}
org.apache.hadoop.yarn.api.protocolrecords.impl.pbRegisterApplicationMasterRequestPBImpl

Most used methods

  • getProto
  • <init>
  • maybeInitBuilder
  • mergeLocalToBuilder
  • mergeLocalToProto
  • addPlacementConstraintMap
  • initPlacementConstraintMap
  • removeEmptyKeys

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now