com.atlassian.confluence.test.rpc
Class FuncTestJobControlListener

java.lang.Object
  extended by com.atlassian.confluence.test.rpc.FuncTestJobControlListener
All Implemented Interfaces:
com.atlassian.plugin.StateAware

public class FuncTestJobControlListener
extends Object
implements com.atlassian.plugin.StateAware

Listens to Scheduler job-control events published by FuncTestRpcHandlerImpl. This allows the job control to be handled across all cluster nodes.

Since:
5.5

Constructor Summary
FuncTestJobControlListener()
           
 
Method Summary
 void disabled()
           
 void enabled()
           
 void onClusterEvent(ClusterEventWrapper clusterEventWrapper)
           
 void pauseAllJobs(PauseAllJobsEvent event)
           
 void pauseJob(PauseJobEvent event)
           
 void pauseJobGroup(PauseJobGroupEvent event)
           
 void resumeJob(ResumeJobEvent event)
           
 void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
           
 void setScheduler(org.quartz.Scheduler scheduler)
           
 void triggerJob(TriggerJobEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuncTestJobControlListener

public FuncTestJobControlListener()
Method Detail

onClusterEvent

@EventListener
public void onClusterEvent(ClusterEventWrapper clusterEventWrapper)
                    throws org.quartz.SchedulerException
Throws:
org.quartz.SchedulerException

pauseJob

@EventListener
public void pauseJob(PauseJobEvent event)
              throws org.quartz.SchedulerException
Throws:
org.quartz.SchedulerException

resumeJob

@EventListener
public void resumeJob(ResumeJobEvent event)
               throws org.quartz.SchedulerException
Throws:
org.quartz.SchedulerException

pauseJobGroup

@EventListener
public void pauseJobGroup(PauseJobGroupEvent event)
                   throws org.quartz.SchedulerException
Throws:
org.quartz.SchedulerException

pauseAllJobs

@EventListener
public void pauseAllJobs(PauseAllJobsEvent event)
                  throws org.quartz.SchedulerException
Throws:
org.quartz.SchedulerException

triggerJob

@EventListener
public void triggerJob(TriggerJobEvent event)
                throws org.quartz.SchedulerException,
                       RemoteException,
                       InterruptedException
Throws:
org.quartz.SchedulerException
RemoteException
InterruptedException

setEventPublisher

public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)

setScheduler

public void setScheduler(org.quartz.Scheduler scheduler)

enabled

public void enabled()
Specified by:
enabled in interface com.atlassian.plugin.StateAware

disabled

public void disabled()
Specified by:
disabled in interface com.atlassian.plugin.StateAware


Copyright © 2003–2015 Atlassian. All rights reserved.