@PublicApi public interface JiraServiceContainer extends JiraService
JiraService
NAME_COMPARATOR
Modifier and Type | Method and Description |
---|---|
String |
getCronExpression()
Get the cron expression.
|
long |
getDelay()
Get the delay time for this service.
|
Long |
getId() |
long |
getLastRun() |
String |
getServiceClass() |
Class<? extends JiraService> |
getServiceClassObject() |
boolean |
isDueAt(long time)
Is this service due to run at the specified time.
|
boolean |
isLocalService()
Returns true if in a clustered environment this service should run locally on every node.
|
boolean |
isRunning() |
boolean |
isUsable() |
void |
setCronExpression(String cron)
Set the cron expression.
|
void |
setDelay(long delay)
Set the delay time for this service.
|
void |
setLastRun()
Deprecated.
Since 6.2
|
destroy, getDescription, getName, init, init, isInternal, isUnique, run, setName
getDefaultProperty, getKey, getLongProperty, getObjectConfiguration, getProperties, getProperty, getTextProperty, hasProperty
Long getId()
long getDelay()
void setDelay(long delay)
String getCronExpression()
void setCronExpression(String cron)
cron
- Cron Expressionlong getLastRun()
void setLastRun()
boolean isDueAt(long time)
time
- the time to check whether it is due.boolean isRunning()
String getServiceClass()
@Nullable Class<? extends JiraService> getServiceClassObject()
boolean isUsable()
boolean isLocalService()
Copyright © 2002-2019 Atlassian. All Rights Reserved.