Repository: storm Updated Branches: refs/heads/master d59eaac77 -> b24b0fece
STORM-1161: Add License headers and add rat checks to builds Project: http://git-wip-us.apache.org/repos/asf/storm/repo Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/0892f093 Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/0892f093 Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/0892f093 Branch: refs/heads/master Commit: 0892f09358e158e9035480a0dfdcb486764e790d Parents: 90edd94 Author: Aaron Dossett <[email protected]> Authored: Thu Nov 5 16:03:31 2015 -0600 Committer: Aaron Dossett <[email protected]> Committed: Thu Nov 5 16:03:31 2015 -0600 ---------------------------------------------------------------------- bin/flight.bash | 15 +++ dev-tools/travis/travis-script.sh | 6 + .../starter/ResourceAwareExampleTopology.java | 20 +++- .../storm/hdfs/bolt/AvroGenericRecordBolt.java | 17 +++ .../ha/codedistributor/HDFSCodeDistributor.java | 17 +++ .../hdfs/bolt/AvroGenericRecordBoltTest.java | 17 +++ .../storm/hdfs/trident/HdfsStateTest.java | 17 +++ external/storm-solr/pom.xml | 17 +++ pom.xml | 118 ++++++++++--------- .../storm/codedistributor/ICodeDistributor.java | 17 +++ .../LocalFileSystemCodeDistributor.java | 17 +++ .../backtype/storm/metric/EventLoggerBolt.java | 17 +++ .../storm/metric/FileBasedEventLogger.java | 17 +++ .../jvm/backtype/storm/metric/IEventLogger.java | 17 +++ .../DefaultRackDNSToSwitchMapping.java | 17 +++ .../backtype/storm/nimbus/ILeaderElector.java | 17 +++ .../jvm/backtype/storm/nimbus/NimbusInfo.java | 17 +++ .../security/auth/kerberos/NoOpTTrasport.java | 20 +++- .../AlternateRackDNSToSwitchMapping.java | 17 +++ 19 files changed, 357 insertions(+), 60 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/bin/flight.bash ---------------------------------------------------------------------- diff --git a/bin/flight.bash b/bin/flight.bash index 05068b5..957c9ac 100755 --- a/bin/flight.bash +++ b/bin/flight.bash @@ -1,4 +1,19 @@ #!/bin/bash +# 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. JDKPATH="/home/y/share/yjava_jdk/java" BINPATH="/usr/bin" http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/dev-tools/travis/travis-script.sh ---------------------------------------------------------------------- diff --git a/dev-tools/travis/travis-script.sh b/dev-tools/travis/travis-script.sh index dd1a337..f388d4d 100755 --- a/dev-tools/travis/travis-script.sh +++ b/dev-tools/travis/travis-script.sh @@ -41,4 +41,10 @@ do python ${TRAVIS_SCRIPT_DIR}/print-errors-from-test-reports.py "${dir}" done +echo "Looking for unapproved licenses" +for rat in `find . -name rat.txt`; +do + python ${TRAVIS_SCRIPT_DIR}/ratprint.py "${rat}" +done + exit ${BUILD_RET_VAL} http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/examples/storm-starter/src/jvm/storm/starter/ResourceAwareExampleTopology.java ---------------------------------------------------------------------- diff --git a/examples/storm-starter/src/jvm/storm/starter/ResourceAwareExampleTopology.java b/examples/storm-starter/src/jvm/storm/starter/ResourceAwareExampleTopology.java index 96e300f..c43a1bc 100644 --- a/examples/storm-starter/src/jvm/storm/starter/ResourceAwareExampleTopology.java +++ b/examples/storm-starter/src/jvm/storm/starter/ResourceAwareExampleTopology.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 storm.starter; import backtype.storm.Config; @@ -18,9 +35,6 @@ import backtype.storm.utils.Utils; import java.util.Map; -/** - * Created by jerrypeng on 8/19/15. - */ public class ResourceAwareExampleTopology { public static class ExclamationBolt extends BaseRichBolt { OutputCollector _collector; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBolt.java ---------------------------------------------------------------------- diff --git a/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBolt.java b/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBolt.java index 2a83a44..d2bfba8 100644 --- a/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBolt.java +++ b/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBolt.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.storm.hdfs.bolt; import backtype.storm.Config; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/ha/codedistributor/HDFSCodeDistributor.java ---------------------------------------------------------------------- diff --git a/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/ha/codedistributor/HDFSCodeDistributor.java b/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/ha/codedistributor/HDFSCodeDistributor.java index f6736bd..1e38051 100644 --- a/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/ha/codedistributor/HDFSCodeDistributor.java +++ b/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/ha/codedistributor/HDFSCodeDistributor.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.storm.hdfs.ha.codedistributor; import backtype.storm.codedistributor.ICodeDistributor; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBoltTest.java ---------------------------------------------------------------------- diff --git a/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBoltTest.java b/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBoltTest.java index 4b447aa..37ba27a 100644 --- a/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBoltTest.java +++ b/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/bolt/AvroGenericRecordBoltTest.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.storm.hdfs.bolt; import backtype.storm.Config; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/trident/HdfsStateTest.java ---------------------------------------------------------------------- diff --git a/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/trident/HdfsStateTest.java b/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/trident/HdfsStateTest.java index e1f45df..51869d2 100644 --- a/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/trident/HdfsStateTest.java +++ b/external/storm-hdfs/src/test/java/org/apache/storm/hdfs/trident/HdfsStateTest.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.storm.hdfs.trident; import backtype.storm.Config; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/external/storm-solr/pom.xml ---------------------------------------------------------------------- diff --git a/external/storm-solr/pom.xml b/external/storm-solr/pom.xml index 5e7caa4..d5b7622 100644 --- a/external/storm-solr/pom.xml +++ b/external/storm-solr/pom.xml @@ -1,4 +1,21 @@ <?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. 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. + */--> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 008a988..a8475aa 100644 --- a/pom.xml +++ b/pom.xml @@ -783,6 +783,70 @@ <artifactId>clojure-maven-plugin</artifactId> <extensions>true</extensions> </plugin> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <version>0.11</version> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + <configuration> + <excludeSubProjects>false</excludeSubProjects> + <excludes> + <!-- exclude maven artifacts --> + <exclude>**/target/**</exclude> + <!-- exclude intellij projects --> + <exclude>**/*.iml</exclude> + <!-- module specific testing artifacts --> + <exclude>**/metastore_db/**</exclude> + + <!-- exclude CHANGELOG, VERSION, AND TODO files --> + <exclude>**/CHANGELOG.md</exclude> + <exclude>**/README.md</exclude> + <exclude>**/README.markdown</exclude> + <exclude>**/DEVELOPER.md</exclude> + <exclude>**/BYLAWS.md</exclude> + <exclude>**/STORM-UI-REST-API.md</exclude> + <exclude>SECURITY.md</exclude> + <exclude>VERSION</exclude> + <exclude>TODO</exclude> + <!-- thrift-generated code --> + <exclude>**/src/py/**</exclude> + + <!-- the following are in the LICENSE file --> + <exclude>**/src/ui/public/js/jquery.dataTables.1.10.4.min.js</exclude> + <exclude>**/src/ui/public/css/jquery.dataTables.1.10.4.min.css</exclude> + <exclude>**/src/ui/public/images/*</exclude> + <exclude>**/src/ui/public/js/bootstrap-3.3.1.min.js</exclude> + <exclude>**/src/ui/public/css/bootstrap-3.3.1.min.css</exclude> + <exclude>**/src/ui/public/js/dataTables.bootstrap.min.js</exclude> + <exclude>**/src/ui/public/css/dataTables.bootstrap.css</exclude> + <exclude>**/src/ui/public/js/jsonFormatter.min.js</exclude> + <exclude>**/src/ui/public/css/jsonFormatter.min.css</exclude> + <exclude>**/src/ui/public/js/jquery-1.11.1.min.js</exclude> + <exclude>**/src/ui/public/js/jquery.cookies.2.2.0.min.js</exclude> + <exclude>**/src/ui/public/js/moment.min.js</exclude> + <exclude>**/src/ui/public/js/jquery.blockUI.min.js</exclude> + <exclude>**/src/ui/public/js/url.min.js</exclude> + <exclude>**/src/ui/public/js/arbor.js</exclude> + <exclude>**/src/ui/public/js/arbor-graphics.js</exclude> + <exclude>**/src/ui/public/js/arbor-tween.js</exclude> + <exclude>**/src/ui/public/js/jquery.mustache.js</exclude> + + <!-- generated by shade plugin --> + <exclude>**/dependency-reduced-pom.xml</exclude> + + <exclude>**/docs/**</exclude> + <exclude>**/.git/**</exclude> + <exclude>**/derby.log</exclude> + </excludes> + </configuration> + </plugin> </plugins> </build> @@ -843,60 +907,6 @@ </tagListOptions> </configuration> </plugin> - <plugin> - <groupId>org.apache.rat</groupId> - <artifactId>apache-rat-plugin</artifactId> - <version>0.11</version> - <configuration> - <excludeSubProjects>false</excludeSubProjects> - <excludes> - <!-- exclude maven artifacts --> - <exclude>**/target/**</exclude> - <!-- exclude intellij projects --> - <exclude>**/*.iml</exclude> - - <!-- exclude CHANGELOG, VERSION, AND TODO files --> - <exclude>**/CHANGELOG.md</exclude> - <exclude>**/README.md</exclude> - <exclude>**/README.markdown</exclude> - <exclude>**/DEVELOPER.md</exclude> - <exclude>**/BYLAWS.md</exclude> - <exclude>**/STORM-UI-REST-API.md</exclude> - <exclude>SECURITY.md</exclude> - <exclude>VERSION</exclude> - <exclude>TODO</exclude> - <!-- thrift-generated code --> - <exclude>**/src/py/**</exclude> - - <!-- the following are in the LICENSE file --> - <exclude>**/src/ui/public/js/jquery.dataTables.1.10.4.min.js</exclude> - <exclude>**/src/ui/public/css/jquery.dataTables.1.10.4.min.css</exclude> - <exclude>**/src/ui/public/images/*</exclude> - <exclude>**/src/ui/public/js/bootstrap-3.3.1.min.js</exclude> - <exclude>**/src/ui/public/css/bootstrap-3.3.1.min.css</exclude> - <exclude>**/src/ui/public/js/dataTables.bootstrap.min.js</exclude> - <exclude>**/src/ui/public/css/dataTables.bootstrap.css</exclude> - <exclude>**/src/ui/public/js/jsonFormatter.min.js</exclude> - <exclude>**/src/ui/public/css/jsonFormatter.min.css</exclude> - <exclude>**/src/ui/public/js/jquery-1.11.1.min.js</exclude> - <exclude>**/src/ui/public/js/jquery.cookies.2.2.0.min.js</exclude> - <exclude>**/src/ui/public/js/moment.min.js</exclude> - <exclude>**/src/ui/public/js/jquery.blockUI.min.js</exclude> - <exclude>**/src/ui/public/js/url.min.js</exclude> - <exclude>**/src/ui/public/js/arbor.js</exclude> - <exclude>**/src/ui/public/js/arbor-graphics.js</exclude> - <exclude>**/src/ui/public/js/arbor-tween.js</exclude> - <exclude>**/src/ui/public/js/jquery.mustache.js</exclude> - - <!-- generated by shade plugin --> - <exclude>**/dependency-reduced-pom.xml</exclude> - - <exclude>**/docs/**</exclude> - <exclude>**/.git/**</exclude> - <exclude>**/derby.log</exclude> - </excludes> - </configuration> - </plugin> </plugins> </reporting> </project> http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/codedistributor/ICodeDistributor.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/backtype/storm/codedistributor/ICodeDistributor.java b/storm-core/src/jvm/backtype/storm/codedistributor/ICodeDistributor.java index 25e578b..c46688f 100644 --- a/storm-core/src/jvm/backtype/storm/codedistributor/ICodeDistributor.java +++ b/storm-core/src/jvm/backtype/storm/codedistributor/ICodeDistributor.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 backtype.storm.codedistributor; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/codedistributor/LocalFileSystemCodeDistributor.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/backtype/storm/codedistributor/LocalFileSystemCodeDistributor.java b/storm-core/src/jvm/backtype/storm/codedistributor/LocalFileSystemCodeDistributor.java index 02d5e2d..76993e2 100644 --- a/storm-core/src/jvm/backtype/storm/codedistributor/LocalFileSystemCodeDistributor.java +++ b/storm-core/src/jvm/backtype/storm/codedistributor/LocalFileSystemCodeDistributor.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 backtype.storm.codedistributor; import backtype.storm.nimbus.NimbusInfo; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/metric/EventLoggerBolt.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/backtype/storm/metric/EventLoggerBolt.java b/storm-core/src/jvm/backtype/storm/metric/EventLoggerBolt.java index 17ebbd1..6324237 100644 --- a/storm-core/src/jvm/backtype/storm/metric/EventLoggerBolt.java +++ b/storm-core/src/jvm/backtype/storm/metric/EventLoggerBolt.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 backtype.storm.metric; import backtype.storm.task.IBolt; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/metric/FileBasedEventLogger.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/backtype/storm/metric/FileBasedEventLogger.java b/storm-core/src/jvm/backtype/storm/metric/FileBasedEventLogger.java index 3abb940..27aa9d9 100644 --- a/storm-core/src/jvm/backtype/storm/metric/FileBasedEventLogger.java +++ b/storm-core/src/jvm/backtype/storm/metric/FileBasedEventLogger.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 backtype.storm.metric; import backtype.storm.task.TopologyContext; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/metric/IEventLogger.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/backtype/storm/metric/IEventLogger.java b/storm-core/src/jvm/backtype/storm/metric/IEventLogger.java index 9d0e7e9..4f0b34e 100644 --- a/storm-core/src/jvm/backtype/storm/metric/IEventLogger.java +++ b/storm-core/src/jvm/backtype/storm/metric/IEventLogger.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 backtype.storm.metric; import backtype.storm.task.OutputCollector; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/networktopography/DefaultRackDNSToSwitchMapping.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/backtype/storm/networktopography/DefaultRackDNSToSwitchMapping.java b/storm-core/src/jvm/backtype/storm/networktopography/DefaultRackDNSToSwitchMapping.java index f3f6152..8e1e521 100644 --- a/storm-core/src/jvm/backtype/storm/networktopography/DefaultRackDNSToSwitchMapping.java +++ b/storm-core/src/jvm/backtype/storm/networktopography/DefaultRackDNSToSwitchMapping.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 backtype.storm.networktopography; import java.util.HashMap; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/nimbus/ILeaderElector.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/backtype/storm/nimbus/ILeaderElector.java b/storm-core/src/jvm/backtype/storm/nimbus/ILeaderElector.java index a54ae7e..1148be2 100644 --- a/storm-core/src/jvm/backtype/storm/nimbus/ILeaderElector.java +++ b/storm-core/src/jvm/backtype/storm/nimbus/ILeaderElector.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 backtype.storm.nimbus; import org.apache.curator.framework.CuratorFramework; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/nimbus/NimbusInfo.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/backtype/storm/nimbus/NimbusInfo.java b/storm-core/src/jvm/backtype/storm/nimbus/NimbusInfo.java index d9af2a4..77c0d7a 100644 --- a/storm-core/src/jvm/backtype/storm/nimbus/NimbusInfo.java +++ b/storm-core/src/jvm/backtype/storm/nimbus/NimbusInfo.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 backtype.storm.nimbus; import backtype.storm.Config; http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/security/auth/kerberos/NoOpTTrasport.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/backtype/storm/security/auth/kerberos/NoOpTTrasport.java b/storm-core/src/jvm/backtype/storm/security/auth/kerberos/NoOpTTrasport.java index 074930d..c0721fc 100644 --- a/storm-core/src/jvm/backtype/storm/security/auth/kerberos/NoOpTTrasport.java +++ b/storm-core/src/jvm/backtype/storm/security/auth/kerberos/NoOpTTrasport.java @@ -1,12 +1,26 @@ +/** + * 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 backtype.storm.security.auth.kerberos; import org.apache.thrift.transport.TSaslServerTransport; import org.apache.thrift.transport.TTransport; import org.apache.thrift.transport.TTransportException; -/** - * Created by pshah on 8/12/15. - */ public class NoOpTTrasport extends TSaslServerTransport { public NoOpTTrasport(TTransport transport) { http://git-wip-us.apache.org/repos/asf/storm/blob/0892f093/storm-core/src/jvm/backtype/storm/testing/AlternateRackDNSToSwitchMapping.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/backtype/storm/testing/AlternateRackDNSToSwitchMapping.java b/storm-core/src/jvm/backtype/storm/testing/AlternateRackDNSToSwitchMapping.java index 8ed5f7b..f885056 100644 --- a/storm-core/src/jvm/backtype/storm/testing/AlternateRackDNSToSwitchMapping.java +++ b/storm-core/src/jvm/backtype/storm/testing/AlternateRackDNSToSwitchMapping.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 backtype.storm.testing; import backtype.storm.networktopography.AbstractDNSToSwitchMapping;
