public class ScheduledJobKey extends Object implements Serializable
TODO: After removing Quartz, remove this class and use JobId
instead.
Constructor and Description |
---|
ScheduledJobKey(String jobId) |
ScheduledJobKey(String group,
String jobId) |
Modifier and Type | Method and Description |
---|---|
String |
asString()
Returns the key in the following format:
|
boolean |
equals(Object o) |
String |
getGroup() |
String |
getJobId() |
int |
hashCode() |
String |
toString() |
static ScheduledJobKey |
valueOf(org.quartz.JobDetail jobDetail) |
static ScheduledJobKey |
valueOf(com.atlassian.scheduler.config.JobId jobId) |
public ScheduledJobKey(String jobId)
public String getGroup()
public String getJobId()
public String asString()
{group}#{jobId}
If group or jobId is null, then it will be returned as a blank.
This may be used as a key into Bandana, or other String keyed map.
public static ScheduledJobKey valueOf(org.quartz.JobDetail jobDetail)
public static ScheduledJobKey valueOf(com.atlassian.scheduler.config.JobId jobId)
Copyright © 2003–2018 Atlassian. All rights reserved.