labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r605425 - in /labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy: ./ RandomDistributionPolicy.java RoundRobinDistributionPolicy.java
Date Wed, 19 Dec 2007 04:34:01 GMT
Author: ppoddar
Date: Tue Dec 18 20:34:00 2007
New Revision: 605425

URL: http://svn.apache.org/viewvc?rev=605425&view=rev
Log:
Refactoring policies to test

Added:
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy/
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy/RandomDistributionPolicy.java
      - copied, changed from r605340, labs/fluid/slice/src/main/java/org/apache/openjpa/slice/RandomDistributionPolicy.java
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy/RoundRobinDistributionPolicy.java
      - copied, changed from r605340, labs/fluid/slice/src/main/java/org/apache/openjpa/slice/RoundRobinDistributionPolicy.java

Copied: labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy/RandomDistributionPolicy.java
(from r605340, labs/fluid/slice/src/main/java/org/apache/openjpa/slice/RandomDistributionPolicy.java)
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy/RandomDistributionPolicy.java?p2=labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy/RandomDistributionPolicy.java&p1=labs/fluid/slice/src/main/java/org/apache/openjpa/slice/RandomDistributionPolicy.java&r1=605340&r2=605425&rev=605425&view=diff
==============================================================================
--- labs/fluid/slice/src/main/java/org/apache/openjpa/slice/RandomDistributionPolicy.java
(original)
+++ labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy/RandomDistributionPolicy.java
Tue Dec 18 20:34:00 2007
@@ -1,6 +1,26 @@
-package org.apache.openjpa.slice;
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.openjpa.slice.policy;
 
 import java.util.Random;
+
+import org.apache.openjpa.slice.DistributionPolicy;
 
 /**
  * A policy to distribute the instances randomly in the given databases.

Copied: labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy/RoundRobinDistributionPolicy.java
(from r605340, labs/fluid/slice/src/main/java/org/apache/openjpa/slice/RoundRobinDistributionPolicy.java)
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy/RoundRobinDistributionPolicy.java?p2=labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy/RoundRobinDistributionPolicy.java&p1=labs/fluid/slice/src/main/java/org/apache/openjpa/slice/RoundRobinDistributionPolicy.java&r1=605340&r2=605425&rev=605425&view=diff
==============================================================================
--- labs/fluid/slice/src/main/java/org/apache/openjpa/slice/RoundRobinDistributionPolicy.java
(original)
+++ labs/fluid/slice/src/main/java/org/apache/openjpa/slice/policy/RoundRobinDistributionPolicy.java
Tue Dec 18 20:34:00 2007
@@ -1,4 +1,24 @@
-package org.apache.openjpa.slice;
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.openjpa.slice.policy;
+
+import org.apache.openjpa.slice.DistributionPolicy;
 
 
 public class RoundRobinDistributionPolicy implements DistributionPolicy {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message