Return-Path: X-Original-To: apmail-onami-commits-archive@minotaur.apache.org Delivered-To: apmail-onami-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CCB0BD878 for ; Sun, 2 Dec 2012 23:54:53 +0000 (UTC) Received: (qmail 85538 invoked by uid 500); 2 Dec 2012 23:54:53 -0000 Delivered-To: apmail-onami-commits-archive@onami.apache.org Received: (qmail 85510 invoked by uid 500); 2 Dec 2012 23:54:53 -0000 Mailing-List: contact commits-help@onami.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@onami.incubator.apache.org Delivered-To: mailing list commits@onami.incubator.apache.org Received: (qmail 85501 invoked by uid 99); 2 Dec 2012 23:54:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Dec 2012 23:54:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Dec 2012 23:54:46 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 690C12388C8A; Sun, 2 Dec 2012 23:53:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1416312 [19/19] - in /incubator/onami/site/scheduler: ./ apidocs/ apidocs/assets/ apidocs/assets/images/ apidocs/reference/ apidocs/reference/org/ apidocs/reference/org/apache/ apidocs/reference/org/apache/onami/ apidocs/reference/org/apac... Date: Sun, 02 Dec 2012 23:53:30 -0000 To: commits@onami.incubator.apache.org From: olamy@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121202235337.690C12388C8A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfiguration.html URL: http://svn.apache.org/viewvc/incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfiguration.html?rev=1416312&view=auto ============================================================================== --- incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfiguration.html (added) +++ incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfiguration.html Sun Dec 2 23:53:21 2012 @@ -0,0 +1,79 @@ + + + + +SchedulerConfiguration xref + + + +
+
+1   package org.apache.onami.scheduler;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one or more
+5    * contributor license agreements.  See the NOTICE file distributed with
+6    * this work for additional information regarding copyright ownership.
+7    * The ASF licenses this file to You under the Apache License, Version 2.0
+8    * (the "License"); you may not use this file except in compliance with
+9    * the License.  You may obtain a copy of the License at
+10   *
+11   *  http://www.apache.org/licenses/LICENSE-2.0
+12   *
+13   * Unless required by applicable law or agreed to in writing, software
+14   * distributed under the License is distributed on an "AS IS" BASIS,
+15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+16   * See the License for the specific language governing permissions and
+17   * limitations under the License.
+18   */
+19  
+20  import java.util.Properties;
+21  
+22  /**
+23   * Configuration of scheduler.
+24   *
+25   * @since 1.1
+26   */
+27  class SchedulerConfiguration
+28      implements SchedulerConfigurationBuilder
+29  {
+30  
+31      private boolean manualStart = false;
+32  
+33      /**
+34       * @since 1.3
+35       */
+36      private Properties properties;
+37  
+38      public SchedulerConfigurationBuilder withManualStart()
+39      {
+40          manualStart = true;
+41          return this;
+42      }
+43  
+44      /**
+45       * @since 1.3
+46       */
+47      public SchedulerConfigurationBuilder withProperties( Properties properties )
+48      {
+49          this.properties = properties;
+50          return this;
+51      }
+52  
+53      boolean startManually()
+54      {
+55          return manualStart;
+56      }
+57  
+58      /**
+59       * @since 1.3
+60       * @return
+61       */
+62      Properties getProperties() {
+63          return properties;
+64      }
+65  
+66  }
+
+
+ Propchange: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfiguration.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfiguration.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfigurationBuilder.html URL: http://svn.apache.org/viewvc/incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfigurationBuilder.html?rev=1416312&view=auto ============================================================================== --- incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfigurationBuilder.html (added) +++ incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfigurationBuilder.html Sun Dec 2 23:53:21 2012 @@ -0,0 +1,52 @@ + + + + +SchedulerConfigurationBuilder xref + + + +
+
+1   package org.apache.onami.scheduler;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one or more
+5    * contributor license agreements.  See the NOTICE file distributed with
+6    * this work for additional information regarding copyright ownership.
+7    * The ASF licenses this file to You under the Apache License, Version 2.0
+8    * (the "License"); you may not use this file except in compliance with
+9    * the License.  You may obtain a copy of the License at
+10   *
+11   *  http://www.apache.org/licenses/LICENSE-2.0
+12   *
+13   * Unless required by applicable law or agreed to in writing, software
+14   * distributed under the License is distributed on an "AS IS" BASIS,
+15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+16   * See the License for the specific language governing permissions and
+17   * limitations under the License.
+18   */
+19  
+20  import java.util.Properties;
+21  
+22  /**
+23   * Contains methods to change scheduler configuration by subclasses of QuartzModule.
+24   *
+25   * @since 1.1
+26   */
+27  public interface SchedulerConfigurationBuilder
+28  {
+29  
+30      SchedulerConfigurationBuilder withManualStart();
+31  
+32      /**
+33       * @since 1.3
+34       * @param properties
+35       * @return
+36       */
+37      SchedulerConfigurationBuilder withProperties( Properties properties );
+38  
+39  }
+
+
+ Propchange: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfigurationBuilder.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerConfigurationBuilder.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerProvider.html URL: http://svn.apache.org/viewvc/incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerProvider.html?rev=1416312&view=auto ============================================================================== --- incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerProvider.html (added) +++ incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerProvider.html Sun Dec 2 23:53:21 2012 @@ -0,0 +1,151 @@ + + + + +SchedulerProvider xref + + + +
+
+1   package org.apache.onami.scheduler;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one or more
+5    * contributor license agreements.  See the NOTICE file distributed with
+6    * this work for additional information regarding copyright ownership.
+7    * The ASF licenses this file to You under the Apache License, Version 2.0
+8    * (the "License"); you may not use this file except in compliance with
+9    * the License.  You may obtain a copy of the License at
+10   *
+11   *  http://www.apache.org/licenses/LICENSE-2.0
+12   *
+13   * Unless required by applicable law or agreed to in writing, software
+14   * distributed under the License is distributed on an "AS IS" BASIS,
+15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+16   * See the License for the specific language governing permissions and
+17   * limitations under the License.
+18   */
+19  
+20  import java.util.Set;
+21  
+22  import javax.inject.Inject;
+23  import javax.inject.Provider;
+24  
+25  import org.quartz.JobListener;
+26  import org.quartz.Scheduler;
+27  import org.quartz.SchedulerException;
+28  import org.quartz.SchedulerListener;
+29  import org.quartz.TriggerListener;
+30  import org.quartz.impl.StdSchedulerFactory;
+31  import org.quartz.spi.JobFactory;
+32  
+33  /**
+34   * Provides a {@code Scheduler} instance.
+35   */
+36  final class SchedulerProvider
+37      implements Provider<Scheduler>
+38  {
+39  
+40      /**
+41       * The {@code Scheduler} instance will be provided.
+42       */
+43      private final Scheduler scheduler;
+44  
+45      /**
+46       * Initialized a new {@code Provider&lt;Scheduler&gt;} instance.
+47       *
+48       * @throws SchedulerException If any error occurs
+49       */
+50      @Inject
+51      public SchedulerProvider( SchedulerConfiguration schedulerConfiguration )
+52          throws SchedulerException
+53      {
+54          StdSchedulerFactory schedulerFactory = new StdSchedulerFactory();
+55  
+56          if ( schedulerConfiguration.getProperties() != null )
+57          {
+58              schedulerFactory.initialize( schedulerConfiguration.getProperties() );
+59          }
+60  
+61          this.scheduler = schedulerFactory.getScheduler();
+62  
+63          if ( !schedulerConfiguration.startManually() )
+64          {
+65              scheduler.start();
+66          }
+67      }
+68  
+69      /**
+70       * Sets the {@code JobFactory} instance (it will be a {@link InjectorJobFactory} instance).
+71       *
+72       * @param jobFactory The {@code JobFactory} instance.
+73       * @throws SchedulerException If any error occurs
+74       */
+75      @Inject
+76      public void setJobFactory( JobFactory jobFactory )
+77          throws SchedulerException
+78      {
+79          scheduler.setJobFactory( jobFactory );
+80      }
+81  
+82      /**
+83       * Sets the {@code JobListener}s.
+84       *
+85       * @param jobListeners The {@code JobListener}s
+86       * @throws SchedulerException If any error occurs
+87       */
+88      @com.google.inject.Inject( optional = true )
+89      public void addJobListeners( Set<JobListener> jobListeners )
+90          throws SchedulerException
+91      {
+92          for ( JobListener jobListener : jobListeners )
+93          {
+94              scheduler.getListenerManager().addJobListener( jobListener );
+95          }
+96      }
+97  
+98      /**
+99       * Sets the {@code SchedulerListener}s.
+100      *
+101      * @param schedulerListeners The {@code SchedulerListener}s
+102      * @throws SchedulerException If any error occurs
+103      */
+104     @com.google.inject.Inject( optional = true )
+105     public void addSchedulerListeners( Set<SchedulerListener> schedulerListeners )
+106         throws SchedulerException
+107     {
+108         for ( SchedulerListener schedulerListener : schedulerListeners )
+109         {
+110             scheduler.getListenerManager().addSchedulerListener( schedulerListener );
+111         }
+112     }
+113 
+114     /**
+115      * Sets the {@code TriggerListener}s.
+116      *
+117      * @param triggerListeners The {@code TriggerListener}s
+118      * @throws SchedulerException If any error occurs
+119      */
+120     @com.google.inject.Inject( optional = true )
+121     public void addTriggerListeners( Set<TriggerListener> triggerListeners )
+122         throws SchedulerException
+123     {
+124         for ( TriggerListener triggerListener : triggerListeners )
+125         {
+126             scheduler.getListenerManager().addTriggerListener( triggerListener );
+127         }
+128     }
+129 
+130     /**
+131      * {@inheritDoc}
+132      */
+133     public Scheduler get()
+134     {
+135         return scheduler;
+136     }
+137 
+138 }
+
+
+ Propchange: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerProvider.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/SchedulerProvider.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-frame.html URL: http://svn.apache.org/viewvc/incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-frame.html?rev=1416312&view=auto ============================================================================== --- incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-frame.html (added) +++ incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-frame.html Sun Dec 2 23:53:21 2012 @@ -0,0 +1,42 @@ + + + + + + Apache Onami-Scheduler 1.4-SNAPSHOT-incubating Reference Package org.apache.onami.scheduler + + + + +

