public interface ServiceConfigStore
Modifier and Type | Method and Description |
---|---|
JiraServiceContainer |
addServiceConfig(String serviceName,
Class<? extends JiraService> serviceClass,
long serviceDelay)
Deprecated.
|
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.
|
void |
editServiceConfig(JiraServiceContainer config,
long delay,
Map<String,String[]> params)
Deprecated.
|
void |
editServiceConfig(JiraServiceContainer serviceContainer,
String cronExpression,
Map<String,String[]> params)
Edit the schedule and parameters for a service.
|
Collection<JiraServiceContainer> |
getAllServiceConfigs() |
JiraServiceContainer |
getServiceConfigForId(Long id) |
JiraServiceContainer |
getServiceConfigForName(String name) |
void |
removeServiceConfig(JiraServiceContainer config) |
@Deprecated JiraServiceContainer addServiceConfig(String serviceName, Class<? extends JiraService> serviceClass, long serviceDelay) throws ServiceException
serviceName
- The service name.serviceClass
- The JiraService class that we wish to add as a service.serviceDelay
- the service delay.ServiceException
- If there is any errors trying to add this Service.JiraServiceContainer addServiceConfig(String name, Class<? extends JiraService> serviceClass, String cronExpression, Long serviceDelay) throws ServiceException
name
- Service nameserviceClass
- Class implementing the servicecronExpression
- Cron expressionserviceDelay
- the service delay. Only used if the instance is downgraded to a JIRA version prior to 6.4ServiceException
@Deprecated void editServiceConfig(JiraServiceContainer config, long delay, Map<String,String[]> params) throws ServiceException
ServiceException
void editServiceConfig(JiraServiceContainer serviceContainer, String cronExpression, Map<String,String[]> params) throws ServiceException
serviceContainer
- The service containercronExpression
- Cron expressionparams
- Service parameter map.ServiceException
void removeServiceConfig(JiraServiceContainer config)
JiraServiceContainer getServiceConfigForId(Long id)
JiraServiceContainer getServiceConfigForName(String name)
Collection<JiraServiceContainer> getAllServiceConfigs()
Copyright © 2002-2019 Atlassian. All Rights Reserved.