
hudson.model.queue.FutureLoad Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hudson-core Show documentation
Show all versions of hudson-core Show documentation
Contains the core Hudson code and view files to render HTML.
The newest version!
/*******************************************************************************
*
* Copyright (c) 2010, InfraDNA, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*
*
*
*
*******************************************************************************/
package hudson.model.queue;
/**
* Estimated future load to Hudson.
*
* @author Kohsuke Kawaguchi
* @see LoadPredictor
*/
public final class FutureLoad {
/**
* When is this load expected to start?
*/
public final long startTime;
/**
* How many executors is this going to consume?
*/
public final int numExecutors;
/**
* How long is task expected to continue, in milliseconds?
*/
public final long duration;
public FutureLoad(long startTime, long duration, int numExecutors) {
this.startTime = startTime;
this.numExecutors = numExecutors;
this.duration = duration;
}
public String toString() {
return "startTime=" + startTime + ",#executors=" + numExecutors + ",duration=" + duration;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy