com.atlassian.jira.service
Interface JiraServiceContainer

All Superinterfaces:
JiraService, ObjectConfigurable, Runnable
All Known Implementing Classes:
JiraServiceContainerImpl, MockJiraServiceContainer, UnloadableJiraServiceContainer

@PublicApi
public interface JiraServiceContainer
extends JiraService

Proxies calls to JiraService & manages delay between calls.

See Also:
JiraService

Field Summary
 
Fields inherited from interface com.atlassian.jira.service.JiraService
NAME_COMPARATOR
 
Method Summary
 long getDelay()
           
 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 setDelay(long delay)
           
 void setLastRun()
          Deprecated. Since 6.2
 
Methods inherited from interface com.atlassian.jira.service.JiraService
destroy, getDescription, getName, init, isInternal, isUnique, run, setName
 
Methods inherited from interface com.atlassian.configurable.ObjectConfigurable
getDefaultProperty, getKey, getLongProperty, getObjectConfiguration, getProperties, getProperty, getTextProperty, hasProperty
 

Method Detail

getId

Long getId()

getDelay

long getDelay()

setDelay

void setDelay(long delay)

getLastRun

long getLastRun()

setLastRun

void setLastRun()
Deprecated. Since 6.2

Record when run.


isDueAt

boolean isDueAt(long time)
Is this service due to run at the specified time.

Parameters:
time - the time to check whether it is due.
Returns:
true if due.

isRunning

boolean isRunning()

getServiceClass

String getServiceClass()

getServiceClassObject

@Nullable
Class<? extends JiraService> getServiceClassObject()
Returns:
the Class object of the underlying service, or null if service could not be loaded
Since:
5.0

isUsable

boolean isUsable()

isLocalService

boolean isLocalService()
Returns true if in a clustered environment this service should run locally on every node.

Returns:
true if in a clustered environment this service should run locally on every node.
Since:
v6.3


Copyright © 2002-2015 Atlassian. All Rights Reserved.