@Service(name="job-creator") public class JobCreatorService extends Object implements org.glassfish.api.admin.JobCreator
JobCreator and is
used for creating Jobs| Constructor and Description |
|---|
JobCreatorService() |
| Modifier and Type | Method and Description |
|---|---|
org.glassfish.api.admin.Job |
createJob(String id,
String scope,
String name,
Subject subject,
boolean isManagedJob)
This will create a new job with the name of command and a new unused id for the job
|
File |
getJobsFile()
This returns the jobs file for commands
|
public org.glassfish.api.admin.Job createJob(String id, String scope, String name, Subject subject, boolean isManagedJob)
createJob in interface org.glassfish.api.admin.JobCreatorscope - The scope of the command or null if there is no scopename - The name of the commandpublic File getJobsFile()
Copyright © 2013. All Rights Reserved.