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_EVENTNAME_COMPARATOR| Modifier | Constructor and Description |
|---|---|
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,
JiraProperties jiraProperties) |
|
JiraHomeReplicatorService(JiraHome jiraHome,
SecondaryJiraHome secondaryHome,
ApplicationProperties applicationProperties,
AttachmentPathManager attachmentPathManager,
AvatarManager avatarManager,
PluginPath pluginPath,
com.atlassian.beehive.ClusterLockService clusterLockService,
com.atlassian.scheduler.SchedulerService schedulerService,
JiraProperties jiraProperties) |
| 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, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitpublic JiraHomeReplicatorService(JiraHome jiraHome, SecondaryJiraHome secondaryHome, ApplicationProperties applicationProperties, AttachmentPathManager attachmentPathManager, AvatarManager avatarManager, PluginPath pluginPath, com.atlassian.beehive.ClusterLockService clusterLockService, com.atlassian.scheduler.SchedulerService schedulerService, JiraProperties jiraProperties)
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, JiraProperties jiraProperties)
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.SchedulerServiceExceptionpublic void run()
AbstractServicerun in interface JiraServicerun in interface Runnablerun in class AbstractServiceJiraService.init(com.opensymphony.module.propertyset.PropertySet)public ObjectConfiguration getObjectConfiguration() throws ObjectConfigurationException
ObjectConfigurablegetObjectConfiguration in interface ObjectConfigurableObjectConfigurationExceptionCopyright © 2002-2022 Atlassian. All Rights Reserved.