Class Overview
A service that when run will store a snapshot of the Lucene indexes
Constants
public
static
final
String
BACKUP_COUNT
Constant Value:
"backupCount"
public
static
final
int
DEFAULT_COUNT
Constant Value:
3
(0x00000003)
protected
static
final
String
DEFAULT_DATE_FORMAT
Constant Value:
"yyyy-MMM-dd--HHmm"
protected
static
final
String
INDEX_SNAPSHOT
Constant Value:
"IndexSnapshot_"
public
static
final
String
SERVICE_KEY
Constant Value:
"indexsnapshotservice"
protected
static
final
String
SERVICE_NAME
Constant Value:
"JIRA Index Snapshot Service"
Public Constructors
Public Methods
public
String
getKey
()
Return the key of this object
public
static
String
getServiceName
()
public
void
init
(PropertySet props)
Initialise the service. This method is guaranteed to be called before the first call to run().
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.
Parameters
props
| initialisation parameters |
public
boolean
isInternal
()
By default, returns false.
public
boolean
isUnique
()
By default, services are not unique.
public
void
run
()
This method must be implemented in a subclass, and performs the functionality
that the service performs. This method is called after the duration specified through
the administration web interface.
Protected Methods
protected
int
deleteOldSnapshots
(int numToKeep)