|
@@ -18,6 +18,8 @@
|
|
|
|
|
|
package org.apache.hadoop.yarn.api;
|
|
package org.apache.hadoop.yarn.api;
|
|
|
|
|
|
|
|
+import java.io.IOException;
|
|
|
|
+
|
|
import org.apache.hadoop.classification.InterfaceAudience.Public;
|
|
import org.apache.hadoop.classification.InterfaceAudience.Public;
|
|
import org.apache.hadoop.classification.InterfaceStability.Stable;
|
|
import org.apache.hadoop.classification.InterfaceStability.Stable;
|
|
import org.apache.hadoop.yarn.api.protocolrecords.GetContainerStatusRequest;
|
|
import org.apache.hadoop.yarn.api.protocolrecords.GetContainerStatusRequest;
|
|
@@ -68,11 +70,12 @@ public interface ContainerManager {
|
|
* @return empty response to indicate acceptance of the request
|
|
* @return empty response to indicate acceptance of the request
|
|
* or an exception
|
|
* or an exception
|
|
* @throws YarnRemoteException
|
|
* @throws YarnRemoteException
|
|
|
|
+ * @throws IOException
|
|
*/
|
|
*/
|
|
@Public
|
|
@Public
|
|
@Stable
|
|
@Stable
|
|
StartContainerResponse startContainer(StartContainerRequest request)
|
|
StartContainerResponse startContainer(StartContainerRequest request)
|
|
- throws YarnRemoteException;
|
|
|
|
|
|
+ throws YarnRemoteException, IOException;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>The <code>ApplicationMaster</code> requests a <code>NodeManager</code>
|
|
* <p>The <code>ApplicationMaster</code> requests a <code>NodeManager</code>
|
|
@@ -94,11 +97,12 @@ public interface ContainerManager {
|
|
* @return empty response to indicate acceptance of the request
|
|
* @return empty response to indicate acceptance of the request
|
|
* or an exception
|
|
* or an exception
|
|
* @throws YarnRemoteException
|
|
* @throws YarnRemoteException
|
|
|
|
+ * @throws IOException
|
|
*/
|
|
*/
|
|
@Public
|
|
@Public
|
|
@Stable
|
|
@Stable
|
|
StopContainerResponse stopContainer(StopContainerRequest request)
|
|
StopContainerResponse stopContainer(StopContainerRequest request)
|
|
- throws YarnRemoteException;
|
|
|
|
|
|
+ throws YarnRemoteException, IOException;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>The api used by the <code>ApplicationMaster</code> to request for
|
|
* <p>The api used by the <code>ApplicationMaster</code> to request for
|
|
@@ -118,9 +122,11 @@ public interface ContainerManager {
|
|
* @return response containing the <code>ContainerStatus</code> of the
|
|
* @return response containing the <code>ContainerStatus</code> of the
|
|
* container
|
|
* container
|
|
* @throws YarnRemoteException
|
|
* @throws YarnRemoteException
|
|
|
|
+ * @throws IOException
|
|
*/
|
|
*/
|
|
@Public
|
|
@Public
|
|
@Stable
|
|
@Stable
|
|
GetContainerStatusResponse getContainerStatus(
|
|
GetContainerStatusResponse getContainerStatus(
|
|
- GetContainerStatusRequest request) throws YarnRemoteException;
|
|
|
|
|
|
+ GetContainerStatusRequest request) throws YarnRemoteException,
|
|
|
|
+ IOException;
|
|
}
|
|
}
|