| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.7.0_131) on Fri Mar 10 00:30:08 UTC 2017 --> |
| <title>Protos.KillPolicy.Builder</title> |
| <meta name="date" content="2017-03-10"> |
| <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Protos.KillPolicy.Builder"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../org/apache/mesos/package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../index-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../org/apache/mesos/Protos.KillPolicy.html" title="class in org.apache.mesos"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../org/apache/mesos/Protos.KillPolicyOrBuilder.html" title="interface in org.apache.mesos"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?org/apache/mesos/Protos.KillPolicy.Builder.html" target="_top">Frames</a></li> |
| <li><a href="Protos.KillPolicy.Builder.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.mesos</div> |
| <h2 title="Class Protos.KillPolicy.Builder" class="title">Class Protos.KillPolicy.Builder</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li><any></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.mesos.Protos.KillPolicy.Builder</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="../../../org/apache/mesos/Protos.KillPolicyOrBuilder.html" title="interface in org.apache.mesos">Protos.KillPolicyOrBuilder</a></dd> |
| </dl> |
| <dl> |
| <dt>Enclosing class:</dt> |
| <dd><a href="../../../org/apache/mesos/Protos.KillPolicy.html" title="class in org.apache.mesos">Protos.KillPolicy</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public static final class <span class="strong">Protos.KillPolicy.Builder</span> |
| extends <any> |
| implements <a href="../../../org/apache/mesos/Protos.KillPolicyOrBuilder.html" title="interface in org.apache.mesos">Protos.KillPolicyOrBuilder</a></pre> |
| <div class="block">Protobuf type <code>mesos.KillPolicy</code> |
| |
| <pre> |
| |
| Describes a kill policy for a task. Currently does not express |
| different policies (e.g. hitting HTTP endpoints), only controls |
| how long to wait between graceful and forcible task kill: |
| graceful kill --------------> forcible kill |
| grace_period |
| Kill policies are best-effort, because machine failures / forcible |
| terminations may occur. |
| NOTE: For executor-less command-based tasks, the kill is performed |
| via sending a signal to the task process: SIGTERM for the graceful |
| kill and SIGKILL for the forcible kill. For the docker executor-less |
| tasks the grace period is passed to 'docker stop --time'. |
| </pre></div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.KillPolicy.html" title="class in org.apache.mesos">Protos.KillPolicy</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#build()">build</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.KillPolicy.html" title="class in org.apache.mesos">Protos.KillPolicy</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#buildPartial()">buildPartial</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#clear()">clear</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#clearGracePeriod()">clearGracePeriod</a></strong>()</code> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code></div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#clone()">clone</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.KillPolicy.html" title="class in org.apache.mesos">Protos.KillPolicy</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#getDefaultInstanceForType()">getDefaultInstanceForType</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static com.google.protobuf.Descriptors.Descriptor</code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#getDescriptor()">getDescriptor</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>com.google.protobuf.Descriptors.Descriptor</code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#getDescriptorForType()">getDescriptorForType</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.DurationInfo.html" title="class in org.apache.mesos">Protos.DurationInfo</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#getGracePeriod()">getGracePeriod</a></strong>()</code> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code></div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.DurationInfo.Builder.html" title="class in org.apache.mesos">Protos.DurationInfo.Builder</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#getGracePeriodBuilder()">getGracePeriodBuilder</a></strong>()</code> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code></div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.DurationInfoOrBuilder.html" title="interface in org.apache.mesos">Protos.DurationInfoOrBuilder</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#getGracePeriodOrBuilder()">getGracePeriodOrBuilder</a></strong>()</code> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code></div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#hasGracePeriod()">hasGracePeriod</a></strong>()</code> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code></div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable</code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#internalGetFieldAccessorTable()">internalGetFieldAccessorTable</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#isInitialized()">isInitialized</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#mergeFrom(com.google.protobuf.CodedInputStream,%20com.google.protobuf.ExtensionRegistryLite)">mergeFrom</a></strong>(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#mergeFrom(com.google.protobuf.Message)">mergeFrom</a></strong>(com.google.protobuf.Message other)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#mergeGracePeriod(org.apache.mesos.Protos.DurationInfo)">mergeGracePeriod</a></strong>(<a href="../../../org/apache/mesos/Protos.DurationInfo.html" title="class in org.apache.mesos">Protos.DurationInfo</a> value)</code> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code></div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#setGracePeriod(org.apache.mesos.Protos.DurationInfo.Builder)">setGracePeriod</a></strong>(<a href="../../../org/apache/mesos/Protos.DurationInfo.Builder.html" title="class in org.apache.mesos">Protos.DurationInfo.Builder</a> builderForValue)</code> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code></div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html#setGracePeriod(org.apache.mesos.Protos.DurationInfo)">setGracePeriod</a></strong>(<a href="../../../org/apache/mesos/Protos.DurationInfo.html" title="class in org.apache.mesos">Protos.DurationInfo</a> value)</code> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code></div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getDescriptor()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDescriptor</h4> |
| <pre>public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()</pre> |
| </li> |
| </ul> |
| <a name="internalGetFieldAccessorTable()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>internalGetFieldAccessorTable</h4> |
| <pre>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()</pre> |
| </li> |
| </ul> |
| <a name="clear()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>clear</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a> clear()</pre> |
| </li> |
| </ul> |
| <a name="clone()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>clone</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a> clone()</pre> |
| </li> |
| </ul> |
| <a name="getDescriptorForType()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDescriptorForType</h4> |
| <pre>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()</pre> |
| </li> |
| </ul> |
| <a name="getDefaultInstanceForType()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDefaultInstanceForType</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.KillPolicy.html" title="class in org.apache.mesos">Protos.KillPolicy</a> getDefaultInstanceForType()</pre> |
| </li> |
| </ul> |
| <a name="build()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>build</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.KillPolicy.html" title="class in org.apache.mesos">Protos.KillPolicy</a> build()</pre> |
| </li> |
| </ul> |
| <a name="buildPartial()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>buildPartial</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.KillPolicy.html" title="class in org.apache.mesos">Protos.KillPolicy</a> buildPartial()</pre> |
| </li> |
| </ul> |
| <a name="mergeFrom(com.google.protobuf.Message)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mergeFrom</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a> mergeFrom(com.google.protobuf.Message other)</pre> |
| </li> |
| </ul> |
| <a name="isInitialized()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isInitialized</h4> |
| <pre>public final boolean isInitialized()</pre> |
| </li> |
| </ul> |
| <a name="mergeFrom(com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mergeFrom</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a> mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException</pre> |
| <dl><dt><span class="strong">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd></dl> |
| </li> |
| </ul> |
| <a name="hasGracePeriod()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasGracePeriod</h4> |
| <pre>public boolean hasGracePeriod()</pre> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code> |
| |
| <pre> |
| The grace period specifies how long to wait before forcibly |
| killing the task. It is recommended to attempt to gracefully |
| kill the task (and send TASK_KILLING) to indicate that the |
| graceful kill is in progress. Once the grace period elapses, |
| if the task has not terminated, a forcible kill should occur. |
| The task should not assume that it will always be allotted |
| the full grace period. For example, the executor may be |
| shutdown more quickly by the agent, or failures / forcible |
| terminations may occur. |
| </pre></div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../org/apache/mesos/Protos.KillPolicyOrBuilder.html#hasGracePeriod()">hasGracePeriod</a></code> in interface <code><a href="../../../org/apache/mesos/Protos.KillPolicyOrBuilder.html" title="interface in org.apache.mesos">Protos.KillPolicyOrBuilder</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getGracePeriod()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getGracePeriod</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.DurationInfo.html" title="class in org.apache.mesos">Protos.DurationInfo</a> getGracePeriod()</pre> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code> |
| |
| <pre> |
| The grace period specifies how long to wait before forcibly |
| killing the task. It is recommended to attempt to gracefully |
| kill the task (and send TASK_KILLING) to indicate that the |
| graceful kill is in progress. Once the grace period elapses, |
| if the task has not terminated, a forcible kill should occur. |
| The task should not assume that it will always be allotted |
| the full grace period. For example, the executor may be |
| shutdown more quickly by the agent, or failures / forcible |
| terminations may occur. |
| </pre></div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../org/apache/mesos/Protos.KillPolicyOrBuilder.html#getGracePeriod()">getGracePeriod</a></code> in interface <code><a href="../../../org/apache/mesos/Protos.KillPolicyOrBuilder.html" title="interface in org.apache.mesos">Protos.KillPolicyOrBuilder</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setGracePeriod(org.apache.mesos.Protos.DurationInfo)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setGracePeriod</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a> setGracePeriod(<a href="../../../org/apache/mesos/Protos.DurationInfo.html" title="class in org.apache.mesos">Protos.DurationInfo</a> value)</pre> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code> |
| |
| <pre> |
| The grace period specifies how long to wait before forcibly |
| killing the task. It is recommended to attempt to gracefully |
| kill the task (and send TASK_KILLING) to indicate that the |
| graceful kill is in progress. Once the grace period elapses, |
| if the task has not terminated, a forcible kill should occur. |
| The task should not assume that it will always be allotted |
| the full grace period. For example, the executor may be |
| shutdown more quickly by the agent, or failures / forcible |
| terminations may occur. |
| </pre></div> |
| </li> |
| </ul> |
| <a name="setGracePeriod(org.apache.mesos.Protos.DurationInfo.Builder)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setGracePeriod</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a> setGracePeriod(<a href="../../../org/apache/mesos/Protos.DurationInfo.Builder.html" title="class in org.apache.mesos">Protos.DurationInfo.Builder</a> builderForValue)</pre> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code> |
| |
| <pre> |
| The grace period specifies how long to wait before forcibly |
| killing the task. It is recommended to attempt to gracefully |
| kill the task (and send TASK_KILLING) to indicate that the |
| graceful kill is in progress. Once the grace period elapses, |
| if the task has not terminated, a forcible kill should occur. |
| The task should not assume that it will always be allotted |
| the full grace period. For example, the executor may be |
| shutdown more quickly by the agent, or failures / forcible |
| terminations may occur. |
| </pre></div> |
| </li> |
| </ul> |
| <a name="mergeGracePeriod(org.apache.mesos.Protos.DurationInfo)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mergeGracePeriod</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a> mergeGracePeriod(<a href="../../../org/apache/mesos/Protos.DurationInfo.html" title="class in org.apache.mesos">Protos.DurationInfo</a> value)</pre> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code> |
| |
| <pre> |
| The grace period specifies how long to wait before forcibly |
| killing the task. It is recommended to attempt to gracefully |
| kill the task (and send TASK_KILLING) to indicate that the |
| graceful kill is in progress. Once the grace period elapses, |
| if the task has not terminated, a forcible kill should occur. |
| The task should not assume that it will always be allotted |
| the full grace period. For example, the executor may be |
| shutdown more quickly by the agent, or failures / forcible |
| terminations may occur. |
| </pre></div> |
| </li> |
| </ul> |
| <a name="clearGracePeriod()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>clearGracePeriod</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.KillPolicy.Builder.html" title="class in org.apache.mesos">Protos.KillPolicy.Builder</a> clearGracePeriod()</pre> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code> |
| |
| <pre> |
| The grace period specifies how long to wait before forcibly |
| killing the task. It is recommended to attempt to gracefully |
| kill the task (and send TASK_KILLING) to indicate that the |
| graceful kill is in progress. Once the grace period elapses, |
| if the task has not terminated, a forcible kill should occur. |
| The task should not assume that it will always be allotted |
| the full grace period. For example, the executor may be |
| shutdown more quickly by the agent, or failures / forcible |
| terminations may occur. |
| </pre></div> |
| </li> |
| </ul> |
| <a name="getGracePeriodBuilder()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getGracePeriodBuilder</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.DurationInfo.Builder.html" title="class in org.apache.mesos">Protos.DurationInfo.Builder</a> getGracePeriodBuilder()</pre> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code> |
| |
| <pre> |
| The grace period specifies how long to wait before forcibly |
| killing the task. It is recommended to attempt to gracefully |
| kill the task (and send TASK_KILLING) to indicate that the |
| graceful kill is in progress. Once the grace period elapses, |
| if the task has not terminated, a forcible kill should occur. |
| The task should not assume that it will always be allotted |
| the full grace period. For example, the executor may be |
| shutdown more quickly by the agent, or failures / forcible |
| terminations may occur. |
| </pre></div> |
| </li> |
| </ul> |
| <a name="getGracePeriodOrBuilder()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getGracePeriodOrBuilder</h4> |
| <pre>public <a href="../../../org/apache/mesos/Protos.DurationInfoOrBuilder.html" title="interface in org.apache.mesos">Protos.DurationInfoOrBuilder</a> getGracePeriodOrBuilder()</pre> |
| <div class="block"><code>optional .mesos.DurationInfo grace_period = 1;</code> |
| |
| <pre> |
| The grace period specifies how long to wait before forcibly |
| killing the task. It is recommended to attempt to gracefully |
| kill the task (and send TASK_KILLING) to indicate that the |
| graceful kill is in progress. Once the grace period elapses, |
| if the task has not terminated, a forcible kill should occur. |
| The task should not assume that it will always be allotted |
| the full grace period. For example, the executor may be |
| shutdown more quickly by the agent, or failures / forcible |
| terminations may occur. |
| </pre></div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../org/apache/mesos/Protos.KillPolicyOrBuilder.html#getGracePeriodOrBuilder()">getGracePeriodOrBuilder</a></code> in interface <code><a href="../../../org/apache/mesos/Protos.KillPolicyOrBuilder.html" title="interface in org.apache.mesos">Protos.KillPolicyOrBuilder</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../org/apache/mesos/package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../index-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../org/apache/mesos/Protos.KillPolicy.html" title="class in org.apache.mesos"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../org/apache/mesos/Protos.KillPolicyOrBuilder.html" title="interface in org.apache.mesos"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?org/apache/mesos/Protos.KillPolicy.Builder.html" target="_top">Frames</a></li> |
| <li><a href="Protos.KillPolicy.Builder.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |