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_EVENT
NAME_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, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
protected 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
JiraService
As 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 JiraService
init
in class AbstractService
props
- initialisation parametersObjectConfigurationException
- in case of an error with initialisation parametersJiraService.init(PropertySet, long)
public String getKey()
ObjectConfigurable
getKey
in interface ObjectConfigurable
getKey
in class AbstractService
public boolean isUnique()
AbstractService
isUnique
in interface JiraService
isUnique
in class AbstractService
public boolean isInternal()
AbstractService
isInternal
in interface JiraService
isInternal
in class AbstractService
public void run()
AbstractService
run
in interface JiraService
run
in interface Runnable
run
in class AbstractService
JiraService.init(com.opensymphony.module.propertyset.PropertySet)
public ObjectConfiguration getObjectConfiguration() throws ObjectConfigurationException
ObjectConfigurable
ObjectConfigurationException
public static String getServiceName()
Copyright © 2002-2022 Atlassian. All Rights Reserved.