|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.service.AbstractService
com.atlassian.jira.index.ha.IndexSnapshotService
public class IndexSnapshotService
A service that when run will store a snapshot of the Lucene indexes
| Field Summary | |
|---|---|
static String |
BACKUP_COUNT
|
static int |
DEFAULT_COUNT
|
protected static String |
DEFAULT_DATE_FORMAT
|
protected static String |
INDEX_SNAPSHOT
|
static String |
SERVICE_KEY
|
protected static String |
SERVICE_NAME
|
| Fields inherited from class com.atlassian.jira.service.AbstractService |
|---|
log, name, SERVICE_EVENT |
| Fields inherited from interface com.atlassian.jira.service.JiraService |
|---|
NAME_COMPARATOR |
| Constructor Summary | |
|---|---|
IndexSnapshotService(IndexPathManager indexPathManager,
JiraHome jiraHome,
IndexUtils indexUtils)
|
|
| Method Summary | |
|---|---|
protected int |
deleteOldSnapshots(int numToKeep)
|
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. |
| Methods inherited from class com.atlassian.jira.service.AbstractService |
|---|
destroy, getDefaultProperty, getDescription, getLongProperty, getName, getObjectConfiguration, getProperties, getProperty, getTextProperty, hasProperty, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
protected static final String INDEX_SNAPSHOT
public static final String SERVICE_KEY
| Constructor Detail |
|---|
public IndexSnapshotService(IndexPathManager indexPathManager,
JiraHome jiraHome,
IndexUtils indexUtils)
| Method Detail |
|---|
public void init(com.opensymphony.module.propertyset.PropertySet props)
throws ObjectConfigurationException
JiraService
init in interface JiraServiceinit in class AbstractServiceprops - initialisation parameters
ObjectConfigurationException - in case of an error with initialisation parameterspublic String getKey()
ObjectConfigurable
getKey in interface ObjectConfigurablegetKey in class AbstractServicepublic boolean isUnique()
AbstractService
isUnique in interface JiraServiceisUnique in class AbstractServicepublic boolean isInternal()
AbstractService
isInternal in interface JiraServiceisInternal in class AbstractServicepublic void run()
AbstractService
run in interface JiraServicerun in interface Runnablerun in class AbstractServiceJiraService.init(com.opensymphony.module.propertyset.PropertySet)
public ObjectConfiguration getObjectConfiguration()
throws ObjectConfigurationException
ObjectConfigurable
ObjectConfigurationExceptionprotected int deleteOldSnapshots(int numToKeep)
public static String getServiceName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||