public class ScheduledTasksApi extends Object
Constructor and Description |
---|
ScheduledTasksApi(hudson.EnvVars env,
hudson.FilePath pwd,
Charset charset,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
boolean quiet) |
Modifier and Type | Method and Description |
---|---|
void |
create(String taskName,
String command) |
void |
delete(String taskName) |
com.google.common.base.Optional<String> |
getStatus(String taskName) |
boolean |
isDefined(String taskName) |
boolean |
isRunning(String taskName) |
void |
run(String taskName) |
void |
run(String taskName,
String command)
Executes PowerShellCommand command using a scheduled task.
|
public ScheduledTasksApi(hudson.EnvVars env, hudson.FilePath pwd, Charset charset, hudson.Launcher launcher, hudson.model.TaskListener listener, boolean quiet)
public void create(String taskName, String command) throws IOException, InterruptedException
IOException
InterruptedException
public void run(String taskName, String command) throws IOException, InterruptedException
IOException
InterruptedException
public void run(String taskName) throws IOException, InterruptedException
IOException
InterruptedException
public boolean isRunning(String taskName) throws IOException, InterruptedException
IOException
InterruptedException
public boolean isDefined(String taskName) throws IOException, InterruptedException
IOException
InterruptedException
public void delete(String taskName) throws IOException, InterruptedException
IOException
InterruptedException
public com.google.common.base.Optional<String> getStatus(String taskName) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2004-2016. All Rights Reserved.