File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\main\java\hudson\init\package-info.java.html

1 /*
2 * The MIT License
3 *
4 * Copyright (c) 2004-2009, Sun Microsystems, Inc.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24
25 /**
26 * Logic for Hudson startup.
27 *
28 * <p>
29 * Hudson's start up is based on the same idea as the modern Unix init mechanism like initng/upstart/SMF.
30 * It first builds a set of {@link Task}s that are units of the initialization work, and have them declare
31 * dependencies among themselves. For example, jobs are only loaded after all the plugins are initialized,
32 * and restoring the build queue requires all the jobs to be loaded.
33 *
34 * <p>
35 * Such micro-scopic dependencies are organized into a bigger directed acyclic graph, which is then executed
36 * via {@link Session}. During execution of the reactor, additional tasks can be discovred and added to
37 * the DAG. We use this additional indirection to:
38 *
39 * <ol>
40 * <li>Perform initialization in parallel where possible.
41 * <li>Provide progress report on where we are in the initialization.
42 * <li>Collect status of the initialization and their failures.
43 * </ol>
44 */
45 package hudson.init;
46
47 import org.jvnet.hudson.reactor.Task;