Repository: incubator-gossip Updated Branches: refs/heads/master 78fc5a039 -> f1935beb6
GOSSIP-33 Run rat on all installs Project: http://git-wip-us.apache.org/repos/asf/incubator-gossip/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-gossip/commit/c873ecf8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-gossip/tree/c873ecf8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-gossip/diff/c873ecf8 Branch: refs/heads/master Commit: c873ecf845b0b237275b871beffa6c82ab8f5bac Parents: 42e4ac7 Author: Edward Capriolo <[email protected]> Authored: Thu Nov 24 11:20:01 2016 -0500 Committer: Edward Capriolo <[email protected]> Committed: Thu Nov 24 11:20:01 2016 -0500 ---------------------------------------------------------------------- pom.xml | 20 +++++++++++++++++++- .../java/org/apache/gossip/manager/Clock.java | 17 +++++++++++++++++ .../org/apache/gossip/manager/DataReaper.java | 17 +++++++++++++++++ .../org/apache/gossip/manager/GossipCore.java | 17 +++++++++++++++++ .../org/apache/gossip/manager/SystemClock.java | 17 +++++++++++++++++ .../org/apache/gossip/manager/Transport.java | 17 +++++++++++++++++ .../java/org/apache/gossip/manager/UdpUtil.java | 17 +++++++++++++++++ .../org/apache/gossip/model/ActiveGossipOk.java | 17 +++++++++++++++++ .../java/org/apache/gossip/model/Fault.java | 17 +++++++++++++++++ .../org/apache/gossip/ShutdownDeadtimeTest.java | 2 +- 10 files changed, 156 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-gossip/blob/c873ecf8/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index e4c82df..ca96b33 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> - <!-- +<!-- 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. @@ -200,6 +200,24 @@ </dependency> </dependencies> </plugin> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>README.md</exclude> + <exclude>eclipse_template.xml</exclude> + </excludes> + </configuration> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> http://git-wip-us.apache.org/repos/asf/incubator-gossip/blob/c873ecf8/src/main/java/org/apache/gossip/manager/Clock.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/gossip/manager/Clock.java b/src/main/java/org/apache/gossip/manager/Clock.java index 0e828f7..6629c62 100644 --- a/src/main/java/org/apache/gossip/manager/Clock.java +++ b/src/main/java/org/apache/gossip/manager/Clock.java @@ -1,3 +1,20 @@ +/* + * 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.gossip.manager; public interface Clock { http://git-wip-us.apache.org/repos/asf/incubator-gossip/blob/c873ecf8/src/main/java/org/apache/gossip/manager/DataReaper.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/gossip/manager/DataReaper.java b/src/main/java/org/apache/gossip/manager/DataReaper.java index 4f4616b..6760685 100644 --- a/src/main/java/org/apache/gossip/manager/DataReaper.java +++ b/src/main/java/org/apache/gossip/manager/DataReaper.java @@ -1,3 +1,20 @@ +/* + * 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.gossip.manager; import java.util.Map.Entry; http://git-wip-us.apache.org/repos/asf/incubator-gossip/blob/c873ecf8/src/main/java/org/apache/gossip/manager/GossipCore.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/gossip/manager/GossipCore.java b/src/main/java/org/apache/gossip/manager/GossipCore.java index a87d573..258a159 100644 --- a/src/main/java/org/apache/gossip/manager/GossipCore.java +++ b/src/main/java/org/apache/gossip/manager/GossipCore.java @@ -1,3 +1,20 @@ +/* + * 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.gossip.manager; import java.io.IOException; http://git-wip-us.apache.org/repos/asf/incubator-gossip/blob/c873ecf8/src/main/java/org/apache/gossip/manager/SystemClock.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/gossip/manager/SystemClock.java b/src/main/java/org/apache/gossip/manager/SystemClock.java index 6d113b7..04a7080 100644 --- a/src/main/java/org/apache/gossip/manager/SystemClock.java +++ b/src/main/java/org/apache/gossip/manager/SystemClock.java @@ -1,3 +1,20 @@ +/* + * 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.gossip.manager; public class SystemClock implements Clock { http://git-wip-us.apache.org/repos/asf/incubator-gossip/blob/c873ecf8/src/main/java/org/apache/gossip/manager/Transport.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/gossip/manager/Transport.java b/src/main/java/org/apache/gossip/manager/Transport.java index 72b90df..d473e60 100644 --- a/src/main/java/org/apache/gossip/manager/Transport.java +++ b/src/main/java/org/apache/gossip/manager/Transport.java @@ -1,3 +1,20 @@ +/* + * 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.gossip.manager; public class Transport { http://git-wip-us.apache.org/repos/asf/incubator-gossip/blob/c873ecf8/src/main/java/org/apache/gossip/manager/UdpUtil.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/gossip/manager/UdpUtil.java b/src/main/java/org/apache/gossip/manager/UdpUtil.java index a6a0174..c61769f 100644 --- a/src/main/java/org/apache/gossip/manager/UdpUtil.java +++ b/src/main/java/org/apache/gossip/manager/UdpUtil.java @@ -1,3 +1,20 @@ +/* + * 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.gossip.manager; import java.nio.ByteBuffer; http://git-wip-us.apache.org/repos/asf/incubator-gossip/blob/c873ecf8/src/main/java/org/apache/gossip/model/ActiveGossipOk.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/gossip/model/ActiveGossipOk.java b/src/main/java/org/apache/gossip/model/ActiveGossipOk.java index 256ccd6..b54bf9a 100644 --- a/src/main/java/org/apache/gossip/model/ActiveGossipOk.java +++ b/src/main/java/org/apache/gossip/model/ActiveGossipOk.java @@ -1,3 +1,20 @@ +/* + * 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.gossip.model; public class ActiveGossipOk extends Response { http://git-wip-us.apache.org/repos/asf/incubator-gossip/blob/c873ecf8/src/main/java/org/apache/gossip/model/Fault.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/gossip/model/Fault.java b/src/main/java/org/apache/gossip/model/Fault.java index ea00ea0..3ba2508 100644 --- a/src/main/java/org/apache/gossip/model/Fault.java +++ b/src/main/java/org/apache/gossip/model/Fault.java @@ -1,3 +1,20 @@ +/* + * 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.gossip.model; public abstract class Fault extends Response { http://git-wip-us.apache.org/repos/asf/incubator-gossip/blob/c873ecf8/src/test/java/org/apache/gossip/ShutdownDeadtimeTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/gossip/ShutdownDeadtimeTest.java b/src/test/java/org/apache/gossip/ShutdownDeadtimeTest.java index ded1d0f..49eac46 100644 --- a/src/test/java/org/apache/gossip/ShutdownDeadtimeTest.java +++ b/src/test/java/org/apache/gossip/ShutdownDeadtimeTest.java @@ -82,7 +82,7 @@ public class ShutdownDeadtimeTest { } return total; } - }).afterWaitingAtMost(20, TimeUnit.SECONDS).isEqualTo(20); + }).afterWaitingAtMost(40, TimeUnit.SECONDS).isEqualTo(20); // shutdown one client and verify that one client is lost. Random r = new Random();
