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

Apache Onami-Scheduler 1.4-SNAPSHOT-incubating Reference

+

Apache Onami-Scheduler 1.4-incubating-SNAPSHOT Reference