提交 70d8a6fa 编写于 作者: J Jesse Glick

Fixed capitalization.

上级 22c42a39
......@@ -55,7 +55,7 @@ import java.util.Collection;
* <p>
* Nodes provisioned from a cloud do not automatically get released just because it's created from {@link Cloud}.
* Doing so requires a use of {@link RetentionStrategy}. Instantiate your {@link Slave} subtype with something
* like {@link CloudSlaveRetentionstrategy} so that it gets automatically deleted after some idle time.
* like {@link CloudSlaveRetentionStrategy} so that it gets automatically deleted after some idle time.
*
* <h4>Freeing an external resource when a slave is removed</h4>
* <p>
......
......@@ -13,13 +13,13 @@ import java.util.logging.Logger;
* Default convenience implementation of {@link RetentionStrategy} for slaves provisioned from {@link Cloud}.
*
* If a slave is idle for 10 mins, this retention strategy will remove the slave. This can be used as-is for
* a {@link Node} provisioned by cloud to implement the auto-scaling semantics, it can be subtyped to twaeak
* the behaviour, or it can be used as an example.
* a {@link Node} provisioned by cloud to implement the auto-scaling semantics, it can be subtyped to tweak
* the behavior, or it can be used as an example.
*
* @author Kohsuke Kawaguchi
* @since 1.510
*/
public class CloudSlaveRetentionstrategy<T extends Computer> extends RetentionStrategy<T> {
public class CloudSlaveRetentionStrategy<T extends Computer> extends RetentionStrategy<T> {
@Override
public long check(T c) {
......@@ -69,7 +69,7 @@ public class CloudSlaveRetentionstrategy<T extends Computer> extends RetentionSt
}
// for debugging, it's convenient to be able to reduce this time
public static long TIMEOUT = Long.getLong(CloudSlaveRetentionstrategy.class.getName()+".timeout", TimeUnit2.MINUTES.toMillis(10));
public static long TIMEOUT = Long.getLong(CloudSlaveRetentionStrategy.class.getName()+".timeout", TimeUnit2.MINUTES.toMillis(10));
private static final Logger LOGGER = Logger.getLogger(CloudSlaveRetentionstrategy.class.getName());
private static final Logger LOGGER = Logger.getLogger(CloudSlaveRetentionStrategy.class.getName());
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册