+ org.apache.onami.scheduler +

+ +

Classes

+ + + + + \ No newline at end of file Propchange: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-frame.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-frame.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-summary.html URL: http://svn.apache.org/viewvc/incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-summary.html?rev=1416312&view=auto ============================================================================== --- incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-summary.html (added) +++ incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-summary.html Sun Dec 2 23:53:21 2012 @@ -0,0 +1,97 @@ + + + + + + Apache Onami-Scheduler 1.4-SNAPSHOT-incubating Reference Package org.apache.onami.scheduler + + + +
+ +
+
+ +
+ +

Package org.apache.onami.scheduler

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Class Summary
+ InjectorJobFactory +
+ JobSchedulerBuilder +
+ QuartzModule +
+ Scheduled +
+ SchedulerConfiguration +
+ SchedulerConfigurationBuilder +
+ SchedulerProvider +
+ +
+ +
+
+ +
+
+ Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved. + + \ No newline at end of file Propchange: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-summary.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/onami/site/scheduler/xref/org/apache/onami/scheduler/package-summary.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: incubator/onami/site/scheduler/xref/overview-frame.html URL: http://svn.apache.org/viewvc/incubator/onami/site/scheduler/xref/overview-frame.html?rev=1416312&view=auto ============================================================================== --- incubator/onami/site/scheduler/xref/overview-frame.html (added) +++ incubator/onami/site/scheduler/xref/overview-frame.html Sun Dec 2 23:53:21 2012 @@ -0,0 +1,24 @@ + + + + + + Apache Onami-Scheduler 1.4-SNAPSHOT-incubating Reference + + + + +

