@Extension
public class JanitorialListener
extends hudson.slaves.ComputerListener
Constructor and Description |
---|
JanitorialListener() |
Modifier and Type | Method and Description |
---|---|
void |
onOnline(hudson.model.Computer c,
hudson.model.TaskListener listener)
Start the Janitor thread when the master node comes online
|
void |
startJanitor()
Start the Janitor Thread
|
public void onOnline(hudson.model.Computer c, hudson.model.TaskListener listener) throws IOException, InterruptedException
onOnline
in class hudson.slaves.ComputerListener
c
- Computer that is coming onlinelistener
- a task listenerIOException
- if an error occurs while bringing the janitor onlineInterruptedException
- if an error occurs while bringing the janitor onlinepublic void startJanitor()
Copyright © 2016–2018. All rights reserved.