You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by ki...@apache.org on 2012/10/30 01:40:18 UTC
git commit: Adding license plugin,
manually fixing license headers in mockservice
Updated Branches:
refs/heads/master afee35a32 -> b6a3914f3
Adding license plugin, manually fixing license headers in mockservice
Project: http://git-wip-us.apache.org/repos/asf/incubator-helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-helix/commit/b6a3914f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-helix/tree/b6a3914f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-helix/diff/b6a3914f
Branch: refs/heads/master
Commit: b6a3914f390de1052922c9259af883cfdfb1272b
Parents: afee35a
Author: Kishore Gopalakrishna <g....@gmail.com>
Authored: Mon Oct 29 17:39:37 2012 -0700
Committer: Kishore Gopalakrishna <g....@gmail.com>
Committed: Mon Oct 29 17:39:37 2012 -0700
----------------------------------------------------------------------
.../apache/helix/examples/BootstrapProcess.java | 33 +++++++-------
.../main/java/org/apache/helix/model/Message.java | 1 -
.../java/org/apache/helix/ExternalCommand.java | 8 ---
.../main/java/org/apache/helix/CMConnector.java | 30 +++++++------
.../java/org/apache/helix/EspressoResource.java | 30 +++++++------
.../org/apache/helix/EspressoStorageMockNode.java | 30 +++++++------
.../EspressoStorageMockStateModelFactory.java | 30 +++++++------
.../java/org/apache/helix/FnvHashFunction.java | 30 +++++++------
.../main/java/org/apache/helix/HashFunction.java | 35 +++++++--------
.../java/org/apache/helix/MockEspressoService.java | 30 +++++++------
.../src/main/java/org/apache/helix/MockNode.java | 30 +++++++------
.../java/org/apache/helix/MockNodeFactory.java | 30 +++++++------
.../src/main/java/org/apache/helix/MockRunner.java | 30 +++++++------
.../java/org/apache/helix/StopServiceResource.java | 30 +++++++------
.../src/test/java/org/apache/helix/AppTest.java | 30 +++++++------
pom.xml | 7 ++-
16 files changed, 214 insertions(+), 200 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/helix-core/src/main/java/org/apache/helix/examples/BootstrapProcess.java
----------------------------------------------------------------------
diff --git a/helix-core/src/main/java/org/apache/helix/examples/BootstrapProcess.java b/helix-core/src/main/java/org/apache/helix/examples/BootstrapProcess.java
index b8e3bfe..f6c7bac 100644
--- a/helix-core/src/main/java/org/apache/helix/examples/BootstrapProcess.java
+++ b/helix-core/src/main/java/org/apache/helix/examples/BootstrapProcess.java
@@ -1,20 +1,23 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+
+package org.apache.helix.examples;
+/*
+ * 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
+ * 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.
+ * 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.helix.examples;
-
import java.io.File;
import java.net.InetAddress;
import java.net.UnknownHostException;
@@ -62,8 +65,6 @@ import org.apache.helix.tools.ClusterStateVerifier;
* decide which back up it wants to use to bootstrap</li>
* </ul>
*
- * @author kgopalak
- *
*/
public class BootstrapProcess
{
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/helix-core/src/main/java/org/apache/helix/model/Message.java
----------------------------------------------------------------------
diff --git a/helix-core/src/main/java/org/apache/helix/model/Message.java b/helix-core/src/main/java/org/apache/helix/model/Message.java
index 421964b..9b6aaed 100644
--- a/helix-core/src/main/java/org/apache/helix/model/Message.java
+++ b/helix-core/src/main/java/org/apache/helix/model/Message.java
@@ -560,7 +560,6 @@ public class Message extends HelixProperty
}
}
- // TODO replace with util from espresso or linkedin
private boolean isNullOrEmpty(String data)
{
return data == null || data.length() == 0 || data.trim().length() == 0;
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/helix-core/src/test/java/org/apache/helix/ExternalCommand.java
----------------------------------------------------------------------
diff --git a/helix-core/src/test/java/org/apache/helix/ExternalCommand.java b/helix-core/src/test/java/org/apache/helix/ExternalCommand.java
index 1774291..63ea6c8 100644
--- a/helix-core/src/test/java/org/apache/helix/ExternalCommand.java
+++ b/helix-core/src/test/java/org/apache/helix/ExternalCommand.java
@@ -33,14 +33,6 @@ import java.util.concurrent.TimeoutException;
import org.apache.log4j.Logger;
-/**
-* This class encapsulates a java <code>Process</code> to handle properly
-* output and error and preventing potential deadlocks. The idea is that the
-* command is executed and you can get the error or output. Simple to use.
-* Should not be used for big outputs because they are buffered internally.
-*
-* @author ypujante@linkedin.com
-*/
public class ExternalCommand
{
public static final String MODULE = ExternalCommand.class.getName();
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/main/java/org/apache/helix/CMConnector.java
----------------------------------------------------------------------
diff --git a/mockservice/src/main/java/org/apache/helix/CMConnector.java b/mockservice/src/main/java/org/apache/helix/CMConnector.java
index 5eaa8a1..946f86b 100644
--- a/mockservice/src/main/java/org/apache/helix/CMConnector.java
+++ b/mockservice/src/main/java/org/apache/helix/CMConnector.java
@@ -1,20 +1,22 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
import org.apache.helix.HelixManager;
import org.apache.helix.HelixManagerFactory;
import org.apache.helix.InstanceType;
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/main/java/org/apache/helix/EspressoResource.java
----------------------------------------------------------------------
diff --git a/mockservice/src/main/java/org/apache/helix/EspressoResource.java b/mockservice/src/main/java/org/apache/helix/EspressoResource.java
index 30e8853..64d725c 100644
--- a/mockservice/src/main/java/org/apache/helix/EspressoResource.java
+++ b/mockservice/src/main/java/org/apache/helix/EspressoResource.java
@@ -1,20 +1,22 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
import java.io.IOException;
import java.io.Reader;
import java.nio.ByteBuffer;
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/main/java/org/apache/helix/EspressoStorageMockNode.java
----------------------------------------------------------------------
diff --git a/mockservice/src/main/java/org/apache/helix/EspressoStorageMockNode.java b/mockservice/src/main/java/org/apache/helix/EspressoStorageMockNode.java
index d172d58..b196f55 100644
--- a/mockservice/src/main/java/org/apache/helix/EspressoStorageMockNode.java
+++ b/mockservice/src/main/java/org/apache/helix/EspressoStorageMockNode.java
@@ -1,20 +1,22 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
//import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/main/java/org/apache/helix/EspressoStorageMockStateModelFactory.java
----------------------------------------------------------------------
diff --git a/mockservice/src/main/java/org/apache/helix/EspressoStorageMockStateModelFactory.java b/mockservice/src/main/java/org/apache/helix/EspressoStorageMockStateModelFactory.java
index 2a807db..69c5ab0 100644
--- a/mockservice/src/main/java/org/apache/helix/EspressoStorageMockStateModelFactory.java
+++ b/mockservice/src/main/java/org/apache/helix/EspressoStorageMockStateModelFactory.java
@@ -1,20 +1,22 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
import org.apache.helix.NotificationContext;
import org.apache.helix.model.Message;
import org.apache.helix.participant.statemachine.StateModel;
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/main/java/org/apache/helix/FnvHashFunction.java
----------------------------------------------------------------------
diff --git a/mockservice/src/main/java/org/apache/helix/FnvHashFunction.java b/mockservice/src/main/java/org/apache/helix/FnvHashFunction.java
index 4866a3f..fcd3af7 100644
--- a/mockservice/src/main/java/org/apache/helix/FnvHashFunction.java
+++ b/mockservice/src/main/java/org/apache/helix/FnvHashFunction.java
@@ -1,20 +1,22 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
import java.nio.ByteBuffer;
public class FnvHashFunction implements HashFunction
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/main/java/org/apache/helix/HashFunction.java
----------------------------------------------------------------------
diff --git a/mockservice/src/main/java/org/apache/helix/HashFunction.java b/mockservice/src/main/java/org/apache/helix/HashFunction.java
index 1641212..e5a5432 100644
--- a/mockservice/src/main/java/org/apache/helix/HashFunction.java
+++ b/mockservice/src/main/java/org/apache/helix/HashFunction.java
@@ -1,27 +1,24 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
import java.nio.ByteBuffer;
-/**
- * Forked from com.linkedin.databus.core.util @ r293057
- * @author sdas
- *
- */
public interface HashFunction {
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/main/java/org/apache/helix/MockEspressoService.java
----------------------------------------------------------------------
diff --git a/mockservice/src/main/java/org/apache/helix/MockEspressoService.java b/mockservice/src/main/java/org/apache/helix/MockEspressoService.java
index d934a44..5507ee3 100644
--- a/mockservice/src/main/java/org/apache/helix/MockEspressoService.java
+++ b/mockservice/src/main/java/org/apache/helix/MockEspressoService.java
@@ -1,20 +1,22 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
import java.net.InetAddress;
import org.apache.commons.cli.CommandLine;
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/main/java/org/apache/helix/MockNode.java
----------------------------------------------------------------------
diff --git a/mockservice/src/main/java/org/apache/helix/MockNode.java b/mockservice/src/main/java/org/apache/helix/MockNode.java
index 52c35d0..4490e77 100644
--- a/mockservice/src/main/java/org/apache/helix/MockNode.java
+++ b/mockservice/src/main/java/org/apache/helix/MockNode.java
@@ -1,20 +1,22 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
import org.apache.log4j.Logger;
public abstract class MockNode {
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/main/java/org/apache/helix/MockNodeFactory.java
----------------------------------------------------------------------
diff --git a/mockservice/src/main/java/org/apache/helix/MockNodeFactory.java b/mockservice/src/main/java/org/apache/helix/MockNodeFactory.java
index d428dae..e468fe8 100644
--- a/mockservice/src/main/java/org/apache/helix/MockNodeFactory.java
+++ b/mockservice/src/main/java/org/apache/helix/MockNodeFactory.java
@@ -1,20 +1,22 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
import org.apache.log4j.Logger;
public class MockNodeFactory {
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/main/java/org/apache/helix/MockRunner.java
----------------------------------------------------------------------
diff --git a/mockservice/src/main/java/org/apache/helix/MockRunner.java b/mockservice/src/main/java/org/apache/helix/MockRunner.java
index cf9615e..3467ab7 100644
--- a/mockservice/src/main/java/org/apache/helix/MockRunner.java
+++ b/mockservice/src/main/java/org/apache/helix/MockRunner.java
@@ -1,20 +1,22 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
import org.apache.helix.manager.zk.ZNRecordSerializer;
import org.apache.helix.manager.zk.ZkClient;
import org.apache.log4j.Logger;
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/main/java/org/apache/helix/StopServiceResource.java
----------------------------------------------------------------------
diff --git a/mockservice/src/main/java/org/apache/helix/StopServiceResource.java b/mockservice/src/main/java/org/apache/helix/StopServiceResource.java
index 2f8d202..e2c670b 100644
--- a/mockservice/src/main/java/org/apache/helix/StopServiceResource.java
+++ b/mockservice/src/main/java/org/apache/helix/StopServiceResource.java
@@ -1,20 +1,22 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
import java.io.IOException;
import java.io.Reader;
import java.nio.ByteBuffer;
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/mockservice/src/test/java/org/apache/helix/AppTest.java
----------------------------------------------------------------------
diff --git a/mockservice/src/test/java/org/apache/helix/AppTest.java b/mockservice/src/test/java/org/apache/helix/AppTest.java
index 8efe7b4..25c53dd 100644
--- a/mockservice/src/test/java/org/apache/helix/AppTest.java
+++ b/mockservice/src/test/java/org/apache/helix/AppTest.java
@@ -1,20 +1,22 @@
-/**
- * Copyright (C) 2012 LinkedIn Inc <op...@linkedin.com>
- *
- * Licensed 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
+package org.apache.helix;
+/*
+ * 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
+ * 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.
+ * 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.helix;
-
import org.testng.annotations.Test;
import org.testng.AssertJUnit;
http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/b6a3914f/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index cc7d957..5bd111d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -287,7 +287,6 @@ under the License.
</dependency>
</dependencies>
</plugin>
-
</plugins>
</pluginManagement>
<plugins>
@@ -303,7 +302,11 @@ under the License.
</dependency>
</dependencies>
</plugin>
-
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <version>1.3</version>
+ </plugin>
</plugins>
</build>
<reporting>