public class OfBizServiceConfigStore extends Object implements ServiceConfigStore
| Constructor and Description |
|---|
OfBizServiceConfigStore(OfBizDelegator ofBizDelegator,
ComponentClassManager componentClassManager) |
| Modifier and Type | Method and Description |
|---|---|
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 serviceName,
Class<? extends JiraService> serviceClass,
String cronExpression,
Long serviceDelay)
Adds a new Service of the given class with the the given configuration.
|
void |
editServiceConfig(JiraServiceContainer serviceContainer,
long delay,
Map<String,String[]> params) |
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) |
public OfBizServiceConfigStore(OfBizDelegator ofBizDelegator, ComponentClassManager componentClassManager)
public JiraServiceContainer addServiceConfig(String serviceName, Class<? extends JiraService> serviceClass, long serviceDelay) throws ServiceException
ServiceConfigStoreaddServiceConfig in interface ServiceConfigStoreserviceName - 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.public JiraServiceContainer addServiceConfig(String serviceName, Class<? extends JiraService> serviceClass, String cronExpression, Long serviceDelay) throws ServiceException
ServiceConfigStoreaddServiceConfig in interface ServiceConfigStoreserviceName - 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.4ServiceExceptionpublic void editServiceConfig(JiraServiceContainer serviceContainer, String cronExpression, Map<String,String[]> params) throws ServiceException
ServiceConfigStoreeditServiceConfig in interface ServiceConfigStoreserviceContainer - The service containercronExpression - Cron expressionparams - Service parameter map.ServiceExceptionpublic void editServiceConfig(JiraServiceContainer serviceContainer, long delay, Map<String,String[]> params) throws ServiceException
editServiceConfig in interface ServiceConfigStoreServiceExceptionpublic void removeServiceConfig(JiraServiceContainer config)
removeServiceConfig in interface ServiceConfigStore@Nullable public JiraServiceContainer getServiceConfigForName(String name)
getServiceConfigForName in interface ServiceConfigStore@Nullable public JiraServiceContainer getServiceConfigForId(Long id)
getServiceConfigForId in interface ServiceConfigStorepublic Collection<JiraServiceContainer> getAllServiceConfigs()
getAllServiceConfigs in interface ServiceConfigStoreCopyright © 2002-2018 Atlassian. All Rights Reserved.