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
ServiceConfigStore
addServiceConfig
in interface ServiceConfigStore
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.public JiraServiceContainer addServiceConfig(String serviceName, Class<? extends JiraService> serviceClass, String cronExpression, Long serviceDelay) throws ServiceException
ServiceConfigStore
addServiceConfig
in interface ServiceConfigStore
serviceName
- 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
public void editServiceConfig(JiraServiceContainer serviceContainer, String cronExpression, Map<String,String[]> params) throws ServiceException
ServiceConfigStore
editServiceConfig
in interface ServiceConfigStore
serviceContainer
- The service containercronExpression
- Cron expressionparams
- Service parameter map.ServiceException
public void editServiceConfig(JiraServiceContainer serviceContainer, long delay, Map<String,String[]> params) throws ServiceException
editServiceConfig
in interface ServiceConfigStore
ServiceException
public 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 ServiceConfigStore
public Collection<JiraServiceContainer> getAllServiceConfigs()
getAllServiceConfigs
in interface ServiceConfigStore
Copyright © 2002-2023 Atlassian. All Rights Reserved.