com.atlassian.greenhopper.service.lexorank.balance
Class LexoRankBalancingService

java.lang.Object
  extended by com.atlassian.greenhopper.service.lexorank.balance.LexoRankBalancingService

@Service
public class LexoRankBalancingService
extends java.lang.Object

Service that handles balancing of lexorank.


Field Summary
protected  LoggerWrapper log
           
 
Constructor Summary
LexoRankBalancingService()
           
 
Method Summary
 void initialise()
          Initialise the service.
 boolean isShutdown()
          Check to see if JIRA Agile is in the process of or has been shutdown.
 void onLexoRankEvent(LexoRankBalanceEvent event)
          Handle re-rank events, and schedule a re-balance as necessary.
 void onSpringContextStarted()
           
 void onSpringContextStopped()
           
 void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent evt)
           
 boolean rankingOperationsDisabled(java.lang.Long fieldId)
          Check to see if rank operations are disabled
 ServiceOutcome<java.lang.Void> requestFullBalance()
          Schedule a full balance.
 void submitScheduledBalance()
          Request a scheduled balance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final LoggerWrapper log
Constructor Detail

LexoRankBalancingService

public LexoRankBalancingService()
Method Detail

onSpringContextStarted

@PostConstruct
public void onSpringContextStarted()

onSpringContextStopped

@PreDestroy
public void onSpringContextStopped()

initialise

public void initialise()
Initialise the service.


pluginModuleDisabled

@EventListener
public void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent evt)

isShutdown

public boolean isShutdown()
Check to see if JIRA Agile is in the process of or has been shutdown.

Returns:
true when in shutdown state,

onLexoRankEvent

@EventListener
public void onLexoRankEvent(LexoRankBalanceEvent event)
Handle re-rank events, and schedule a re-balance as necessary.

Parameters:
event - is the rank event.

rankingOperationsDisabled

public boolean rankingOperationsDisabled(java.lang.Long fieldId)
Check to see if rank operations are disabled

Parameters:
fieldId - the RANK fieldId
Returns:
true when ranking is disabled

requestFullBalance

public ServiceOutcome<java.lang.Void> requestFullBalance()
Schedule a full balance.


submitScheduledBalance

public void submitScheduledBalance()
Request a scheduled balance. The balance will not be run if it's already in progress.



Copyright © 2007-2014 Atlassian. All Rights Reserved.