java.lang.Object | |
↳ | com.atlassian.jira.service.DefaultServiceManager |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.service.ServiceManager
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This will add a service configuration to the JIRA DB and the service to the list of services which are running with
an optional list of params.
| |||||||||||
This will add a service configuration to the JIRA DB and the service to the list of services which are running.
| |||||||||||
This will add a service configuration to the JIRA DB and the service to the list of services which are running.
| |||||||||||
This will add a service configuration to the JIRA DB and the service to the list of services which are running with
an optional list of params.
| |||||||||||
Quick way of telling whether a service with a specific id is registered or not.
| |||||||||||
This will update the service if a service with this id can be found.
| |||||||||||
This will update the service if a service by this name can be found.
| |||||||||||
Returns service schedule skipper
| |||||||||||
This will return a JiraServiceContainer for the provided id if one is registered otherwise it will return null.
| |||||||||||
This will return a JiraServiceContainer for the provided name if one is registered, otherwise this will return
null.
| |||||||||||
This gets all currently registered services with JIRA.
| |||||||||||
Gets the services that are ready for execution at a particular time.
| |||||||||||
Gets the services that can be managed by an specific user.
| |||||||||||
This will force a complete re-sync of the service cache with the values stored in the db.
| |||||||||||
This will update the in-memory cache with the values from the db for the service with the id if it can be resolved.
| |||||||||||
This will update the in-memory cache with the values from the db for the named service if it can be resolved.
| |||||||||||
This will remove a service from the db and cache and it will try to resolve the service by id.
| |||||||||||
This will remove a service from the db and cache and it will try to resolve the service by name.
| |||||||||||
Runs the service immediately.
| |||||||||||
This method wil be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.extension.Startable
| |||||||||||
From interface
com.atlassian.jira.service.ServiceManager
|
This will add a service configuration to the JIRA DB and the service to the list of services which are running with an optional list of params.
It is preferred to pass the actual Class rather than the class name when adding services to JIRA from plugins, because it avoids possible ClassLoader issues. See http://jira.atlassian.com/browse/JRA-18578.
name | the key this service is to be known by |
---|---|
serviceClassName | the class defining the service |
delay | how often the service should run in milliseconds |
params | Additional params to specify for the service |
This will add a service configuration to the JIRA DB and the service to the list of services which are running.
It is preferred to pass the actual Class rather than the class name when adding services to JIRA from plugins, because it avoids possible ClassLoader issues. See http://jira.atlassian.com/browse/JRA-18578.
name | the key this service is to be known by |
---|---|
serviceClassName | the class defining the service |
delay | how often the service should run in milliseconds |
This will add a service configuration to the JIRA DB and the service to the list of services which are running.
It is preferred to pass the actual Class rather than the class name when adding services to JIRA from plugins, because it avoids possible ClassLoader issues. See http://jira.atlassian.com/browse/JRA-18578.
name | the key this service is to be known by |
---|---|
serviceClass | the class defining the service |
delay | how often the service should run in milliseconds |
ServiceException |
---|
This will add a service configuration to the JIRA DB and the service to the list of services which are running with an optional list of params.
It is preferred to pass the actual Class rather than the class name when adding services to JIRA from plugins, because it avoids possible ClassLoader issues. See http://jira.atlassian.com/browse/JRA-18578.
name | the key this service is to be known by |
---|---|
serviceClass | the class defining the service |
delay | how often the service should run in milliseconds |
params | Additional params to specify for the service |
ServiceException |
---|
Quick way of telling whether a service with a specific id is registered or not.
id | service id |
---|
This will update the service if a service with this id can be found. The delay and the params will be updated.
id | the id of the service to find. |
---|---|
delay | the delay to set on the service in milliseconds |
params | the params to set on the service |
Exception |
---|
This will update the service if a service by this name can be found. The delay and the params will be updated.
name | the name of the service to find. |
---|---|
delay | the delay to set on the service in milliseconds |
params | the params to set on the service |
Exception |
---|
Returns service schedule skipper
This will return a JiraServiceContainer for the provided id if one is registered otherwise it will return null.
id | service id |
---|
Exception |
---|
This will return a JiraServiceContainer for the provided name if one is registered, otherwise this will return null.
name | the name of the JiraServiceContainer |
---|
Exception |
---|
This gets all currently registered services with JIRA. This is an unmodifiable Collections that is returned, modifications to the services map will be made as a side-effect of calling the edit/refresh/add/remove methods of this manager.
Gets the services that are ready for execution at a particular time.
time | the time to check for due services. |
---|
Gets the services that can be managed by an specific user.
user | The user in play. |
---|
This will force a complete re-sync of the service cache with the values stored in the db.
This will update the in-memory cache with the values from the db for the service with the id if it can be resolved.
id | the id of the service to find. |
---|
Exception |
---|
This will update the in-memory cache with the values from the db for the named service if it can be resolved.
name | the name of the service to find. |
---|
Exception |
---|
This will remove a service from the db and cache and it will try to resolve the service by id.
id | the id of the service to find. |
---|
Exception |
---|
This will remove a service from the db and cache and it will try to resolve the service by name.
name | the name of the service to find. |
---|
Exception |
---|
Runs the service immediately. This call returns once the job is submitted. It does not wait for the service to complete. In a clustered environment the service may run on any node in the cluster.
Exception |
---|
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.