+ All Classes +

+ +

Packages

+ + + + + Propchange: incubator/onami/site/scheduler/xref/overview-frame.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/onami/site/scheduler/xref/overview-frame.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: incubator/onami/site/scheduler/xref/overview-summary.html URL: http://svn.apache.org/viewvc/incubator/onami/site/scheduler/xref/overview-summary.html?rev=1416312&view=auto ============================================================================== --- incubator/onami/site/scheduler/xref/overview-summary.html (added) +++ incubator/onami/site/scheduler/xref/overview-summary.html Sun Dec 2 23:53:21 2012 @@ -0,0 +1,64 @@ + + + + + + Apache Onami-Scheduler 1.4-SNAPSHOT-incubating Reference + + + +
+
    +
  • Overview
  • +
  • Package
  • +
+
+
+ +
+ +

Apache Onami-Scheduler 1.4-SNAPSHOT-incubating Reference

+ + + + + + + + + + + + +
Packages
+ org.apache.onami.scheduler +
+ +
+
    +
  • Overview
  • +
  • Package
  • +
+
+
+ +
+ +
+ Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved. + + \ No newline at end of file Propchange: incubator/onami/site/scheduler/xref/overview-summary.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/onami/site/scheduler/xref/overview-summary.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: incubator/onami/site/scheduler/xref/stylesheet.css URL: http://svn.apache.org/viewvc/incubator/onami/site/scheduler/xref/stylesheet.css?rev=1416312&view=auto ============================================================================== --- incubator/onami/site/scheduler/xref/stylesheet.css (added) +++ incubator/onami/site/scheduler/xref/stylesheet.css Sun Dec 2 23:53:21 2012 @@ -0,0 +1,116 @@ +/* Javadoc style sheet */ +/* Define colors, fonts and other style attributes here to override the defaults */ +body { + background-color: #fff; + font-family: Arial, Helvetica, sans-serif; +} + +a:link { + color: #00f; +} +a:visited { + color: #00a; +} + +a:active, a:hover { + color: #f30 !important; +} + +ul, li { + list-style-type:none; + margin:0; + padding:0; +} + +table td { + padding: 3px; + border: 1px solid #000; +} +table { + width:100%; + border: 1px solid #000; + border-collapse: collapse; +} + +div.overview { + background-color:#ddd; + padding: 4px 4px 4px 0; +} +div.overview li, div.framenoframe li { + display: inline; +} +div.framenoframe { + text-align: center; + font-size: x-small; +} +div.framenoframe li { + margin: 0 3px 0 3px; +} +div.overview li { + margin:3px 3px 0 3px; + padding: 4px; +} +li.selected { + background-color:#888; + color: #fff; + font-weight: bold; +} + +table.summary { + margin-bottom: 20px; +} +table.summary td, table.summary th { + font-weight: bold; + text-align: left; + padding: 3px; +} +table.summary th { + background-color:#036; + color: #fff; +} +table.summary td { + background-color:#eee; + border: 1px solid black; +} + +em { + color: #A00; +} +em.comment { + color: #390; +} +.string { + color: #009; +} +div#footer { + text-align:center; +} +#overview { + padding:2px; +} + +hr { + height: 1px; + color: #000; +} + +/* JXR style sheet */ +.jxr_comment +{ + color: #390; +} + +.jxr_javadoccomment +{ + color: #A00; +} + +.jxr_string +{ + color: #009; +} + +.jxr_keyword +{ + color: #000; +} \ No newline at end of file Propchange: incubator/onami/site/scheduler/xref/stylesheet.css ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/onami/site/scheduler/xref/stylesheet.css ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision