public interface

ServiceConfigStore

com.atlassian.jira.service.ServiceConfigStore
Known Indirect Subclasses

Class Overview

A store interface for the ServiceConfigs

Summary

Public Methods
@Deprecated JiraServiceContainer addServiceConfig(String serviceName, Class<? extends JiraService> serviceClass, long serviceDelay)
Adds a new Service of the given class with the the given configuration.
JiraServiceContainer addServiceConfig(String name, Class<? extends JiraService> serviceClass, String cronExpression, Long serviceDelay)
Adds a new Service of the given class with the the given configuration.
@Deprecated void editServiceConfig(JiraServiceContainer config, long delay, Map<StringString[]> params)
void editServiceConfig(JiraServiceContainer serviceContainer, String cronExpression, Map<StringString[]> params)
Edit the schedule and parameters for a service.
Collection<JiraServiceContainer> getAllServiceConfigs()
JiraServiceContainer getServiceConfigForId(Long id)
JiraServiceContainer getServiceConfigForName(String name)
void removeServiceConfig(JiraServiceContainer config)

Public Methods

@Deprecated public JiraServiceContainer addServiceConfig (String serviceName, Class<? extends JiraService> serviceClass, long serviceDelay)

Adds a new Service of the given class with the the given configuration.

Parameters
serviceName The service name.
serviceClass The JiraService class that we wish to add as a service.
serviceDelay the service delay.
Returns
  • JiraServiceContainer for this service.
Throws
ServiceException If there is any errors trying to add this Service.

public JiraServiceContainer addServiceConfig (String name, Class<? extends JiraService> serviceClass, String cronExpression, Long serviceDelay)

Adds a new Service of the given class with the the given configuration.

Parameters
name Service name
serviceClass Class implementing the service
cronExpression Cron expression
serviceDelay the service delay. Only used if the instance is downgraded to a JIRA version prior to 6.4
Returns
  • JiraServiceContainer for this service.

@Deprecated public void editServiceConfig (JiraServiceContainer config, long delay, Map<StringString[]> params)

public void editServiceConfig (JiraServiceContainer serviceContainer, String cronExpression, Map<StringString[]> params)

Edit the schedule and parameters for a service.

Parameters
serviceContainer The service container
cronExpression Cron expression
params Service parameter map.

public Collection<JiraServiceContainer> getAllServiceConfigs ()

public JiraServiceContainer getServiceConfigForId (Long id)

public JiraServiceContainer getServiceConfigForName (String name)

public void removeServiceConfig (JiraServiceContainer config)