Coverage Report - org.mule.transport.quartz.jobs.EndpointPollingJobConfig
 
Classes in this File Line Coverage Branch Coverage Complexity
EndpointPollingJobConfig
0%
0/10
N/A
0
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.transport.quartz.jobs;
 8  
 
 9  
 import org.mule.transport.quartz.config.AbstractJobConfig;
 10  
 
 11  
 import org.quartz.Job;
 12  
 import org.quartz.StatefulJob;
 13  
 
 14  
 /**
 15  
  * Configuration for the {@link EndpointPollingJob} job.
 16  
  */
 17  0
 public class EndpointPollingJobConfig extends AbstractJobConfig
 18  
 {
 19  
     private String endpointRef;
 20  
 
 21  
     //TODO this should use th system default
 22  0
     private int timeout = 5000;
 23  
 
 24  
     public String getEndpointRef()
 25  
     {
 26  0
         return endpointRef;
 27  
     }
 28  
 
 29  
     public void setEndpointRef(String endpointRef)
 30  
     {
 31  0
         this.endpointRef = endpointRef;
 32  0
     }
 33  
 
 34  
     public int getTimeout()
 35  
     {
 36  0
         return timeout;
 37  
     }
 38  
 
 39  
     public void setTimeout(int timeout)
 40  
     {
 41  0
         this.timeout = timeout;
 42  0
     }
 43  
 
 44  
     @Override
 45  
     protected Class<? extends StatefulJob> getStatefulJobClass()
 46  
     {
 47  0
         return StatefulEndpointPollingJob.class;
 48  
     }
 49  
 
 50  
     @Override
 51  
     protected Class<? extends Job> getStatelessJobClass()
 52  
     {
 53  0
         return EndpointPollingJob.class;
 54  
     }
 55  
 }