public class JiraHomeReplicatorService extends AbstractService implements Startable
Modifier and Type | Class and Description |
---|---|
class |
JiraHomeReplicatorService.FullReplicationJob |
class |
JiraHomeReplicatorService.QueueDrainingJob |
static class |
JiraHomeReplicatorService.ReplicationResult |
name, SERVICE_EVENT
NAME_COMPARATOR
Modifier | Constructor and Description |
---|---|
|
JiraHomeReplicatorService(JiraHome jiraHome,
SecondaryJiraHome secondaryHome,
ApplicationProperties applicationProperties,
AttachmentPathManager attachmentPathManager,
AvatarManager avatarManager,
PluginPath pluginPath,
com.atlassian.beehive.ClusterLockService clusterLockService,
com.atlassian.scheduler.SchedulerService schedulerService) |
protected |
JiraHomeReplicatorService(JiraHome jiraHome,
SecondaryJiraHome secondaryHome,
ApplicationProperties applicationProperties,
AttachmentPathManager attachmentPathManager,
AvatarManager avatarManager,
PluginPath pluginPath,
com.atlassian.beehive.ClusterLockService clusterLockService,
com.atlassian.scheduler.SchedulerService schedulerService,
ExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
ObjectConfiguration |
getObjectConfiguration()
Retrieves an object configuration object with properties that can be set
|
boolean |
isReplicating()
Returns true if the replicator service is doing a full replication.
|
void |
onFileChangeEvent(JiraHomeChangeEvent event)
For every file changed event we are going to perform
an async task to add, move or delete the file
|
void |
replicateJiraHome()
Request a full replication of files in the home directories that are configured for replication.
|
void |
run()
This method must be implemented in a subclass, and performs the functionality
that the service performs.
|
void |
shutdown(ComponentManagerShutdownEvent shutdownEvent) |
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
destroy, getDefaultProperty, getDescription, getKey, getLongProperty, getName, getObjectConfiguration, getProperties, getProperty, getTextProperty, hasProperty, init, isInternal, isUnique, setName
public JiraHomeReplicatorService(JiraHome jiraHome, SecondaryJiraHome secondaryHome, ApplicationProperties applicationProperties, AttachmentPathManager attachmentPathManager, AvatarManager avatarManager, PluginPath pluginPath, com.atlassian.beehive.ClusterLockService clusterLockService, com.atlassian.scheduler.SchedulerService schedulerService)
protected JiraHomeReplicatorService(JiraHome jiraHome, SecondaryJiraHome secondaryHome, ApplicationProperties applicationProperties, AttachmentPathManager attachmentPathManager, AvatarManager avatarManager, PluginPath pluginPath, com.atlassian.beehive.ClusterLockService clusterLockService, com.atlassian.scheduler.SchedulerService schedulerService, ExecutorService executorService)
public void start() throws Exception
Startable
@EventListener public void onFileChangeEvent(JiraHomeChangeEvent event)
@EventListener public void shutdown(ComponentManagerShutdownEvent shutdownEvent)
public boolean isReplicating()
public void replicateJiraHome() throws com.atlassian.scheduler.SchedulerServiceException
com.atlassian.scheduler.SchedulerServiceException
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
getObjectConfiguration
in interface ObjectConfigurable
ObjectConfigurationException
Copyright © 2002-2016 Atlassian. All Rights Reserved.