Apache_Hadoop_YARN_Client.2.6.0.xml 112 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- Generated by the JDiff Javadoc doclet -->
  17. <!-- (http://www.jdiff.org) -->
  18. <!-- on Wed Apr 08 11:30:44 PDT 2015 -->
  19. <api
  20. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  21. xsi:noNamespaceSchemaLocation='api.xsd'
  22. name="hadoop-yarn-client 2.6.0"
  23. jdversion="1.0.9">
  24. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsJDiffDoclet -docletpath /Users/llu/hadoop2_6/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/target/hadoop-annotations.jar:/Users/llu/hadoop2_6/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/target/jdiff.jar -verbose -classpath /Users/llu/hadoop2_6/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/target/classes:/Users/llu/.m2/repository/org/apache/hadoop/hadoop-common/2.6.0/hadoop-common-2.6.0.jar:/Users/llu/.m2/repository/org/apache/commons/commons-math3/3.1.1/commons-math3-3.1.1.jar:/Users/llu/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/Users/llu/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/Users/llu/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/llu/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/Users/llu/.m2/repository/commons-net/commons-net/3.1/commons-net-3.1.jar:/Users/llu/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/Users/llu/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/llu/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/Users/llu/.m2/repository/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/Users/llu/.m2/repository/com/sun/jersey/jersey-core/1.9/jersey-core-1.9.jar:/Users/llu/.m2/repository/com/sun/jersey/jersey-json/1.9/jersey-json-1.9.jar:/Users/llu/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/Users/llu/.m2/repository/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.jar:/Users/llu/.m2/repository/asm/asm/3.2/asm-3.2.jar:/Users/llu/.m2/repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar:/Users/llu/.m2/repository/net/java/dev/jets3t/jets3t/0.9.0/jets3t-0.9.0.jar:/Users/llu/.m2/repository/org/apache/httpcomponents/httpclient/4.2.5/httpclient-4.2.5.jar:/Users/llu/.m2/repository/org/apache/httpcomponents/httpcore/4.2.5/httpcore-4.2.5.jar:/Users/llu/.m2/repository/com/jamesmurty/utils/java-xmlbuilder/0.4/java-xmlbuilder-0.4.jar:/Users/llu/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/Users/llu/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/Users/llu/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/Users/llu/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar:/Users/llu/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar:/Users/llu/.m2/repository/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.jar:/Users/llu/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/Users/llu/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/Users/llu/.m2/repository/org/apache/avro/avro/1.7.4/avro-1.7.4.jar:/Users/llu/.m2/repository/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/Users/llu/.m2/repository/org/xerial/snappy/snappy-java/1.0.4.1/snappy-java-1.0.4.1.jar:/Users/llu/.m2/repository/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/Users/llu/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/Users/llu/.m2/repository/org/apache/hadoop/hadoop-auth/2.6.0/hadoop-auth-2.6.0.jar:/Users/llu/.m2/repository/org/apache/directory/server/apacheds-kerberos-codec/2.0.0-M15/apacheds-kerberos-codec-2.0.0-M15.jar:/Users/llu/.m2/repository/org/apache/directory/server/apacheds-i18n/2.0.0-M15/apacheds-i18n-2.0.0-M15.jar:/Users/llu/.m2/repository/org/apache/directory/api/api-asn1-api/1.0.0-M20/api-asn1-api-1.0.0-M20.jar:/Users/llu/.m2/repository/org/apache/directory/api/api-util/1.0.0-M20/api-util-1.0.0-M20.jar:/Users/llu/.m2/repository/org/apache/curator/curator-framework/2.6.0/curator-framework-2.6.0.jar:/Users/llu/.m2/repository/com/jcraft/jsch/0.1.42/jsch-0.1.42.jar:/Users/llu/.m2/repository/org/apache/curator/curator-client/2.6.0/curator-client-2.6.0.jar:/Users/llu/.m2/repository/org/apache/curator/curator-recipes/2.6.0/curator-recipes-2.6.0.jar:/Users/llu/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar:/Users/llu/.m2/repository/org/htrace/htrace-core/3.0.4/htrace-core-3.0.4.jar:/Users/llu/.m2/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar:/Users/llu/.m2/repository/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar:/Users/llu/.m2/repository/org/tukaani/xz/1.0/xz-1.0.jar:/Users/llu/.m2/repository/com/google/guava/guava/11.0.2/guava-11.0.2.jar:/Users/llu/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/llu/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/llu/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/llu/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/llu/.m2/repository/org/apache/hadoop/hadoop-annotations/2.6.0/hadoop-annotations-2.6.0.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/tools.jar:/Users/llu/.m2/repository/io/netty/netty/3.6.2.Final/netty-3.6.2.Final.jar:/Users/llu/hadoop2_6/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/target/hadoop-yarn-api-2.6.0.jar:/Users/llu/hadoop2_6/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/target/hadoop-yarn-common-2.6.0.jar:/Users/llu/.m2/repository/javax/xml/bind/jaxb-api/2.2.2/jaxb-api-2.2.2.jar:/Users/llu/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/Users/llu/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/llu/.m2/repository/com/sun/jersey/jersey-client/1.9/jersey-client-1.9.jar:/Users/llu/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.13/jackson-jaxrs-1.9.13.jar:/Users/llu/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.13/jackson-xc-1.9.13.jar:/Users/llu/.m2/repository/com/google/inject/extensions/guice-servlet/3.0/guice-servlet-3.0.jar:/Users/llu/.m2/repository/com/google/inject/guice/3.0/guice-3.0.jar:/Users/llu/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/Users/llu/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/Users/llu/.m2/repository/com/sun/jersey/contribs/jersey-guice/1.9/jersey-guice-1.9.jar:/Users/llu/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar -sourcepath /Users/llu/hadoop2_6/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java -apidir /Users/llu/hadoop2_6/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/target/site/jdiff/xml -apiname hadoop-yarn-client 2.6.0 -->
  25. <package name="org.apache.hadoop.yarn.client.api">
  26. <!-- start class org.apache.hadoop.yarn.client.api.AHSClient -->
  27. <class name="AHSClient" extends="org.apache.hadoop.service.AbstractService"
  28. abstract="true"
  29. static="false" final="false" visibility="public"
  30. deprecated="not deprecated">
  31. <constructor name="AHSClient" type="java.lang.String"
  32. static="false" final="false" visibility="public"
  33. deprecated="not deprecated">
  34. </constructor>
  35. <method name="createAHSClient" return="org.apache.hadoop.yarn.client.api.AHSClient"
  36. abstract="false" native="false" synchronized="false"
  37. static="true" final="false" visibility="public"
  38. deprecated="not deprecated">
  39. <doc>
  40. <![CDATA[Create a new instance of AHSClient.]]>
  41. </doc>
  42. </method>
  43. <method name="getApplicationReport" return="org.apache.hadoop.yarn.api.records.ApplicationReport"
  44. abstract="true" native="false" synchronized="false"
  45. static="false" final="false" visibility="public"
  46. deprecated="not deprecated">
  47. <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  48. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  49. <exception name="IOException" type="java.io.IOException"/>
  50. <doc>
  51. <![CDATA[<p>
  52. Get a report of the given Application.
  53. </p>
  54. <p>
  55. In secure mode, <code>YARN</code> verifies access to the application, queue
  56. etc. before accepting the request.
  57. </p>
  58. <p>
  59. If the user does not have <code>VIEW_APP</code> access then the following
  60. fields in the report will be set to stubbed values:
  61. <ul>
  62. <li>host - set to "N/A"</li>
  63. <li>RPC port - set to -1</li>
  64. <li>client token - set to "N/A"</li>
  65. <li>diagnostics - set to "N/A"</li>
  66. <li>tracking URL - set to "N/A"</li>
  67. <li>original tracking URL - set to "N/A"</li>
  68. <li>resource usage report - all values are -1</li>
  69. </ul>
  70. </p>
  71. @param appId
  72. {@link ApplicationId} of the application that needs a report
  73. @return application report
  74. @throws YarnException
  75. @throws IOException]]>
  76. </doc>
  77. </method>
  78. <method name="getApplications" return="java.util.List"
  79. abstract="true" native="false" synchronized="false"
  80. static="false" final="false" visibility="public"
  81. deprecated="not deprecated">
  82. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  83. <exception name="IOException" type="java.io.IOException"/>
  84. <doc>
  85. <![CDATA[<p>
  86. Get a report (ApplicationReport) of all Applications in the cluster.
  87. </p>
  88. <p>
  89. If the user does not have <code>VIEW_APP</code> access for an application
  90. then the corresponding report will be filtered as described in
  91. {@link #getApplicationReport(ApplicationId)}.
  92. </p>
  93. @return a list of reports for all applications
  94. @throws YarnException
  95. @throws IOException]]>
  96. </doc>
  97. </method>
  98. <method name="getApplicationAttemptReport" return="org.apache.hadoop.yarn.api.records.ApplicationAttemptReport"
  99. abstract="true" native="false" synchronized="false"
  100. static="false" final="false" visibility="public"
  101. deprecated="not deprecated">
  102. <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
  103. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  104. <exception name="IOException" type="java.io.IOException"/>
  105. <doc>
  106. <![CDATA[<p>
  107. Get a report of the given ApplicationAttempt.
  108. </p>
  109. <p>
  110. In secure mode, <code>YARN</code> verifies access to the application, queue
  111. etc. before accepting the request.
  112. </p>
  113. @param applicationAttemptId
  114. {@link ApplicationAttemptId} of the application attempt that needs
  115. a report
  116. @return application attempt report
  117. @throws YarnException
  118. @throws {@link ApplicationAttemptNotFoundException} if application attempt
  119. not found
  120. @throws IOException]]>
  121. </doc>
  122. </method>
  123. <method name="getApplicationAttempts" return="java.util.List"
  124. abstract="true" native="false" synchronized="false"
  125. static="false" final="false" visibility="public"
  126. deprecated="not deprecated">
  127. <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  128. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  129. <exception name="IOException" type="java.io.IOException"/>
  130. <doc>
  131. <![CDATA[<p>
  132. Get a report of all (ApplicationAttempts) of Application in the cluster.
  133. </p>
  134. @param applicationId
  135. @return a list of reports for all application attempts for specified
  136. application
  137. @throws YarnException
  138. @throws IOException]]>
  139. </doc>
  140. </method>
  141. <method name="getContainerReport" return="org.apache.hadoop.yarn.api.records.ContainerReport"
  142. abstract="true" native="false" synchronized="false"
  143. static="false" final="false" visibility="public"
  144. deprecated="not deprecated">
  145. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  146. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  147. <exception name="IOException" type="java.io.IOException"/>
  148. <doc>
  149. <![CDATA[<p>
  150. Get a report of the given Container.
  151. </p>
  152. <p>
  153. In secure mode, <code>YARN</code> verifies access to the application, queue
  154. etc. before accepting the request.
  155. </p>
  156. @param containerId
  157. {@link ContainerId} of the container that needs a report
  158. @return container report
  159. @throws YarnException
  160. @throws {@link ContainerNotFoundException} if container not found
  161. @throws IOException]]>
  162. </doc>
  163. </method>
  164. <method name="getContainers" return="java.util.List"
  165. abstract="true" native="false" synchronized="false"
  166. static="false" final="false" visibility="public"
  167. deprecated="not deprecated">
  168. <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
  169. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  170. <exception name="IOException" type="java.io.IOException"/>
  171. <doc>
  172. <![CDATA[<p>
  173. Get a report of all (Containers) of ApplicationAttempt in the cluster.
  174. </p>
  175. @param applicationAttemptId
  176. @return a list of reports of all containers for specified application
  177. attempt
  178. @throws YarnException
  179. @throws IOException]]>
  180. </doc>
  181. </method>
  182. </class>
  183. <!-- end class org.apache.hadoop.yarn.client.api.AHSClient -->
  184. <!-- start class org.apache.hadoop.yarn.client.api.AMRMClient -->
  185. <class name="AMRMClient" extends="org.apache.hadoop.service.AbstractService"
  186. abstract="true"
  187. static="false" final="false" visibility="public"
  188. deprecated="not deprecated">
  189. <constructor name="AMRMClient" type="java.lang.String"
  190. static="false" final="false" visibility="protected"
  191. deprecated="not deprecated">
  192. </constructor>
  193. <method name="createAMRMClient" return="org.apache.hadoop.yarn.client.api.AMRMClient"
  194. abstract="false" native="false" synchronized="false"
  195. static="true" final="false" visibility="public"
  196. deprecated="not deprecated">
  197. <doc>
  198. <![CDATA[Create a new instance of AMRMClient.
  199. For usage:
  200. <pre>
  201. {@code
  202. AMRMClient.<T>createAMRMClientContainerRequest()
  203. }</pre>
  204. @return the newly create AMRMClient instance.]]>
  205. </doc>
  206. </method>
  207. <method name="registerApplicationMaster" return="org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse"
  208. abstract="true" native="false" synchronized="false"
  209. static="false" final="false" visibility="public"
  210. deprecated="not deprecated">
  211. <param name="appHostName" type="java.lang.String"/>
  212. <param name="appHostPort" type="int"/>
  213. <param name="appTrackingUrl" type="java.lang.String"/>
  214. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  215. <exception name="IOException" type="java.io.IOException"/>
  216. <doc>
  217. <![CDATA[Register the application master. This must be called before any
  218. other interaction
  219. @param appHostName Name of the host on which master is running
  220. @param appHostPort Port master is listening on
  221. @param appTrackingUrl URL at which the master info can be seen
  222. @return <code>RegisterApplicationMasterResponse</code>
  223. @throws YarnException
  224. @throws IOException]]>
  225. </doc>
  226. </method>
  227. <method name="allocate" return="org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse"
  228. abstract="true" native="false" synchronized="false"
  229. static="false" final="false" visibility="public"
  230. deprecated="not deprecated">
  231. <param name="progressIndicator" type="float"/>
  232. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  233. <exception name="IOException" type="java.io.IOException"/>
  234. <doc>
  235. <![CDATA[Request additional containers and receive new container allocations.
  236. Requests made via <code>addContainerRequest</code> are sent to the
  237. <code>ResourceManager</code>. New containers assigned to the master are
  238. retrieved. Status of completed containers and node health updates are also
  239. retrieved. This also doubles up as a heartbeat to the ResourceManager and
  240. must be made periodically. The call may not always return any new
  241. allocations of containers. App should not make concurrent allocate
  242. requests. May cause request loss.
  243. <p>
  244. Note : If the user has not removed container requests that have already
  245. been satisfied, then the re-register may end up sending the entire
  246. container requests to the RM (including matched requests). Which would mean
  247. the RM could end up giving it a lot of new allocated containers.
  248. </p>
  249. @param progressIndicator Indicates progress made by the master
  250. @return the response of the allocate request
  251. @throws YarnException
  252. @throws IOException]]>
  253. </doc>
  254. </method>
  255. <method name="unregisterApplicationMaster"
  256. abstract="true" native="false" synchronized="false"
  257. static="false" final="false" visibility="public"
  258. deprecated="not deprecated">
  259. <param name="appStatus" type="org.apache.hadoop.yarn.api.records.FinalApplicationStatus"/>
  260. <param name="appMessage" type="java.lang.String"/>
  261. <param name="appTrackingUrl" type="java.lang.String"/>
  262. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  263. <exception name="IOException" type="java.io.IOException"/>
  264. <doc>
  265. <![CDATA[Unregister the application master. This must be called in the end.
  266. @param appStatus Success/Failure status of the master
  267. @param appMessage Diagnostics message on failure
  268. @param appTrackingUrl New URL to get master info
  269. @throws YarnException
  270. @throws IOException]]>
  271. </doc>
  272. </method>
  273. <method name="addContainerRequest"
  274. abstract="true" native="false" synchronized="false"
  275. static="false" final="false" visibility="public"
  276. deprecated="not deprecated">
  277. <param name="req" type="T"/>
  278. <doc>
  279. <![CDATA[Request containers for resources before calling <code>allocate</code>
  280. @param req Resource request]]>
  281. </doc>
  282. </method>
  283. <method name="removeContainerRequest"
  284. abstract="true" native="false" synchronized="false"
  285. static="false" final="false" visibility="public"
  286. deprecated="not deprecated">
  287. <param name="req" type="T"/>
  288. <doc>
  289. <![CDATA[Remove previous container request. The previous container request may have
  290. already been sent to the ResourceManager. So even after the remove request
  291. the app must be prepared to receive an allocation for the previous request
  292. even after the remove request
  293. @param req Resource request]]>
  294. </doc>
  295. </method>
  296. <method name="releaseAssignedContainer"
  297. abstract="true" native="false" synchronized="false"
  298. static="false" final="false" visibility="public"
  299. deprecated="not deprecated">
  300. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  301. <doc>
  302. <![CDATA[Release containers assigned by the Resource Manager. If the app cannot use
  303. the container or wants to give up the container then it can release them.
  304. The app needs to make new requests for the released resource capability if
  305. it still needs it. eg. it released non-local resources
  306. @param containerId]]>
  307. </doc>
  308. </method>
  309. <method name="getAvailableResources" return="org.apache.hadoop.yarn.api.records.Resource"
  310. abstract="true" native="false" synchronized="false"
  311. static="false" final="false" visibility="public"
  312. deprecated="not deprecated">
  313. <doc>
  314. <![CDATA[Get the currently available resources in the cluster.
  315. A valid value is available after a call to allocate has been made
  316. @return Currently available resources]]>
  317. </doc>
  318. </method>
  319. <method name="getClusterNodeCount" return="int"
  320. abstract="true" native="false" synchronized="false"
  321. static="false" final="false" visibility="public"
  322. deprecated="not deprecated">
  323. <doc>
  324. <![CDATA[Get the current number of nodes in the cluster.
  325. A valid values is available after a call to allocate has been made
  326. @return Current number of nodes in the cluster]]>
  327. </doc>
  328. </method>
  329. <method name="getMatchingRequests" return="java.util.List"
  330. abstract="true" native="false" synchronized="false"
  331. static="false" final="false" visibility="public"
  332. deprecated="not deprecated">
  333. <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
  334. <param name="resourceName" type="java.lang.String"/>
  335. <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
  336. <doc>
  337. <![CDATA[Get outstanding <code>ContainerRequest</code>s matching the given
  338. parameters. These ContainerRequests should have been added via
  339. <code>addContainerRequest</code> earlier in the lifecycle. For performance,
  340. the AMRMClient may return its internal collection directly without creating
  341. a copy. Users should not perform mutable operations on the return value.
  342. Each collection in the list contains requests with identical
  343. <code>Resource</code> size that fit in the given capability. In a
  344. collection, requests will be returned in the same order as they were added.
  345. @return Collection of request matching the parameters]]>
  346. </doc>
  347. </method>
  348. <method name="updateBlacklist"
  349. abstract="true" native="false" synchronized="false"
  350. static="false" final="false" visibility="public"
  351. deprecated="not deprecated">
  352. <param name="blacklistAdditions" type="java.util.List"/>
  353. <param name="blacklistRemovals" type="java.util.List"/>
  354. <doc>
  355. <![CDATA[Update application's blacklist with addition or removal resources.
  356. @param blacklistAdditions list of resources which should be added to the
  357. application blacklist
  358. @param blacklistRemovals list of resources which should be removed from the
  359. application blacklist]]>
  360. </doc>
  361. </method>
  362. <method name="setNMTokenCache"
  363. abstract="false" native="false" synchronized="false"
  364. static="false" final="false" visibility="public"
  365. deprecated="not deprecated">
  366. <param name="nmTokenCache" type="org.apache.hadoop.yarn.client.api.NMTokenCache"/>
  367. <doc>
  368. <![CDATA[Set the NM token cache for the <code>AMRMClient</code>. This cache must
  369. be shared with the {@link NMClient} used to manage containers for the
  370. <code>AMRMClient</code>
  371. <p/>
  372. If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
  373. singleton instance will be used.
  374. @param nmTokenCache the NM token cache to use.]]>
  375. </doc>
  376. </method>
  377. <method name="getNMTokenCache" return="org.apache.hadoop.yarn.client.api.NMTokenCache"
  378. abstract="false" native="false" synchronized="false"
  379. static="false" final="false" visibility="public"
  380. deprecated="not deprecated">
  381. <doc>
  382. <![CDATA[Get the NM token cache of the <code>AMRMClient</code>. This cache must be
  383. shared with the {@link NMClient} used to manage containers for the
  384. <code>AMRMClient</code>.
  385. <p/>
  386. If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
  387. singleton instance will be used.
  388. @return the NM token cache.]]>
  389. </doc>
  390. </method>
  391. <method name="waitFor"
  392. abstract="false" native="false" synchronized="false"
  393. static="false" final="false" visibility="public"
  394. deprecated="not deprecated">
  395. <param name="check" type="com.google.common.base.Supplier"/>
  396. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  397. <doc>
  398. <![CDATA[Wait for <code>check</code> to return true for each 1000 ms.
  399. See also {@link #waitFor(com.google.common.base.Supplier, int)}
  400. and {@link #waitFor(com.google.common.base.Supplier, int, int)}
  401. @param check]]>
  402. </doc>
  403. </method>
  404. <method name="waitFor"
  405. abstract="false" native="false" synchronized="false"
  406. static="false" final="false" visibility="public"
  407. deprecated="not deprecated">
  408. <param name="check" type="com.google.common.base.Supplier"/>
  409. <param name="checkEveryMillis" type="int"/>
  410. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  411. <doc>
  412. <![CDATA[Wait for <code>check</code> to return true for each
  413. <code>checkEveryMillis</code> ms.
  414. See also {@link #waitFor(com.google.common.base.Supplier, int, int)}
  415. @param check user defined checker
  416. @param checkEveryMillis interval to call <code>check</code>]]>
  417. </doc>
  418. </method>
  419. <method name="waitFor"
  420. abstract="false" native="false" synchronized="false"
  421. static="false" final="false" visibility="public"
  422. deprecated="not deprecated">
  423. <param name="check" type="com.google.common.base.Supplier"/>
  424. <param name="checkEveryMillis" type="int"/>
  425. <param name="logInterval" type="int"/>
  426. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  427. <doc>
  428. <![CDATA[Wait for <code>check</code> to return true for each
  429. <code>checkEveryMillis</code> ms. In the main loop, this method will log
  430. the message "waiting in main loop" for each <code>logInterval</code> times
  431. iteration to confirm the thread is alive.
  432. @param check user defined checker
  433. @param checkEveryMillis interval to call <code>check</code>
  434. @param logInterval interval to log for each]]>
  435. </doc>
  436. </method>
  437. </class>
  438. <!-- end class org.apache.hadoop.yarn.client.api.AMRMClient -->
  439. <!-- start class org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest -->
  440. <class name="AMRMClient.ContainerRequest" extends="java.lang.Object"
  441. abstract="false"
  442. static="true" final="false" visibility="public"
  443. deprecated="not deprecated">
  444. <constructor name="AMRMClient.ContainerRequest" type="org.apache.hadoop.yarn.api.records.Resource, java.lang.String[], java.lang.String[], org.apache.hadoop.yarn.api.records.Priority"
  445. static="false" final="false" visibility="public"
  446. deprecated="not deprecated">
  447. <doc>
  448. <![CDATA[Instantiates a {@link ContainerRequest} with the given constraints and
  449. locality relaxation enabled.
  450. @param capability
  451. The {@link Resource} to be requested for each container.
  452. @param nodes
  453. Any hosts to request that the containers are placed on.
  454. @param racks
  455. Any racks to request that the containers are placed on. The
  456. racks corresponding to any hosts requested will be automatically
  457. added to this list.
  458. @param priority
  459. The priority at which to request the containers. Higher
  460. priorities have lower numerical values.]]>
  461. </doc>
  462. </constructor>
  463. <constructor name="AMRMClient.ContainerRequest" type="org.apache.hadoop.yarn.api.records.Resource, java.lang.String[], java.lang.String[], org.apache.hadoop.yarn.api.records.Priority, boolean"
  464. static="false" final="false" visibility="public"
  465. deprecated="not deprecated">
  466. <doc>
  467. <![CDATA[Instantiates a {@link ContainerRequest} with the given constraints.
  468. @param capability
  469. The {@link Resource} to be requested for each container.
  470. @param nodes
  471. Any hosts to request that the containers are placed on.
  472. @param racks
  473. Any racks to request that the containers are placed on. The
  474. racks corresponding to any hosts requested will be automatically
  475. added to this list.
  476. @param priority
  477. The priority at which to request the containers. Higher
  478. priorities have lower numerical values.
  479. @param relaxLocality
  480. If true, containers for this request may be assigned on hosts
  481. and racks other than the ones explicitly requested.]]>
  482. </doc>
  483. </constructor>
  484. <constructor name="AMRMClient.ContainerRequest" type="org.apache.hadoop.yarn.api.records.Resource, java.lang.String[], java.lang.String[], org.apache.hadoop.yarn.api.records.Priority, boolean, java.lang.String"
  485. static="false" final="false" visibility="public"
  486. deprecated="not deprecated">
  487. <doc>
  488. <![CDATA[Instantiates a {@link ContainerRequest} with the given constraints.
  489. @param capability
  490. The {@link Resource} to be requested for each container.
  491. @param nodes
  492. Any hosts to request that the containers are placed on.
  493. @param racks
  494. Any racks to request that the containers are placed on. The
  495. racks corresponding to any hosts requested will be automatically
  496. added to this list.
  497. @param priority
  498. The priority at which to request the containers. Higher
  499. priorities have lower numerical values.
  500. @param relaxLocality
  501. If true, containers for this request may be assigned on hosts
  502. and racks other than the ones explicitly requested.
  503. @param nodeLabelsExpression
  504. Set node labels to allocate resource]]>
  505. </doc>
  506. </constructor>
  507. <method name="getCapability" return="org.apache.hadoop.yarn.api.records.Resource"
  508. abstract="false" native="false" synchronized="false"
  509. static="false" final="false" visibility="public"
  510. deprecated="not deprecated">
  511. </method>
  512. <method name="getNodes" return="java.util.List"
  513. abstract="false" native="false" synchronized="false"
  514. static="false" final="false" visibility="public"
  515. deprecated="not deprecated">
  516. </method>
  517. <method name="getRacks" return="java.util.List"
  518. abstract="false" native="false" synchronized="false"
  519. static="false" final="false" visibility="public"
  520. deprecated="not deprecated">
  521. </method>
  522. <method name="getPriority" return="org.apache.hadoop.yarn.api.records.Priority"
  523. abstract="false" native="false" synchronized="false"
  524. static="false" final="false" visibility="public"
  525. deprecated="not deprecated">
  526. </method>
  527. <method name="getRelaxLocality" return="boolean"
  528. abstract="false" native="false" synchronized="false"
  529. static="false" final="false" visibility="public"
  530. deprecated="not deprecated">
  531. </method>
  532. <method name="getNodeLabelExpression" return="java.lang.String"
  533. abstract="false" native="false" synchronized="false"
  534. static="false" final="false" visibility="public"
  535. deprecated="not deprecated">
  536. </method>
  537. <method name="toString" return="java.lang.String"
  538. abstract="false" native="false" synchronized="false"
  539. static="false" final="false" visibility="public"
  540. deprecated="not deprecated">
  541. </method>
  542. <doc>
  543. <![CDATA[Object to represent a single container request for resources. Scheduler
  544. documentation should be consulted for the specifics of how the parameters
  545. are honored.
  546. By default, YARN schedulers try to allocate containers at the requested
  547. locations but they may relax the constraints in order to expedite meeting
  548. allocations limits. They first relax the constraint to the same rack as the
  549. requested node and then to anywhere in the cluster. The relaxLocality flag
  550. may be used to disable locality relaxation and request containers at only
  551. specific locations. The following conditions apply.
  552. <ul>
  553. <li>Within a priority, all container requests must have the same value for
  554. locality relaxation. Either enabled or disabled.</li>
  555. <li>If locality relaxation is disabled, then across requests, locations at
  556. different network levels may not be specified. E.g. its invalid to make a
  557. request for a specific node and another request for a specific rack.</li>
  558. <li>If locality relaxation is disabled, then only within the same request,
  559. a node and its rack may be specified together. This allows for a specific
  560. rack with a preference for a specific node within that rack.</li>
  561. <li></li>
  562. </ul>
  563. To re-enable locality relaxation at a given priority, all pending requests
  564. with locality relaxation disabled must be first removed. Then they can be
  565. added back with locality relaxation enabled.
  566. All getters return immutable values.]]>
  567. </doc>
  568. </class>
  569. <!-- end class org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest -->
  570. <!-- start class org.apache.hadoop.yarn.client.api.InvalidContainerRequestException -->
  571. <class name="InvalidContainerRequestException" extends="org.apache.hadoop.yarn.exceptions.YarnRuntimeException"
  572. abstract="false"
  573. static="false" final="false" visibility="public"
  574. deprecated="not deprecated">
  575. <constructor name="InvalidContainerRequestException" type="java.lang.Throwable"
  576. static="false" final="false" visibility="public"
  577. deprecated="not deprecated">
  578. </constructor>
  579. <constructor name="InvalidContainerRequestException" type="java.lang.String"
  580. static="false" final="false" visibility="public"
  581. deprecated="not deprecated">
  582. </constructor>
  583. <constructor name="InvalidContainerRequestException" type="java.lang.String, java.lang.Throwable"
  584. static="false" final="false" visibility="public"
  585. deprecated="not deprecated">
  586. </constructor>
  587. <doc>
  588. <![CDATA[Thrown when an arguments are combined to construct a
  589. <code>AMRMClient.ContainerRequest</code> in an invalid way.]]>
  590. </doc>
  591. </class>
  592. <!-- end class org.apache.hadoop.yarn.client.api.InvalidContainerRequestException -->
  593. <!-- start class org.apache.hadoop.yarn.client.api.NMClient -->
  594. <class name="NMClient" extends="org.apache.hadoop.service.AbstractService"
  595. abstract="true"
  596. static="false" final="false" visibility="public"
  597. deprecated="not deprecated">
  598. <constructor name="NMClient" type="java.lang.String"
  599. static="false" final="false" visibility="protected"
  600. deprecated="not deprecated">
  601. </constructor>
  602. <method name="createNMClient" return="org.apache.hadoop.yarn.client.api.NMClient"
  603. abstract="false" native="false" synchronized="false"
  604. static="true" final="false" visibility="public"
  605. deprecated="not deprecated">
  606. <doc>
  607. <![CDATA[Create a new instance of NMClient.]]>
  608. </doc>
  609. </method>
  610. <method name="createNMClient" return="org.apache.hadoop.yarn.client.api.NMClient"
  611. abstract="false" native="false" synchronized="false"
  612. static="true" final="false" visibility="public"
  613. deprecated="not deprecated">
  614. <param name="name" type="java.lang.String"/>
  615. <doc>
  616. <![CDATA[Create a new instance of NMClient.]]>
  617. </doc>
  618. </method>
  619. <method name="startContainer" return="java.util.Map"
  620. abstract="true" native="false" synchronized="false"
  621. static="false" final="false" visibility="public"
  622. deprecated="not deprecated">
  623. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  624. <param name="containerLaunchContext" type="org.apache.hadoop.yarn.api.records.ContainerLaunchContext"/>
  625. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  626. <exception name="IOException" type="java.io.IOException"/>
  627. <doc>
  628. <![CDATA[<p>Start an allocated container.</p>
  629. <p>The <code>ApplicationMaster</code> or other applications that use the
  630. client must provide the details of the allocated container, including the
  631. Id, the assigned node's Id and the token via {@link Container}. In
  632. addition, the AM needs to provide the {@link ContainerLaunchContext} as
  633. well.</p>
  634. @param container the allocated container
  635. @param containerLaunchContext the context information needed by the
  636. <code>NodeManager</code> to launch the
  637. container
  638. @return a map between the auxiliary service names and their outputs
  639. @throws YarnException
  640. @throws IOException]]>
  641. </doc>
  642. </method>
  643. <method name="stopContainer"
  644. abstract="true" native="false" synchronized="false"
  645. static="false" final="false" visibility="public"
  646. deprecated="not deprecated">
  647. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  648. <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
  649. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  650. <exception name="IOException" type="java.io.IOException"/>
  651. <doc>
  652. <![CDATA[<p>Stop an started container.</p>
  653. @param containerId the Id of the started container
  654. @param nodeId the Id of the <code>NodeManager</code>
  655. @throws YarnException
  656. @throws IOException]]>
  657. </doc>
  658. </method>
  659. <method name="getContainerStatus" return="org.apache.hadoop.yarn.api.records.ContainerStatus"
  660. abstract="true" native="false" synchronized="false"
  661. static="false" final="false" visibility="public"
  662. deprecated="not deprecated">
  663. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  664. <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
  665. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  666. <exception name="IOException" type="java.io.IOException"/>
  667. <doc>
  668. <![CDATA[<p>Query the status of a container.</p>
  669. @param containerId the Id of the started container
  670. @param nodeId the Id of the <code>NodeManager</code>
  671. @return the status of a container
  672. @throws YarnException
  673. @throws IOException]]>
  674. </doc>
  675. </method>
  676. <method name="cleanupRunningContainersOnStop"
  677. abstract="true" native="false" synchronized="false"
  678. static="false" final="false" visibility="public"
  679. deprecated="not deprecated">
  680. <param name="enabled" type="boolean"/>
  681. <doc>
  682. <![CDATA[<p>Set whether the containers that are started by this client, and are
  683. still running should be stopped when the client stops. By default, the
  684. feature should be enabled.</p> However, containers will be stopped only
  685. when service is stopped. i.e. after {@link NMClient#stop()}.
  686. @param enabled whether the feature is enabled or not]]>
  687. </doc>
  688. </method>
  689. <method name="setNMTokenCache"
  690. abstract="false" native="false" synchronized="false"
  691. static="false" final="false" visibility="public"
  692. deprecated="not deprecated">
  693. <param name="nmTokenCache" type="org.apache.hadoop.yarn.client.api.NMTokenCache"/>
  694. <doc>
  695. <![CDATA[Set the NM Token cache of the <code>NMClient</code>. This cache must be
  696. shared with the {@link AMRMClient} that requested the containers managed
  697. by this <code>NMClient</code>
  698. <p/>
  699. If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
  700. singleton instance will be used.
  701. @param nmTokenCache the NM token cache to use.]]>
  702. </doc>
  703. </method>
  704. <method name="getNMTokenCache" return="org.apache.hadoop.yarn.client.api.NMTokenCache"
  705. abstract="false" native="false" synchronized="false"
  706. static="false" final="false" visibility="public"
  707. deprecated="not deprecated">
  708. <doc>
  709. <![CDATA[Get the NM token cache of the <code>NMClient</code>. This cache must be
  710. shared with the {@link AMRMClient} that requested the containers managed
  711. by this <code>NMClient</code>
  712. <p/>
  713. If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
  714. singleton instance will be used.
  715. @return the NM token cache]]>
  716. </doc>
  717. </method>
  718. </class>
  719. <!-- end class org.apache.hadoop.yarn.client.api.NMClient -->
  720. <!-- start class org.apache.hadoop.yarn.client.api.NMTokenCache -->
  721. <class name="NMTokenCache" extends="java.lang.Object"
  722. abstract="false"
  723. static="false" final="false" visibility="public"
  724. deprecated="not deprecated">
  725. <constructor name="NMTokenCache"
  726. static="false" final="false" visibility="public"
  727. deprecated="not deprecated">
  728. <doc>
  729. <![CDATA[Creates a NM token cache instance.]]>
  730. </doc>
  731. </constructor>
  732. <method name="getSingleton" return="org.apache.hadoop.yarn.client.api.NMTokenCache"
  733. abstract="false" native="false" synchronized="false"
  734. static="true" final="false" visibility="public"
  735. deprecated="not deprecated">
  736. <doc>
  737. <![CDATA[Returns the singleton NM token cache.
  738. @return the singleton NM token cache.]]>
  739. </doc>
  740. </method>
  741. <method name="getNMToken" return="org.apache.hadoop.yarn.api.records.Token"
  742. abstract="false" native="false" synchronized="false"
  743. static="true" final="false" visibility="public"
  744. deprecated="not deprecated">
  745. <param name="nodeAddr" type="java.lang.String"/>
  746. <doc>
  747. <![CDATA[Returns NMToken, null if absent. Only the singleton obtained from
  748. {@link #getSingleton()} is looked at for the tokens. If you are using your
  749. own NMTokenCache that is different from the singleton, use
  750. {@link #getToken(String) }
  751. @param nodeAddr
  752. @return {@link Token} NMToken required for communicating with node manager]]>
  753. </doc>
  754. </method>
  755. <method name="setNMToken"
  756. abstract="false" native="false" synchronized="false"
  757. static="true" final="false" visibility="public"
  758. deprecated="not deprecated">
  759. <param name="nodeAddr" type="java.lang.String"/>
  760. <param name="token" type="org.apache.hadoop.yarn.api.records.Token"/>
  761. <doc>
  762. <![CDATA[Sets the NMToken for node address only in the singleton obtained from
  763. {@link #getSingleton()}. If you are using your own NMTokenCache that is
  764. different from the singleton, use {@link #setToken(String, Token) }
  765. @param nodeAddr
  766. node address (host:port)
  767. @param token
  768. NMToken]]>
  769. </doc>
  770. </method>
  771. <method name="getToken" return="org.apache.hadoop.yarn.api.records.Token"
  772. abstract="false" native="false" synchronized="false"
  773. static="false" final="false" visibility="public"
  774. deprecated="not deprecated">
  775. <param name="nodeAddr" type="java.lang.String"/>
  776. <doc>
  777. <![CDATA[Returns NMToken, null if absent
  778. @param nodeAddr
  779. @return {@link Token} NMToken required for communicating with node
  780. manager]]>
  781. </doc>
  782. </method>
  783. <method name="setToken"
  784. abstract="false" native="false" synchronized="false"
  785. static="false" final="false" visibility="public"
  786. deprecated="not deprecated">
  787. <param name="nodeAddr" type="java.lang.String"/>
  788. <param name="token" type="org.apache.hadoop.yarn.api.records.Token"/>
  789. <doc>
  790. <![CDATA[Sets the NMToken for node address
  791. @param nodeAddr node address (host:port)
  792. @param token NMToken]]>
  793. </doc>
  794. </method>
  795. <doc>
  796. <![CDATA[NMTokenCache manages NMTokens required for an Application Master
  797. communicating with individual NodeManagers.
  798. <p/>
  799. By default Yarn client libraries {@link AMRMClient} and {@link NMClient} use
  800. {@link #getSingleton()} instance of the cache.
  801. <ul>
  802. <li>Using the singleton instance of the cache is appropriate when running a
  803. single ApplicationMaster in the same JVM.</li>
  804. <li>When using the singleton, users don't need to do anything special,
  805. {@link AMRMClient} and {@link NMClient} are already set up to use the default
  806. singleton {@link NMTokenCache}</li>
  807. </ul>
  808. <p/>
  809. If running multiple Application Masters in the same JVM, a different cache
  810. instance should be used for each Application Master.
  811. <p/>
  812. <ul>
  813. <li>
  814. If using the {@link AMRMClient} and the {@link NMClient}, setting up and using
  815. an instance cache is as follows:
  816. <p/>
  817. <pre>
  818. NMTokenCache nmTokenCache = new NMTokenCache();
  819. AMRMClient rmClient = AMRMClient.createAMRMClient();
  820. NMClient nmClient = NMClient.createNMClient();
  821. nmClient.setNMTokenCache(nmTokenCache);
  822. ...
  823. </pre>
  824. </li>
  825. <li>
  826. If using the {@link AMRMClientAsync} and the {@link NMClientAsync}, setting up
  827. and using an instance cache is as follows:
  828. <p/>
  829. <pre>
  830. NMTokenCache nmTokenCache = new NMTokenCache();
  831. AMRMClient rmClient = AMRMClient.createAMRMClient();
  832. NMClient nmClient = NMClient.createNMClient();
  833. nmClient.setNMTokenCache(nmTokenCache);
  834. AMRMClientAsync rmClientAsync = new AMRMClientAsync(rmClient, 1000, [AMRM_CALLBACK]);
  835. NMClientAsync nmClientAsync = new NMClientAsync("nmClient", nmClient, [NM_CALLBACK]);
  836. ...
  837. </pre>
  838. </li>
  839. <li>
  840. If using {@link ApplicationMasterProtocol} and
  841. {@link ContainerManagementProtocol} directly, setting up and using an
  842. instance cache is as follows:
  843. <p/>
  844. <pre>
  845. NMTokenCache nmTokenCache = new NMTokenCache();
  846. ...
  847. ApplicationMasterProtocol amPro = ClientRMProxy.createRMProxy(conf, ApplicationMasterProtocol.class);
  848. ...
  849. AllocateRequest allocateRequest = ...
  850. ...
  851. AllocateResponse allocateResponse = rmClient.allocate(allocateRequest);
  852. for (NMToken token : allocateResponse.getNMTokens()) {
  853. nmTokenCache.setToken(token.getNodeId().toString(), token.getToken());
  854. }
  855. ...
  856. ContainerManagementProtocolProxy nmPro = ContainerManagementProtocolProxy(conf, nmTokenCache);
  857. ...
  858. nmPro.startContainer(container, containerContext);
  859. ...
  860. </pre>
  861. </li>
  862. </ul>
  863. It is also possible to mix the usage of a client (<code>AMRMClient</code> or
  864. <code>NMClient</code>, or the async versions of them) with a protocol proxy (
  865. <code>ContainerManagementProtocolProxy</code> or
  866. <code>ApplicationMasterProtocol</code>).]]>
  867. </doc>
  868. </class>
  869. <!-- end class org.apache.hadoop.yarn.client.api.NMTokenCache -->
  870. <!-- start class org.apache.hadoop.yarn.client.api.YarnClient -->
  871. <class name="YarnClient" extends="org.apache.hadoop.service.AbstractService"
  872. abstract="true"
  873. static="false" final="false" visibility="public"
  874. deprecated="not deprecated">
  875. <constructor name="YarnClient" type="java.lang.String"
  876. static="false" final="false" visibility="protected"
  877. deprecated="not deprecated">
  878. </constructor>
  879. <method name="createYarnClient" return="org.apache.hadoop.yarn.client.api.YarnClient"
  880. abstract="false" native="false" synchronized="false"
  881. static="true" final="false" visibility="public"
  882. deprecated="not deprecated">
  883. <doc>
  884. <![CDATA[Create a new instance of YarnClient.]]>
  885. </doc>
  886. </method>
  887. <method name="createApplication" return="org.apache.hadoop.yarn.client.api.YarnClientApplication"
  888. abstract="true" native="false" synchronized="false"
  889. static="false" final="false" visibility="public"
  890. deprecated="not deprecated">
  891. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  892. <exception name="IOException" type="java.io.IOException"/>
  893. <doc>
  894. <![CDATA[<p>
  895. Obtain a {@link YarnClientApplication} for a new application,
  896. which in turn contains the {@link ApplicationSubmissionContext} and
  897. {@link org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse}
  898. objects.
  899. </p>
  900. @return {@link YarnClientApplication} built for a new application
  901. @throws YarnException
  902. @throws IOException]]>
  903. </doc>
  904. </method>
  905. <method name="submitApplication" return="org.apache.hadoop.yarn.api.records.ApplicationId"
  906. abstract="true" native="false" synchronized="false"
  907. static="false" final="false" visibility="public"
  908. deprecated="not deprecated">
  909. <param name="appContext" type="org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext"/>
  910. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  911. <exception name="IOException" type="java.io.IOException"/>
  912. <doc>
  913. <![CDATA[<p>
  914. Submit a new application to <code>YARN.</code> It is a blocking call - it
  915. will not return {@link ApplicationId} until the submitted application is
  916. submitted successfully and accepted by the ResourceManager.
  917. </p>
  918. <p>
  919. Users should provide an {@link ApplicationId} as part of the parameter
  920. {@link ApplicationSubmissionContext} when submitting a new application,
  921. otherwise it will throw the {@link ApplicationIdNotProvidedException}.
  922. </p>
  923. <p>This internally calls {@link ApplicationClientProtocol#submitApplication
  924. (SubmitApplicationRequest)}, and after that, it internally invokes
  925. {@link ApplicationClientProtocol#getApplicationReport
  926. (GetApplicationReportRequest)} and waits till it can make sure that the
  927. application gets properly submitted. If RM fails over or RM restart
  928. happens before ResourceManager saves the application's state,
  929. {@link ApplicationClientProtocol
  930. #getApplicationReport(GetApplicationReportRequest)} will throw
  931. the {@link ApplicationNotFoundException}. This API automatically resubmits
  932. the application with the same {@link ApplicationSubmissionContext} when it
  933. catches the {@link ApplicationNotFoundException}</p>
  934. @param appContext
  935. {@link ApplicationSubmissionContext} containing all the details
  936. needed to submit a new application
  937. @return {@link ApplicationId} of the accepted application
  938. @throws YarnException
  939. @throws IOException
  940. @see #createApplication()]]>
  941. </doc>
  942. </method>
  943. <method name="killApplication"
  944. abstract="true" native="false" synchronized="false"
  945. static="false" final="false" visibility="public"
  946. deprecated="not deprecated">
  947. <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  948. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  949. <exception name="IOException" type="java.io.IOException"/>
  950. <doc>
  951. <![CDATA[<p>
  952. Kill an application identified by given ID.
  953. </p>
  954. @param applicationId
  955. {@link ApplicationId} of the application that needs to be killed
  956. @throws YarnException
  957. in case of errors or if YARN rejects the request due to
  958. access-control restrictions.
  959. @throws IOException
  960. @see #getQueueAclsInfo()]]>
  961. </doc>
  962. </method>
  963. <method name="getApplicationReport" return="org.apache.hadoop.yarn.api.records.ApplicationReport"
  964. abstract="true" native="false" synchronized="false"
  965. static="false" final="false" visibility="public"
  966. deprecated="not deprecated">
  967. <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  968. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  969. <exception name="IOException" type="java.io.IOException"/>
  970. <doc>
  971. <![CDATA[<p>
  972. Get a report of the given Application.
  973. </p>
  974. <p>
  975. In secure mode, <code>YARN</code> verifies access to the application, queue
  976. etc. before accepting the request.
  977. </p>
  978. <p>
  979. If the user does not have <code>VIEW_APP</code> access then the following
  980. fields in the report will be set to stubbed values:
  981. <ul>
  982. <li>host - set to "N/A"</li>
  983. <li>RPC port - set to -1</li>
  984. <li>client token - set to "N/A"</li>
  985. <li>diagnostics - set to "N/A"</li>
  986. <li>tracking URL - set to "N/A"</li>
  987. <li>original tracking URL - set to "N/A"</li>
  988. <li>resource usage report - all values are -1</li>
  989. </ul>
  990. </p>
  991. @param appId
  992. {@link ApplicationId} of the application that needs a report
  993. @return application report
  994. @throws YarnException
  995. @throws IOException]]>
  996. </doc>
  997. </method>
  998. <method name="getAMRMToken" return="org.apache.hadoop.security.token.Token"
  999. abstract="true" native="false" synchronized="false"
  1000. static="false" final="false" visibility="public"
  1001. deprecated="not deprecated">
  1002. <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  1003. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1004. <exception name="IOException" type="java.io.IOException"/>
  1005. <doc>
  1006. <![CDATA[Get the AMRM token of the application.
  1007. <p/>
  1008. The AMRM token is required for AM to RM scheduling operations. For
  1009. managed Application Masters Yarn takes care of injecting it. For unmanaged
  1010. Applications Masters, the token must be obtained via this method and set
  1011. in the {@link org.apache.hadoop.security.UserGroupInformation} of the
  1012. current user.
  1013. <p/>
  1014. The AMRM token will be returned only if all the following conditions are
  1015. met:
  1016. <li>
  1017. <ul>the requester is the owner of the ApplicationMaster</ul>
  1018. <ul>the application master is an unmanaged ApplicationMaster</ul>
  1019. <ul>the application master is in ACCEPTED state</ul>
  1020. </li>
  1021. Else this method returns NULL.
  1022. @param appId {@link ApplicationId} of the application to get the AMRM token
  1023. @return the AMRM token if available
  1024. @throws YarnException
  1025. @throws IOException]]>
  1026. </doc>
  1027. </method>
  1028. <method name="getApplications" return="java.util.List"
  1029. abstract="true" native="false" synchronized="false"
  1030. static="false" final="false" visibility="public"
  1031. deprecated="not deprecated">
  1032. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1033. <exception name="IOException" type="java.io.IOException"/>
  1034. <doc>
  1035. <![CDATA[<p>
  1036. Get a report (ApplicationReport) of all Applications in the cluster.
  1037. </p>
  1038. <p>
  1039. If the user does not have <code>VIEW_APP</code> access for an application
  1040. then the corresponding report will be filtered as described in
  1041. {@link #getApplicationReport(ApplicationId)}.
  1042. </p>
  1043. @return a list of reports of all running applications
  1044. @throws YarnException
  1045. @throws IOException]]>
  1046. </doc>
  1047. </method>
  1048. <method name="getApplications" return="java.util.List"
  1049. abstract="true" native="false" synchronized="false"
  1050. static="false" final="false" visibility="public"
  1051. deprecated="not deprecated">
  1052. <param name="applicationTypes" type="java.util.Set"/>
  1053. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1054. <exception name="IOException" type="java.io.IOException"/>
  1055. <doc>
  1056. <![CDATA[<p>
  1057. Get a report (ApplicationReport) of Applications
  1058. matching the given application types in the cluster.
  1059. </p>
  1060. <p>
  1061. If the user does not have <code>VIEW_APP</code> access for an application
  1062. then the corresponding report will be filtered as described in
  1063. {@link #getApplicationReport(ApplicationId)}.
  1064. </p>
  1065. @param applicationTypes
  1066. @return a list of reports of applications
  1067. @throws YarnException
  1068. @throws IOException]]>
  1069. </doc>
  1070. </method>
  1071. <method name="getApplications" return="java.util.List"
  1072. abstract="true" native="false" synchronized="false"
  1073. static="false" final="false" visibility="public"
  1074. deprecated="not deprecated">
  1075. <param name="applicationStates" type="java.util.EnumSet"/>
  1076. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1077. <exception name="IOException" type="java.io.IOException"/>
  1078. <doc>
  1079. <![CDATA[<p>
  1080. Get a report (ApplicationReport) of Applications matching the given
  1081. application states in the cluster.
  1082. </p>
  1083. <p>
  1084. If the user does not have <code>VIEW_APP</code> access for an application
  1085. then the corresponding report will be filtered as described in
  1086. {@link #getApplicationReport(ApplicationId)}.
  1087. </p>
  1088. @param applicationStates
  1089. @return a list of reports of applications
  1090. @throws YarnException
  1091. @throws IOException]]>
  1092. </doc>
  1093. </method>
  1094. <method name="getApplications" return="java.util.List"
  1095. abstract="true" native="false" synchronized="false"
  1096. static="false" final="false" visibility="public"
  1097. deprecated="not deprecated">
  1098. <param name="applicationTypes" type="java.util.Set"/>
  1099. <param name="applicationStates" type="java.util.EnumSet"/>
  1100. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1101. <exception name="IOException" type="java.io.IOException"/>
  1102. <doc>
  1103. <![CDATA[<p>
  1104. Get a report (ApplicationReport) of Applications matching the given
  1105. application types and application states in the cluster.
  1106. </p>
  1107. <p>
  1108. If the user does not have <code>VIEW_APP</code> access for an application
  1109. then the corresponding report will be filtered as described in
  1110. {@link #getApplicationReport(ApplicationId)}.
  1111. </p>
  1112. @param applicationTypes
  1113. @param applicationStates
  1114. @return a list of reports of applications
  1115. @throws YarnException
  1116. @throws IOException]]>
  1117. </doc>
  1118. </method>
  1119. <method name="getYarnClusterMetrics" return="org.apache.hadoop.yarn.api.records.YarnClusterMetrics"
  1120. abstract="true" native="false" synchronized="false"
  1121. static="false" final="false" visibility="public"
  1122. deprecated="not deprecated">
  1123. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1124. <exception name="IOException" type="java.io.IOException"/>
  1125. <doc>
  1126. <![CDATA[<p>
  1127. Get metrics ({@link YarnClusterMetrics}) about the cluster.
  1128. </p>
  1129. @return cluster metrics
  1130. @throws YarnException
  1131. @throws IOException]]>
  1132. </doc>
  1133. </method>
  1134. <method name="getNodeReports" return="java.util.List"
  1135. abstract="true" native="false" synchronized="false"
  1136. static="false" final="false" visibility="public"
  1137. deprecated="not deprecated">
  1138. <param name="states" type="org.apache.hadoop.yarn.api.records.NodeState[]"/>
  1139. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1140. <exception name="IOException" type="java.io.IOException"/>
  1141. <doc>
  1142. <![CDATA[<p>
  1143. Get a report of nodes ({@link NodeReport}) in the cluster.
  1144. </p>
  1145. @param states The {@link NodeState}s to filter on. If no filter states are
  1146. given, nodes in all states will be returned.
  1147. @return A list of node reports
  1148. @throws YarnException
  1149. @throws IOException]]>
  1150. </doc>
  1151. </method>
  1152. <method name="getRMDelegationToken" return="org.apache.hadoop.yarn.api.records.Token"
  1153. abstract="true" native="false" synchronized="false"
  1154. static="false" final="false" visibility="public"
  1155. deprecated="not deprecated">
  1156. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  1157. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1158. <exception name="IOException" type="java.io.IOException"/>
  1159. <doc>
  1160. <![CDATA[<p>
  1161. Get a delegation token so as to be able to talk to YARN using those tokens.
  1162. @param renewer
  1163. Address of the renewer who can renew these tokens when needed by
  1164. securely talking to YARN.
  1165. @return a delegation token ({@link Token}) that can be used to
  1166. talk to YARN
  1167. @throws YarnException
  1168. @throws IOException]]>
  1169. </doc>
  1170. </method>
  1171. <method name="getQueueInfo" return="org.apache.hadoop.yarn.api.records.QueueInfo"
  1172. abstract="true" native="false" synchronized="false"
  1173. static="false" final="false" visibility="public"
  1174. deprecated="not deprecated">
  1175. <param name="queueName" type="java.lang.String"/>
  1176. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1177. <exception name="IOException" type="java.io.IOException"/>
  1178. <doc>
  1179. <![CDATA[<p>
  1180. Get information ({@link QueueInfo}) about a given <em>queue</em>.
  1181. </p>
  1182. @param queueName
  1183. Name of the queue whose information is needed
  1184. @return queue information
  1185. @throws YarnException
  1186. in case of errors or if YARN rejects the request due to
  1187. access-control restrictions.
  1188. @throws IOException]]>
  1189. </doc>
  1190. </method>
  1191. <method name="getAllQueues" return="java.util.List"
  1192. abstract="true" native="false" synchronized="false"
  1193. static="false" final="false" visibility="public"
  1194. deprecated="not deprecated">
  1195. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1196. <exception name="IOException" type="java.io.IOException"/>
  1197. <doc>
  1198. <![CDATA[<p>
  1199. Get information ({@link QueueInfo}) about all queues, recursively if there
  1200. is a hierarchy
  1201. </p>
  1202. @return a list of queue-information for all queues
  1203. @throws YarnException
  1204. @throws IOException]]>
  1205. </doc>
  1206. </method>
  1207. <method name="getRootQueueInfos" return="java.util.List"
  1208. abstract="true" native="false" synchronized="false"
  1209. static="false" final="false" visibility="public"
  1210. deprecated="not deprecated">
  1211. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1212. <exception name="IOException" type="java.io.IOException"/>
  1213. <doc>
  1214. <![CDATA[<p>
  1215. Get information ({@link QueueInfo}) about top level queues.
  1216. </p>
  1217. @return a list of queue-information for all the top-level queues
  1218. @throws YarnException
  1219. @throws IOException]]>
  1220. </doc>
  1221. </method>
  1222. <method name="getChildQueueInfos" return="java.util.List"
  1223. abstract="true" native="false" synchronized="false"
  1224. static="false" final="false" visibility="public"
  1225. deprecated="not deprecated">
  1226. <param name="parent" type="java.lang.String"/>
  1227. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1228. <exception name="IOException" type="java.io.IOException"/>
  1229. <doc>
  1230. <![CDATA[<p>
  1231. Get information ({@link QueueInfo}) about all the immediate children queues
  1232. of the given queue
  1233. </p>
  1234. @param parent
  1235. Name of the queue whose child-queues' information is needed
  1236. @return a list of queue-information for all queues who are direct children
  1237. of the given parent queue.
  1238. @throws YarnException
  1239. @throws IOException]]>
  1240. </doc>
  1241. </method>
  1242. <method name="getQueueAclsInfo" return="java.util.List"
  1243. abstract="true" native="false" synchronized="false"
  1244. static="false" final="false" visibility="public"
  1245. deprecated="not deprecated">
  1246. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1247. <exception name="IOException" type="java.io.IOException"/>
  1248. <doc>
  1249. <![CDATA[<p>
  1250. Get information about <em>acls</em> for <em>current user</em> on all the
  1251. existing queues.
  1252. </p>
  1253. @return a list of queue acls ({@link QueueUserACLInfo}) for
  1254. <em>current user</em>
  1255. @throws YarnException
  1256. @throws IOException]]>
  1257. </doc>
  1258. </method>
  1259. <method name="getApplicationAttemptReport" return="org.apache.hadoop.yarn.api.records.ApplicationAttemptReport"
  1260. abstract="true" native="false" synchronized="false"
  1261. static="false" final="false" visibility="public"
  1262. deprecated="not deprecated">
  1263. <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
  1264. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1265. <exception name="IOException" type="java.io.IOException"/>
  1266. <doc>
  1267. <![CDATA[<p>
  1268. Get a report of the given ApplicationAttempt.
  1269. </p>
  1270. <p>
  1271. In secure mode, <code>YARN</code> verifies access to the application, queue
  1272. etc. before accepting the request.
  1273. </p>
  1274. @param applicationAttemptId
  1275. {@link ApplicationAttemptId} of the application attempt that needs
  1276. a report
  1277. @return application attempt report
  1278. @throws YarnException
  1279. @throws {@link ApplicationAttemptNotFoundException} if application attempt
  1280. not found
  1281. @throws IOException]]>
  1282. </doc>
  1283. </method>
  1284. <method name="getApplicationAttempts" return="java.util.List"
  1285. abstract="true" native="false" synchronized="false"
  1286. static="false" final="false" visibility="public"
  1287. deprecated="not deprecated">
  1288. <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  1289. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1290. <exception name="IOException" type="java.io.IOException"/>
  1291. <doc>
  1292. <![CDATA[<p>
  1293. Get a report of all (ApplicationAttempts) of Application in the cluster.
  1294. </p>
  1295. @param applicationId
  1296. @return a list of reports for all application attempts for specified
  1297. application.
  1298. @throws YarnException
  1299. @throws IOException]]>
  1300. </doc>
  1301. </method>
  1302. <method name="getContainerReport" return="org.apache.hadoop.yarn.api.records.ContainerReport"
  1303. abstract="true" native="false" synchronized="false"
  1304. static="false" final="false" visibility="public"
  1305. deprecated="not deprecated">
  1306. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  1307. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1308. <exception name="IOException" type="java.io.IOException"/>
  1309. <doc>
  1310. <![CDATA[<p>
  1311. Get a report of the given Container.
  1312. </p>
  1313. <p>
  1314. In secure mode, <code>YARN</code> verifies access to the application, queue
  1315. etc. before accepting the request.
  1316. </p>
  1317. @param containerId
  1318. {@link ContainerId} of the container that needs a report
  1319. @return container report
  1320. @throws YarnException
  1321. @throws {@link ContainerNotFoundException} if container not found.
  1322. @throws IOException]]>
  1323. </doc>
  1324. </method>
  1325. <method name="getContainers" return="java.util.List"
  1326. abstract="true" native="false" synchronized="false"
  1327. static="false" final="false" visibility="public"
  1328. deprecated="not deprecated">
  1329. <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
  1330. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1331. <exception name="IOException" type="java.io.IOException"/>
  1332. <doc>
  1333. <![CDATA[<p>
  1334. Get a report of all (Containers) of ApplicationAttempt in the cluster.
  1335. </p>
  1336. @param applicationAttemptId
  1337. @return a list of reports of all containers for specified application
  1338. attempts
  1339. @throws YarnException
  1340. @throws IOException]]>
  1341. </doc>
  1342. </method>
  1343. <method name="moveApplicationAcrossQueues"
  1344. abstract="true" native="false" synchronized="false"
  1345. static="false" final="false" visibility="public"
  1346. deprecated="not deprecated">
  1347. <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  1348. <param name="queue" type="java.lang.String"/>
  1349. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1350. <exception name="IOException" type="java.io.IOException"/>
  1351. <doc>
  1352. <![CDATA[<p>
  1353. Attempts to move the given application to the given queue.
  1354. </p>
  1355. @param appId
  1356. Application to move.
  1357. @param queue
  1358. Queue to place it in to.
  1359. @throws YarnException
  1360. @throws IOException]]>
  1361. </doc>
  1362. </method>
  1363. <method name="submitReservation" return="org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionResponse"
  1364. abstract="true" native="false" synchronized="false"
  1365. static="false" final="false" visibility="public"
  1366. deprecated="not deprecated">
  1367. <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest"/>
  1368. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1369. <exception name="IOException" type="java.io.IOException"/>
  1370. <doc>
  1371. <![CDATA[<p>
  1372. The interface used by clients to submit a new reservation to the
  1373. {@code ResourceManager}.
  1374. </p>
  1375. <p>
  1376. The client packages all details of its request in a
  1377. {@link ReservationSubmissionRequest} object. This contains information
  1378. about the amount of capacity, temporal constraints, and gang needs.
  1379. Furthermore, the reservation might be composed of multiple stages, with
  1380. ordering dependencies among them.
  1381. </p>
  1382. <p>
  1383. In order to respond, a new admission control component in the
  1384. {@code ResourceManager} performs an analysis of the resources that have
  1385. been committed over the period of time the user is requesting, verify that
  1386. the user requests can be fulfilled, and that it respect a sharing policy
  1387. (e.g., {@code CapacityOverTimePolicy}). Once it has positively determined
  1388. that the ReservationRequest is satisfiable the {@code ResourceManager}
  1389. answers with a {@link ReservationSubmissionResponse} that includes a
  1390. {@link ReservationId}. Upon failure to find a valid allocation the response
  1391. is an exception with the message detailing the reason of failure.
  1392. </p>
  1393. <p>
  1394. The semantics guarantees that the {@link ReservationId} returned,
  1395. corresponds to a valid reservation existing in the time-range request by
  1396. the user. The amount of capacity dedicated to such reservation can vary
  1397. overtime, depending of the allocation that has been determined. But it is
  1398. guaranteed to satisfy all the constraint expressed by the user in the
  1399. {@link ReservationDefinition}
  1400. </p>
  1401. @param request request to submit a new Reservation
  1402. @return response contains the {@link ReservationId} on accepting the
  1403. submission
  1404. @throws YarnException if the reservation cannot be created successfully
  1405. @throws IOException]]>
  1406. </doc>
  1407. </method>
  1408. <method name="updateReservation" return="org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateResponse"
  1409. abstract="true" native="false" synchronized="false"
  1410. static="false" final="false" visibility="public"
  1411. deprecated="not deprecated">
  1412. <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateRequest"/>
  1413. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1414. <exception name="IOException" type="java.io.IOException"/>
  1415. <doc>
  1416. <![CDATA[<p>
  1417. The interface used by clients to update an existing Reservation. This is
  1418. referred to as a re-negotiation process, in which a user that has
  1419. previously submitted a Reservation.
  1420. </p>
  1421. <p>
  1422. The allocation is attempted by virtually substituting all previous
  1423. allocations related to this Reservation with new ones, that satisfy the new
  1424. {@link ReservationDefinition}. Upon success the previous allocation is
  1425. atomically substituted by the new one, and on failure (i.e., if the system
  1426. cannot find a valid allocation for the updated request), the previous
  1427. allocation remains valid.
  1428. </p>
  1429. @param request to update an existing Reservation (the
  1430. {@link ReservationUpdateRequest} should refer to an existing valid
  1431. {@link ReservationId})
  1432. @return response empty on successfully updating the existing reservation
  1433. @throws YarnException if the request is invalid or reservation cannot be
  1434. updated successfully
  1435. @throws IOException]]>
  1436. </doc>
  1437. </method>
  1438. <method name="deleteReservation" return="org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteResponse"
  1439. abstract="true" native="false" synchronized="false"
  1440. static="false" final="false" visibility="public"
  1441. deprecated="not deprecated">
  1442. <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteRequest"/>
  1443. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1444. <exception name="IOException" type="java.io.IOException"/>
  1445. <doc>
  1446. <![CDATA[<p>
  1447. The interface used by clients to remove an existing Reservation.
  1448. </p>
  1449. @param request to remove an existing Reservation (the
  1450. {@link ReservationDeleteRequest} should refer to an existing valid
  1451. {@link ReservationId})
  1452. @return response empty on successfully deleting the existing reservation
  1453. @throws YarnException if the request is invalid or reservation cannot be
  1454. deleted successfully
  1455. @throws IOException]]>
  1456. </doc>
  1457. </method>
  1458. <method name="getNodeToLabels" return="java.util.Map"
  1459. abstract="true" native="false" synchronized="false"
  1460. static="false" final="false" visibility="public"
  1461. deprecated="not deprecated">
  1462. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1463. <exception name="IOException" type="java.io.IOException"/>
  1464. <doc>
  1465. <![CDATA[<p>
  1466. The interface used by client to get node to labels mappings in existing cluster
  1467. </p>
  1468. @return node to labels mappings
  1469. @throws YarnException
  1470. @throws IOException]]>
  1471. </doc>
  1472. </method>
  1473. <method name="getClusterNodeLabels" return="java.util.Set"
  1474. abstract="true" native="false" synchronized="false"
  1475. static="false" final="false" visibility="public"
  1476. deprecated="not deprecated">
  1477. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1478. <exception name="IOException" type="java.io.IOException"/>
  1479. <doc>
  1480. <![CDATA[<p>
  1481. The interface used by client to get node labels in the cluster
  1482. </p>
  1483. @return cluster node labels collection
  1484. @throws YarnException
  1485. @throws IOException]]>
  1486. </doc>
  1487. </method>
  1488. </class>
  1489. <!-- end class org.apache.hadoop.yarn.client.api.YarnClient -->
  1490. <!-- start class org.apache.hadoop.yarn.client.api.YarnClientApplication -->
  1491. <class name="YarnClientApplication" extends="java.lang.Object"
  1492. abstract="false"
  1493. static="false" final="false" visibility="public"
  1494. deprecated="not deprecated">
  1495. <constructor name="YarnClientApplication" type="org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext"
  1496. static="false" final="false" visibility="public"
  1497. deprecated="not deprecated">
  1498. </constructor>
  1499. <method name="getNewApplicationResponse" return="org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse"
  1500. abstract="false" native="false" synchronized="false"
  1501. static="false" final="false" visibility="public"
  1502. deprecated="not deprecated">
  1503. </method>
  1504. <method name="getApplicationSubmissionContext" return="org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext"
  1505. abstract="false" native="false" synchronized="false"
  1506. static="false" final="false" visibility="public"
  1507. deprecated="not deprecated">
  1508. </method>
  1509. </class>
  1510. <!-- end class org.apache.hadoop.yarn.client.api.YarnClientApplication -->
  1511. </package>
  1512. <package name="org.apache.hadoop.yarn.client.api.async">
  1513. <!-- start class org.apache.hadoop.yarn.client.api.async.AMRMClientAsync -->
  1514. <class name="AMRMClientAsync" extends="org.apache.hadoop.service.AbstractService"
  1515. abstract="true"
  1516. static="false" final="false" visibility="public"
  1517. deprecated="not deprecated">
  1518. <constructor name="AMRMClientAsync" type="int, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"
  1519. static="false" final="false" visibility="protected"
  1520. deprecated="not deprecated">
  1521. </constructor>
  1522. <constructor name="AMRMClientAsync" type="org.apache.hadoop.yarn.client.api.AMRMClient, int, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"
  1523. static="false" final="false" visibility="protected"
  1524. deprecated="not deprecated">
  1525. </constructor>
  1526. <method name="createAMRMClientAsync" return="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync"
  1527. abstract="false" native="false" synchronized="false"
  1528. static="true" final="false" visibility="public"
  1529. deprecated="not deprecated">
  1530. <param name="intervalMs" type="int"/>
  1531. <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"/>
  1532. </method>
  1533. <method name="createAMRMClientAsync" return="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync"
  1534. abstract="false" native="false" synchronized="false"
  1535. static="true" final="false" visibility="public"
  1536. deprecated="not deprecated">
  1537. <param name="client" type="org.apache.hadoop.yarn.client.api.AMRMClient"/>
  1538. <param name="intervalMs" type="int"/>
  1539. <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"/>
  1540. </method>
  1541. <method name="setHeartbeatInterval"
  1542. abstract="false" native="false" synchronized="false"
  1543. static="false" final="false" visibility="public"
  1544. deprecated="not deprecated">
  1545. <param name="interval" type="int"/>
  1546. </method>
  1547. <method name="getMatchingRequests" return="java.util.List"
  1548. abstract="true" native="false" synchronized="false"
  1549. static="false" final="false" visibility="public"
  1550. deprecated="not deprecated">
  1551. <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
  1552. <param name="resourceName" type="java.lang.String"/>
  1553. <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
  1554. </method>
  1555. <method name="registerApplicationMaster" return="org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse"
  1556. abstract="true" native="false" synchronized="false"
  1557. static="false" final="false" visibility="public"
  1558. deprecated="not deprecated">
  1559. <param name="appHostName" type="java.lang.String"/>
  1560. <param name="appHostPort" type="int"/>
  1561. <param name="appTrackingUrl" type="java.lang.String"/>
  1562. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1563. <exception name="IOException" type="java.io.IOException"/>
  1564. <doc>
  1565. <![CDATA[Registers this application master with the resource manager. On successful
  1566. registration, starts the heartbeating thread.
  1567. @throws YarnException
  1568. @throws IOException]]>
  1569. </doc>
  1570. </method>
  1571. <method name="unregisterApplicationMaster"
  1572. abstract="true" native="false" synchronized="false"
  1573. static="false" final="false" visibility="public"
  1574. deprecated="not deprecated">
  1575. <param name="appStatus" type="org.apache.hadoop.yarn.api.records.FinalApplicationStatus"/>
  1576. <param name="appMessage" type="java.lang.String"/>
  1577. <param name="appTrackingUrl" type="java.lang.String"/>
  1578. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1579. <exception name="IOException" type="java.io.IOException"/>
  1580. <doc>
  1581. <![CDATA[Unregister the application master. This must be called in the end.
  1582. @param appStatus Success/Failure status of the master
  1583. @param appMessage Diagnostics message on failure
  1584. @param appTrackingUrl New URL to get master info
  1585. @throws YarnException
  1586. @throws IOException]]>
  1587. </doc>
  1588. </method>
  1589. <method name="addContainerRequest"
  1590. abstract="true" native="false" synchronized="false"
  1591. static="false" final="false" visibility="public"
  1592. deprecated="not deprecated">
  1593. <param name="req" type="T"/>
  1594. <doc>
  1595. <![CDATA[Request containers for resources before calling <code>allocate</code>
  1596. @param req Resource request]]>
  1597. </doc>
  1598. </method>
  1599. <method name="removeContainerRequest"
  1600. abstract="true" native="false" synchronized="false"
  1601. static="false" final="false" visibility="public"
  1602. deprecated="not deprecated">
  1603. <param name="req" type="T"/>
  1604. <doc>
  1605. <![CDATA[Remove previous container request. The previous container request may have
  1606. already been sent to the ResourceManager. So even after the remove request
  1607. the app must be prepared to receive an allocation for the previous request
  1608. even after the remove request
  1609. @param req Resource request]]>
  1610. </doc>
  1611. </method>
  1612. <method name="releaseAssignedContainer"
  1613. abstract="true" native="false" synchronized="false"
  1614. static="false" final="false" visibility="public"
  1615. deprecated="not deprecated">
  1616. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  1617. <doc>
  1618. <![CDATA[Release containers assigned by the Resource Manager. If the app cannot use
  1619. the container or wants to give up the container then it can release them.
  1620. The app needs to make new requests for the released resource capability if
  1621. it still needs it. eg. it released non-local resources
  1622. @param containerId]]>
  1623. </doc>
  1624. </method>
  1625. <method name="getAvailableResources" return="org.apache.hadoop.yarn.api.records.Resource"
  1626. abstract="true" native="false" synchronized="false"
  1627. static="false" final="false" visibility="public"
  1628. deprecated="not deprecated">
  1629. <doc>
  1630. <![CDATA[Get the currently available resources in the cluster.
  1631. A valid value is available after a call to allocate has been made
  1632. @return Currently available resources]]>
  1633. </doc>
  1634. </method>
  1635. <method name="getClusterNodeCount" return="int"
  1636. abstract="true" native="false" synchronized="false"
  1637. static="false" final="false" visibility="public"
  1638. deprecated="not deprecated">
  1639. <doc>
  1640. <![CDATA[Get the current number of nodes in the cluster.
  1641. A valid values is available after a call to allocate has been made
  1642. @return Current number of nodes in the cluster]]>
  1643. </doc>
  1644. </method>
  1645. <method name="waitFor"
  1646. abstract="false" native="false" synchronized="false"
  1647. static="false" final="false" visibility="public"
  1648. deprecated="not deprecated">
  1649. <param name="check" type="com.google.common.base.Supplier"/>
  1650. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  1651. <doc>
  1652. <![CDATA[Wait for <code>check</code> to return true for each 1000 ms.
  1653. See also {@link #waitFor(com.google.common.base.Supplier, int)}
  1654. and {@link #waitFor(com.google.common.base.Supplier, int, int)}
  1655. @param check]]>
  1656. </doc>
  1657. </method>
  1658. <method name="waitFor"
  1659. abstract="false" native="false" synchronized="false"
  1660. static="false" final="false" visibility="public"
  1661. deprecated="not deprecated">
  1662. <param name="check" type="com.google.common.base.Supplier"/>
  1663. <param name="checkEveryMillis" type="int"/>
  1664. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  1665. <doc>
  1666. <![CDATA[Wait for <code>check</code> to return true for each
  1667. <code>checkEveryMillis</code> ms.
  1668. See also {@link #waitFor(com.google.common.base.Supplier, int, int)}
  1669. @param check user defined checker
  1670. @param checkEveryMillis interval to call <code>check</code>]]>
  1671. </doc>
  1672. </method>
  1673. <method name="waitFor"
  1674. abstract="false" native="false" synchronized="false"
  1675. static="false" final="false" visibility="public"
  1676. deprecated="not deprecated">
  1677. <param name="check" type="com.google.common.base.Supplier"/>
  1678. <param name="checkEveryMillis" type="int"/>
  1679. <param name="logInterval" type="int"/>
  1680. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  1681. <doc>
  1682. <![CDATA[Wait for <code>check</code> to return true for each
  1683. <code>checkEveryMillis</code> ms. In the main loop, this method will log
  1684. the message "waiting in main loop" for each <code>logInterval</code> times
  1685. iteration to confirm the thread is alive.
  1686. @param check user defined checker
  1687. @param checkEveryMillis interval to call <code>check</code>
  1688. @param logInterval interval to log for each]]>
  1689. </doc>
  1690. </method>
  1691. <field name="client" type="org.apache.hadoop.yarn.client.api.AMRMClient"
  1692. transient="false" volatile="false"
  1693. static="false" final="true" visibility="protected"
  1694. deprecated="not deprecated">
  1695. </field>
  1696. <field name="handler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"
  1697. transient="false" volatile="false"
  1698. static="false" final="true" visibility="protected"
  1699. deprecated="not deprecated">
  1700. </field>
  1701. <field name="heartbeatIntervalMs" type="java.util.concurrent.atomic.AtomicInteger"
  1702. transient="false" volatile="false"
  1703. static="false" final="true" visibility="protected"
  1704. deprecated="not deprecated">
  1705. </field>
  1706. <doc>
  1707. <![CDATA[<code>AMRMClientAsync</code> handles communication with the ResourceManager
  1708. and provides asynchronous updates on events such as container allocations and
  1709. completions. It contains a thread that sends periodic heartbeats to the
  1710. ResourceManager.
  1711. It should be used by implementing a CallbackHandler:
  1712. <pre>
  1713. {@code
  1714. class MyCallbackHandler implements AMRMClientAsync.CallbackHandler {
  1715. public void onContainersAllocated(List<Container> containers) {
  1716. [run tasks on the containers]
  1717. }
  1718. public void onContainersCompleted(List<ContainerStatus> statuses) {
  1719. [update progress, check whether app is done]
  1720. }
  1721. public void onNodesUpdated(List<NodeReport> updated) {}
  1722. public void onReboot() {}
  1723. }
  1724. }
  1725. </pre>
  1726. The client's lifecycle should be managed similarly to the following:
  1727. <pre>
  1728. {@code
  1729. AMRMClientAsync asyncClient =
  1730. createAMRMClientAsync(appAttId, 1000, new MyCallbackhandler());
  1731. asyncClient.init(conf);
  1732. asyncClient.start();
  1733. RegisterApplicationMasterResponse response = asyncClient
  1734. .registerApplicationMaster(appMasterHostname, appMasterRpcPort,
  1735. appMasterTrackingUrl);
  1736. asyncClient.addContainerRequest(containerRequest);
  1737. [... wait for application to complete]
  1738. asyncClient.unregisterApplicationMaster(status, appMsg, trackingUrl);
  1739. asyncClient.stop();
  1740. }
  1741. </pre>]]>
  1742. </doc>
  1743. </class>
  1744. <!-- end class org.apache.hadoop.yarn.client.api.async.AMRMClientAsync -->
  1745. <!-- start interface org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler -->
  1746. <interface name="AMRMClientAsync.CallbackHandler" abstract="true"
  1747. static="true" final="false" visibility="public"
  1748. deprecated="not deprecated">
  1749. <method name="onContainersCompleted"
  1750. abstract="false" native="false" synchronized="false"
  1751. static="false" final="false" visibility="public"
  1752. deprecated="not deprecated">
  1753. <param name="statuses" type="java.util.List"/>
  1754. <doc>
  1755. <![CDATA[Called when the ResourceManager responds to a heartbeat with completed
  1756. containers. If the response contains both completed containers and
  1757. allocated containers, this will be called before containersAllocated.]]>
  1758. </doc>
  1759. </method>
  1760. <method name="onContainersAllocated"
  1761. abstract="false" native="false" synchronized="false"
  1762. static="false" final="false" visibility="public"
  1763. deprecated="not deprecated">
  1764. <param name="containers" type="java.util.List"/>
  1765. <doc>
  1766. <![CDATA[Called when the ResourceManager responds to a heartbeat with allocated
  1767. containers. If the response containers both completed containers and
  1768. allocated containers, this will be called after containersCompleted.]]>
  1769. </doc>
  1770. </method>
  1771. <method name="onShutdownRequest"
  1772. abstract="false" native="false" synchronized="false"
  1773. static="false" final="false" visibility="public"
  1774. deprecated="not deprecated">
  1775. <doc>
  1776. <![CDATA[Called when the ResourceManager wants the ApplicationMaster to shutdown
  1777. for being out of sync etc. The ApplicationMaster should not unregister
  1778. with the RM unless the ApplicationMaster wants to be the last attempt.]]>
  1779. </doc>
  1780. </method>
  1781. <method name="onNodesUpdated"
  1782. abstract="false" native="false" synchronized="false"
  1783. static="false" final="false" visibility="public"
  1784. deprecated="not deprecated">
  1785. <param name="updatedNodes" type="java.util.List"/>
  1786. <doc>
  1787. <![CDATA[Called when nodes tracked by the ResourceManager have changed in health,
  1788. availability etc.]]>
  1789. </doc>
  1790. </method>
  1791. <method name="getProgress" return="float"
  1792. abstract="false" native="false" synchronized="false"
  1793. static="false" final="false" visibility="public"
  1794. deprecated="not deprecated">
  1795. </method>
  1796. <method name="onError"
  1797. abstract="false" native="false" synchronized="false"
  1798. static="false" final="false" visibility="public"
  1799. deprecated="not deprecated">
  1800. <param name="e" type="java.lang.Throwable"/>
  1801. <doc>
  1802. <![CDATA[Called when error comes from RM communications as well as from errors in
  1803. the callback itself from the app. Calling
  1804. stop() is the recommended action.
  1805. @param e]]>
  1806. </doc>
  1807. </method>
  1808. </interface>
  1809. <!-- end interface org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler -->
  1810. <!-- start class org.apache.hadoop.yarn.client.api.async.NMClientAsync -->
  1811. <class name="NMClientAsync" extends="org.apache.hadoop.service.AbstractService"
  1812. abstract="true"
  1813. static="false" final="false" visibility="public"
  1814. deprecated="not deprecated">
  1815. <constructor name="NMClientAsync" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
  1816. static="false" final="false" visibility="protected"
  1817. deprecated="not deprecated">
  1818. </constructor>
  1819. <constructor name="NMClientAsync" type="java.lang.String, org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
  1820. static="false" final="false" visibility="protected"
  1821. deprecated="not deprecated">
  1822. </constructor>
  1823. <constructor name="NMClientAsync" type="java.lang.String, org.apache.hadoop.yarn.client.api.NMClient, org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
  1824. static="false" final="false" visibility="protected"
  1825. deprecated="not deprecated">
  1826. </constructor>
  1827. <method name="createNMClientAsync" return="org.apache.hadoop.yarn.client.api.async.NMClientAsync"
  1828. abstract="false" native="false" synchronized="false"
  1829. static="true" final="false" visibility="public"
  1830. deprecated="not deprecated">
  1831. <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"/>
  1832. </method>
  1833. <method name="startContainerAsync"
  1834. abstract="true" native="false" synchronized="false"
  1835. static="false" final="false" visibility="public"
  1836. deprecated="not deprecated">
  1837. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  1838. <param name="containerLaunchContext" type="org.apache.hadoop.yarn.api.records.ContainerLaunchContext"/>
  1839. </method>
  1840. <method name="stopContainerAsync"
  1841. abstract="true" native="false" synchronized="false"
  1842. static="false" final="false" visibility="public"
  1843. deprecated="not deprecated">
  1844. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  1845. <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
  1846. </method>
  1847. <method name="getContainerStatusAsync"
  1848. abstract="true" native="false" synchronized="false"
  1849. static="false" final="false" visibility="public"
  1850. deprecated="not deprecated">
  1851. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  1852. <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
  1853. </method>
  1854. <method name="getClient" return="org.apache.hadoop.yarn.client.api.NMClient"
  1855. abstract="false" native="false" synchronized="false"
  1856. static="false" final="false" visibility="public"
  1857. deprecated="not deprecated">
  1858. </method>
  1859. <method name="setClient"
  1860. abstract="false" native="false" synchronized="false"
  1861. static="false" final="false" visibility="public"
  1862. deprecated="not deprecated">
  1863. <param name="client" type="org.apache.hadoop.yarn.client.api.NMClient"/>
  1864. </method>
  1865. <method name="getCallbackHandler" return="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
  1866. abstract="false" native="false" synchronized="false"
  1867. static="false" final="false" visibility="public"
  1868. deprecated="not deprecated">
  1869. </method>
  1870. <method name="setCallbackHandler"
  1871. abstract="false" native="false" synchronized="false"
  1872. static="false" final="false" visibility="public"
  1873. deprecated="not deprecated">
  1874. <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"/>
  1875. </method>
  1876. <field name="client" type="org.apache.hadoop.yarn.client.api.NMClient"
  1877. transient="false" volatile="false"
  1878. static="false" final="false" visibility="protected"
  1879. deprecated="not deprecated">
  1880. </field>
  1881. <field name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
  1882. transient="false" volatile="false"
  1883. static="false" final="false" visibility="protected"
  1884. deprecated="not deprecated">
  1885. </field>
  1886. <doc>
  1887. <![CDATA[<code>NMClientAsync</code> handles communication with all the NodeManagers
  1888. and provides asynchronous updates on getting responses from them. It
  1889. maintains a thread pool to communicate with individual NMs where a number of
  1890. worker threads process requests to NMs by using {@link NMClientImpl}. The max
  1891. size of the thread pool is configurable through
  1892. {@link YarnConfiguration#NM_CLIENT_ASYNC_THREAD_POOL_MAX_SIZE}.
  1893. It should be used in conjunction with a CallbackHandler. For example
  1894. <pre>
  1895. {@code
  1896. class MyCallbackHandler implements NMClientAsync.CallbackHandler {
  1897. public void onContainerStarted(ContainerId containerId,
  1898. Map<String, ByteBuffer> allServiceResponse) {
  1899. [post process after the container is started, process the response]
  1900. }
  1901. public void onContainerStatusReceived(ContainerId containerId,
  1902. ContainerStatus containerStatus) {
  1903. [make use of the status of the container]
  1904. }
  1905. public void onContainerStopped(ContainerId containerId) {
  1906. [post process after the container is stopped]
  1907. }
  1908. public void onStartContainerError(
  1909. ContainerId containerId, Throwable t) {
  1910. [handle the raised exception]
  1911. }
  1912. public void onGetContainerStatusError(
  1913. ContainerId containerId, Throwable t) {
  1914. [handle the raised exception]
  1915. }
  1916. public void onStopContainerError(
  1917. ContainerId containerId, Throwable t) {
  1918. [handle the raised exception]
  1919. }
  1920. }
  1921. }
  1922. </pre>
  1923. The client's life-cycle should be managed like the following:
  1924. <pre>
  1925. {@code
  1926. NMClientAsync asyncClient =
  1927. NMClientAsync.createNMClientAsync(new MyCallbackhandler());
  1928. asyncClient.init(conf);
  1929. asyncClient.start();
  1930. asyncClient.startContainer(container, containerLaunchContext);
  1931. [... wait for container being started]
  1932. asyncClient.getContainerStatus(container.getId(), container.getNodeId(),
  1933. container.getContainerToken());
  1934. [... handle the status in the callback instance]
  1935. asyncClient.stopContainer(container.getId(), container.getNodeId(),
  1936. container.getContainerToken());
  1937. [... wait for container being stopped]
  1938. asyncClient.stop();
  1939. }
  1940. </pre>]]>
  1941. </doc>
  1942. </class>
  1943. <!-- end class org.apache.hadoop.yarn.client.api.async.NMClientAsync -->
  1944. <!-- start interface org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler -->
  1945. <interface name="NMClientAsync.CallbackHandler" abstract="true"
  1946. static="true" final="false" visibility="public"
  1947. deprecated="not deprecated">
  1948. <method name="onContainerStarted"
  1949. abstract="false" native="false" synchronized="false"
  1950. static="false" final="false" visibility="public"
  1951. deprecated="not deprecated">
  1952. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  1953. <param name="allServiceResponse" type="java.util.Map"/>
  1954. <doc>
  1955. <![CDATA[The API is called when <code>NodeManager</code> responds to indicate its
  1956. acceptance of the starting container request
  1957. @param containerId the Id of the container
  1958. @param allServiceResponse a Map between the auxiliary service names and
  1959. their outputs]]>
  1960. </doc>
  1961. </method>
  1962. <method name="onContainerStatusReceived"
  1963. abstract="false" native="false" synchronized="false"
  1964. static="false" final="false" visibility="public"
  1965. deprecated="not deprecated">
  1966. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  1967. <param name="containerStatus" type="org.apache.hadoop.yarn.api.records.ContainerStatus"/>
  1968. <doc>
  1969. <![CDATA[The API is called when <code>NodeManager</code> responds with the status
  1970. of the container
  1971. @param containerId the Id of the container
  1972. @param containerStatus the status of the container]]>
  1973. </doc>
  1974. </method>
  1975. <method name="onContainerStopped"
  1976. abstract="false" native="false" synchronized="false"
  1977. static="false" final="false" visibility="public"
  1978. deprecated="not deprecated">
  1979. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  1980. <doc>
  1981. <![CDATA[The API is called when <code>NodeManager</code> responds to indicate the
  1982. container is stopped.
  1983. @param containerId the Id of the container]]>
  1984. </doc>
  1985. </method>
  1986. <method name="onStartContainerError"
  1987. abstract="false" native="false" synchronized="false"
  1988. static="false" final="false" visibility="public"
  1989. deprecated="not deprecated">
  1990. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  1991. <param name="t" type="java.lang.Throwable"/>
  1992. <doc>
  1993. <![CDATA[The API is called when an exception is raised in the process of
  1994. starting a container
  1995. @param containerId the Id of the container
  1996. @param t the raised exception]]>
  1997. </doc>
  1998. </method>
  1999. <method name="onGetContainerStatusError"
  2000. abstract="false" native="false" synchronized="false"
  2001. static="false" final="false" visibility="public"
  2002. deprecated="not deprecated">
  2003. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  2004. <param name="t" type="java.lang.Throwable"/>
  2005. <doc>
  2006. <![CDATA[The API is called when an exception is raised in the process of
  2007. querying the status of a container
  2008. @param containerId the Id of the container
  2009. @param t the raised exception]]>
  2010. </doc>
  2011. </method>
  2012. <method name="onStopContainerError"
  2013. abstract="false" native="false" synchronized="false"
  2014. static="false" final="false" visibility="public"
  2015. deprecated="not deprecated">
  2016. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  2017. <param name="t" type="java.lang.Throwable"/>
  2018. <doc>
  2019. <![CDATA[The API is called when an exception is raised in the process of
  2020. stopping a container
  2021. @param containerId the Id of the container
  2022. @param t the raised exception]]>
  2023. </doc>
  2024. </method>
  2025. <doc>
  2026. <![CDATA[<p>
  2027. The callback interface needs to be implemented by {@link NMClientAsync}
  2028. users. The APIs are called when responses from <code>NodeManager</code> are
  2029. available.
  2030. </p>
  2031. <p>
  2032. Once a callback happens, the users can chose to act on it in blocking or
  2033. non-blocking manner. If the action on callback is done in a blocking
  2034. manner, some of the threads performing requests on NodeManagers may get
  2035. blocked depending on how many threads in the pool are busy.
  2036. </p>
  2037. <p>
  2038. The implementation of the callback function should not throw the
  2039. unexpected exception. Otherwise, {@link NMClientAsync} will just
  2040. catch, log and then ignore it.
  2041. </p>]]>
  2042. </doc>
  2043. </interface>
  2044. <!-- end interface org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler -->
  2045. </package>
  2046. <package name="org.apache.hadoop.yarn.client.api.async.impl">
  2047. <!-- start class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEvent -->
  2048. <class name="NMClientAsyncImpl.ContainerEvent" extends="org.apache.hadoop.yarn.event.AbstractEvent"
  2049. abstract="false"
  2050. static="true" final="false" visibility="protected"
  2051. deprecated="not deprecated">
  2052. <constructor name="NMClientAsyncImpl.ContainerEvent" type="org.apache.hadoop.yarn.api.records.ContainerId, org.apache.hadoop.yarn.api.records.NodeId, org.apache.hadoop.yarn.api.records.Token, org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEventType"
  2053. static="false" final="false" visibility="public"
  2054. deprecated="not deprecated">
  2055. </constructor>
  2056. <method name="getContainerId" return="org.apache.hadoop.yarn.api.records.ContainerId"
  2057. abstract="false" native="false" synchronized="false"
  2058. static="false" final="false" visibility="public"
  2059. deprecated="not deprecated">
  2060. </method>
  2061. <method name="getNodeId" return="org.apache.hadoop.yarn.api.records.NodeId"
  2062. abstract="false" native="false" synchronized="false"
  2063. static="false" final="false" visibility="public"
  2064. deprecated="not deprecated">
  2065. </method>
  2066. <method name="getContainerToken" return="org.apache.hadoop.yarn.api.records.Token"
  2067. abstract="false" native="false" synchronized="false"
  2068. static="false" final="false" visibility="public"
  2069. deprecated="not deprecated">
  2070. </method>
  2071. </class>
  2072. <!-- end class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEvent -->
  2073. <!-- start class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEventProcessor -->
  2074. <class name="NMClientAsyncImpl.ContainerEventProcessor" extends="java.lang.Object"
  2075. abstract="false"
  2076. static="false" final="false" visibility="protected"
  2077. deprecated="not deprecated">
  2078. <implements name="java.lang.Runnable"/>
  2079. <constructor name="NMClientAsyncImpl.ContainerEventProcessor" type="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEvent"
  2080. static="false" final="false" visibility="public"
  2081. deprecated="not deprecated">
  2082. </constructor>
  2083. <method name="run"
  2084. abstract="false" native="false" synchronized="false"
  2085. static="false" final="false" visibility="public"
  2086. deprecated="not deprecated">
  2087. </method>
  2088. <field name="event" type="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEvent"
  2089. transient="false" volatile="false"
  2090. static="false" final="false" visibility="protected"
  2091. deprecated="not deprecated">
  2092. </field>
  2093. </class>
  2094. <!-- end class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEventProcessor -->
  2095. <!-- start class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEventType -->
  2096. <class name="NMClientAsyncImpl.ContainerEventType" extends="java.lang.Enum"
  2097. abstract="false"
  2098. static="true" final="true" visibility="protected"
  2099. deprecated="not deprecated">
  2100. <method name="values" return="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEventType[]"
  2101. abstract="false" native="false" synchronized="false"
  2102. static="true" final="false" visibility="public"
  2103. deprecated="not deprecated">
  2104. </method>
  2105. <method name="valueOf" return="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEventType"
  2106. abstract="false" native="false" synchronized="false"
  2107. static="true" final="false" visibility="public"
  2108. deprecated="not deprecated">
  2109. <param name="name" type="java.lang.String"/>
  2110. </method>
  2111. <doc>
  2112. <![CDATA[The type of the event of interacting with a container]]>
  2113. </doc>
  2114. </class>
  2115. <!-- end class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEventType -->
  2116. <!-- start class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerState -->
  2117. <class name="NMClientAsyncImpl.ContainerState" extends="java.lang.Enum"
  2118. abstract="false"
  2119. static="true" final="true" visibility="protected"
  2120. deprecated="not deprecated">
  2121. <method name="values" return="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerState[]"
  2122. abstract="false" native="false" synchronized="false"
  2123. static="true" final="false" visibility="public"
  2124. deprecated="not deprecated">
  2125. </method>
  2126. <method name="valueOf" return="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerState"
  2127. abstract="false" native="false" synchronized="false"
  2128. static="true" final="false" visibility="public"
  2129. deprecated="not deprecated">
  2130. <param name="name" type="java.lang.String"/>
  2131. </method>
  2132. </class>
  2133. <!-- end class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerState -->
  2134. <!-- start class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StartContainerEvent -->
  2135. <class name="NMClientAsyncImpl.StartContainerEvent" extends="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEvent"
  2136. abstract="false"
  2137. static="true" final="false" visibility="protected"
  2138. deprecated="not deprecated">
  2139. <constructor name="NMClientAsyncImpl.StartContainerEvent" type="org.apache.hadoop.yarn.api.records.Container, org.apache.hadoop.yarn.api.records.ContainerLaunchContext"
  2140. static="false" final="false" visibility="public"
  2141. deprecated="not deprecated">
  2142. </constructor>
  2143. <method name="getContainer" return="org.apache.hadoop.yarn.api.records.Container"
  2144. abstract="false" native="false" synchronized="false"
  2145. static="false" final="false" visibility="public"
  2146. deprecated="not deprecated">
  2147. </method>
  2148. <method name="getContainerLaunchContext" return="org.apache.hadoop.yarn.api.records.ContainerLaunchContext"
  2149. abstract="false" native="false" synchronized="false"
  2150. static="false" final="false" visibility="public"
  2151. deprecated="not deprecated">
  2152. </method>
  2153. </class>
  2154. <!-- end class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StartContainerEvent -->
  2155. <!-- start class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StatefulContainer -->
  2156. <class name="NMClientAsyncImpl.StatefulContainer" extends="java.lang.Object"
  2157. abstract="false"
  2158. static="true" final="false" visibility="protected"
  2159. deprecated="not deprecated">
  2160. <implements name="org.apache.hadoop.yarn.event.EventHandler"/>
  2161. <constructor name="NMClientAsyncImpl.StatefulContainer" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync, org.apache.hadoop.yarn.api.records.ContainerId"
  2162. static="false" final="false" visibility="public"
  2163. deprecated="not deprecated">
  2164. </constructor>
  2165. <method name="handle"
  2166. abstract="false" native="false" synchronized="false"
  2167. static="false" final="false" visibility="public"
  2168. deprecated="not deprecated">
  2169. <param name="event" type="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEvent"/>
  2170. </method>
  2171. <method name="getContainerId" return="org.apache.hadoop.yarn.api.records.ContainerId"
  2172. abstract="false" native="false" synchronized="false"
  2173. static="false" final="false" visibility="public"
  2174. deprecated="not deprecated">
  2175. </method>
  2176. <method name="getState" return="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerState"
  2177. abstract="false" native="false" synchronized="false"
  2178. static="false" final="false" visibility="public"
  2179. deprecated="not deprecated">
  2180. </method>
  2181. <field name="stateMachineFactory" type="org.apache.hadoop.yarn.state.StateMachineFactory"
  2182. transient="false" volatile="false"
  2183. static="true" final="true" visibility="protected"
  2184. deprecated="not deprecated">
  2185. </field>
  2186. </class>
  2187. <!-- end class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StatefulContainer -->
  2188. <!-- start class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StatefulContainer.OutOfOrderTransition -->
  2189. <class name="NMClientAsyncImpl.StatefulContainer.OutOfOrderTransition" extends="java.lang.Object"
  2190. abstract="false"
  2191. static="true" final="false" visibility="protected"
  2192. deprecated="not deprecated">
  2193. <implements name="org.apache.hadoop.yarn.state.SingleArcTransition"/>
  2194. <constructor name="NMClientAsyncImpl.StatefulContainer.OutOfOrderTransition"
  2195. static="false" final="false" visibility="protected"
  2196. deprecated="not deprecated">
  2197. </constructor>
  2198. <method name="transition"
  2199. abstract="false" native="false" synchronized="false"
  2200. static="false" final="false" visibility="public"
  2201. deprecated="not deprecated">
  2202. <param name="container" type="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StatefulContainer"/>
  2203. <param name="event" type="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEvent"/>
  2204. </method>
  2205. <field name="STOP_BEFORE_START_ERROR_MSG" type="java.lang.String"
  2206. transient="false" volatile="false"
  2207. static="true" final="true" visibility="protected"
  2208. deprecated="not deprecated">
  2209. </field>
  2210. </class>
  2211. <!-- end class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StatefulContainer.OutOfOrderTransition -->
  2212. <!-- start class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StatefulContainer.StartContainerTransition -->
  2213. <class name="NMClientAsyncImpl.StatefulContainer.StartContainerTransition" extends="java.lang.Object"
  2214. abstract="false"
  2215. static="true" final="false" visibility="protected"
  2216. deprecated="not deprecated">
  2217. <implements name="org.apache.hadoop.yarn.state.MultipleArcTransition"/>
  2218. <constructor name="NMClientAsyncImpl.StatefulContainer.StartContainerTransition"
  2219. static="false" final="false" visibility="protected"
  2220. deprecated="not deprecated">
  2221. </constructor>
  2222. <method name="transition" return="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerState"
  2223. abstract="false" native="false" synchronized="false"
  2224. static="false" final="false" visibility="public"
  2225. deprecated="not deprecated">
  2226. <param name="container" type="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StatefulContainer"/>
  2227. <param name="event" type="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEvent"/>
  2228. </method>
  2229. </class>
  2230. <!-- end class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StatefulContainer.StartContainerTransition -->
  2231. <!-- start class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StatefulContainer.StopContainerTransition -->
  2232. <class name="NMClientAsyncImpl.StatefulContainer.StopContainerTransition" extends="java.lang.Object"
  2233. abstract="false"
  2234. static="true" final="false" visibility="protected"
  2235. deprecated="not deprecated">
  2236. <implements name="org.apache.hadoop.yarn.state.MultipleArcTransition"/>
  2237. <constructor name="NMClientAsyncImpl.StatefulContainer.StopContainerTransition"
  2238. static="false" final="false" visibility="protected"
  2239. deprecated="not deprecated">
  2240. </constructor>
  2241. <method name="transition" return="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerState"
  2242. abstract="false" native="false" synchronized="false"
  2243. static="false" final="false" visibility="public"
  2244. deprecated="not deprecated">
  2245. <param name="container" type="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StatefulContainer"/>
  2246. <param name="event" type="org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.ContainerEvent"/>
  2247. </method>
  2248. </class>
  2249. <!-- end class org.apache.hadoop.yarn.client.api.async.impl.NMClientAsyncImpl.StatefulContainer.StopContainerTransition -->
  2250. </package>
  2251. <package name="org.apache.hadoop.yarn.client.api.impl">
  2252. <!-- start class org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy.ContainerManagementProtocolProxyData -->
  2253. <class name="ContainerManagementProtocolProxy.ContainerManagementProtocolProxyData" extends="java.lang.Object"
  2254. abstract="false"
  2255. static="false" final="false" visibility="public"
  2256. deprecated="not deprecated">
  2257. <constructor name="ContainerManagementProtocolProxy.ContainerManagementProtocolProxyData" type="org.apache.hadoop.yarn.ipc.YarnRPC, java.lang.String, org.apache.hadoop.yarn.api.records.ContainerId, org.apache.hadoop.yarn.api.records.Token"
  2258. static="false" final="false" visibility="public"
  2259. deprecated="not deprecated">
  2260. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  2261. </constructor>
  2262. <method name="getContainerManagementProtocol" return="org.apache.hadoop.yarn.api.ContainerManagementProtocol"
  2263. abstract="false" native="false" synchronized="false"
  2264. static="false" final="false" visibility="public"
  2265. deprecated="not deprecated">
  2266. </method>
  2267. </class>
  2268. <!-- end class org.apache.hadoop.yarn.client.api.impl.ContainerManagementProtocolProxy.ContainerManagementProtocolProxyData -->
  2269. <!-- start class org.apache.hadoop.yarn.client.api.impl.NMClientImpl.StartedContainer -->
  2270. <class name="NMClientImpl.StartedContainer" extends="java.lang.Object"
  2271. abstract="false"
  2272. static="true" final="false" visibility="protected"
  2273. deprecated="not deprecated">
  2274. <constructor name="NMClientImpl.StartedContainer" type="org.apache.hadoop.yarn.api.records.ContainerId, org.apache.hadoop.yarn.api.records.NodeId, org.apache.hadoop.yarn.api.records.Token"
  2275. static="false" final="false" visibility="public"
  2276. deprecated="not deprecated">
  2277. </constructor>
  2278. <method name="getContainerId" return="org.apache.hadoop.yarn.api.records.ContainerId"
  2279. abstract="false" native="false" synchronized="false"
  2280. static="false" final="false" visibility="public"
  2281. deprecated="not deprecated">
  2282. </method>
  2283. <method name="getNodeId" return="org.apache.hadoop.yarn.api.records.NodeId"
  2284. abstract="false" native="false" synchronized="false"
  2285. static="false" final="false" visibility="public"
  2286. deprecated="not deprecated">
  2287. </method>
  2288. </class>
  2289. <!-- end class org.apache.hadoop.yarn.client.api.impl.NMClientImpl.StartedContainer -->
  2290. </package>
  2291. <package name="org.apache.hadoop.yarn.client.cli">
  2292. <!-- start class org.apache.hadoop.yarn.client.cli.LogsCLI -->
  2293. <class name="LogsCLI" extends="org.apache.hadoop.conf.Configured"
  2294. abstract="false"
  2295. static="false" final="false" visibility="public"
  2296. deprecated="not deprecated">
  2297. <implements name="org.apache.hadoop.util.Tool"/>
  2298. <constructor name="LogsCLI"
  2299. static="false" final="false" visibility="public"
  2300. deprecated="not deprecated">
  2301. </constructor>
  2302. <method name="run" return="int"
  2303. abstract="false" native="false" synchronized="false"
  2304. static="false" final="false" visibility="public"
  2305. deprecated="not deprecated">
  2306. <param name="args" type="java.lang.String[]"/>
  2307. <exception name="Exception" type="java.lang.Exception"/>
  2308. </method>
  2309. <method name="createYarnClient" return="org.apache.hadoop.yarn.client.api.YarnClient"
  2310. abstract="false" native="false" synchronized="false"
  2311. static="false" final="false" visibility="protected"
  2312. deprecated="not deprecated">
  2313. </method>
  2314. <method name="main"
  2315. abstract="false" native="false" synchronized="false"
  2316. static="true" final="false" visibility="public"
  2317. deprecated="not deprecated">
  2318. <param name="args" type="java.lang.String[]"/>
  2319. <exception name="Exception" type="java.lang.Exception"/>
  2320. </method>
  2321. </class>
  2322. <!-- end class org.apache.hadoop.yarn.client.cli.LogsCLI -->
  2323. </package>
  2324. </api>