public class IndexSnapshotService extends AbstractService
| Modifier and Type | Field and Description |
|---|---|
static String |
BACKUP_COUNT |
static int |
DEFAULT_COUNT |
protected static String |
DEFAULT_DATE_FORMAT |
static String |
SERVICE_KEY |
protected static String |
SERVICE_NAME |
log, name, SERVICE_EVENTNAME_COMPARATOR| Constructor and Description |
|---|
IndexSnapshotService(IndexPathManager indexPathManager,
JiraHome jiraHome,
IndexUtils indexUtils) |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Return the key of this object
|
ObjectConfiguration |
getObjectConfiguration()
Retrieves an object configuration object with properties that can be set
|
static String |
getServiceName() |
void |
init(com.opensymphony.module.propertyset.PropertySet props)
Initialise the service.
|
boolean |
isInternal()
By default, returns false.
|
boolean |
isUnique()
By default, services are not unique.
|
void |
run()
This method must be implemented in a subclass, and performs the functionality
that the service performs.
|
destroy, getDefaultProperty, getDescription, getLongProperty, getName, getObjectConfiguration, getProperties, getProperty, getTextProperty, hasProperty, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitprotected static final String SERVICE_NAME
public static final String BACKUP_COUNT
public static final int DEFAULT_COUNT
protected static final String DEFAULT_DATE_FORMAT
public static final String SERVICE_KEY
public IndexSnapshotService(IndexPathManager indexPathManager, JiraHome jiraHome, IndexUtils indexUtils)
public void init(com.opensymphony.module.propertyset.PropertySet props)
throws ObjectConfigurationException
JiraServiceAs the parameters are gained from the user's interaction with the website, it is not guaranteed to be called with the correct, or indeed with any parameters.
init() may be called multiple times during the services lifetime.
init in interface JiraServiceinit in class AbstractServiceprops - initialisation parametersObjectConfigurationException - in case of an error with initialisation parametersJiraService.init(PropertySet, long)public String getKey()
ObjectConfigurablegetKey in interface ObjectConfigurablegetKey in class AbstractServicepublic boolean isUnique()
AbstractServiceisUnique in interface JiraServiceisUnique in class AbstractServicepublic boolean isInternal()
AbstractServiceisInternal in interface JiraServiceisInternal in class AbstractServicepublic void run()
AbstractServicerun in interface JiraServicerun in interface Runnablerun in class AbstractServiceJiraService.init(com.opensymphony.module.propertyset.PropertySet)public ObjectConfiguration getObjectConfiguration() throws ObjectConfigurationException
ObjectConfigurableObjectConfigurationExceptionpublic static String getServiceName()
Copyright © 2002-2019 Atlassian. All Rights Reserved.