Return-Path: X-Original-To: apmail-metron-commits-archive@minotaur.apache.org Delivered-To: apmail-metron-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 2216518642 for ; Thu, 18 Feb 2016 20:58:16 +0000 (UTC) Received: (qmail 35365 invoked by uid 500); 18 Feb 2016 20:58:16 -0000 Delivered-To: apmail-metron-commits-archive@metron.apache.org Received: (qmail 35342 invoked by uid 500); 18 Feb 2016 20:58:16 -0000 Mailing-List: contact commits-help@metron.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@metron.incubator.apache.org Delivered-To: mailing list commits@metron.incubator.apache.org Received: (qmail 35333 invoked by uid 99); 18 Feb 2016 20:58:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 20:58:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 65EAC1A09B7 for ; Thu, 18 Feb 2016 20:58:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.549 X-Spam-Level: X-Spam-Status: No, score=-3.549 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 4TNoOuq1NiPH for ; Thu, 18 Feb 2016 20:57:58 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 8FDAB5FAE5 for ; Thu, 18 Feb 2016 20:57:56 +0000 (UTC) Received: (qmail 34898 invoked by uid 99); 18 Feb 2016 20:57:55 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 20:57:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 99CA7E0F7F; Thu, 18 Feb 2016 20:57:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cestella@apache.org To: commits@metron.incubator.apache.org Date: Thu, 18 Feb 2016 20:57:59 -0000 Message-Id: In-Reply-To: <736c433bad6f4f15b195c516dc5a4605@git.apache.org> References: <736c433bad6f4f15b195c516dc5a4605@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [5/6] incubator-metron git commit: METRON-38 Add license header to source closes apache/incubator-metron#24 http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParser.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParser.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParser.java index 8cda37f..13fffb9 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParser.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParser.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. + */ /* Generated By:JavaCC: Do not edit this line. ISEParser.java */ package org.apache.metron.ise.parser; import java.io.*; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParserConstants.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParserConstants.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParserConstants.java index 7a3a449..923a64e 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParserConstants.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParserConstants.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. + */ /* Generated By:JavaCC: Do not edit this line. ISEParserConstants.java */ package org.apache.metron.ise.parser; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParserTokenManager.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParserTokenManager.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParserTokenManager.java index 26722c5..d8d3c10 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParserTokenManager.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ISEParserTokenManager.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. + */ /* Generated By:JavaCC: Do not edit this line. ISEParserTokenManager.java */ package org.apache.metron.ise.parser; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/JavaCharStream.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/JavaCharStream.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/JavaCharStream.java index 9cd0db5..eb3a999 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/JavaCharStream.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/JavaCharStream.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. + */ /* Generated By:JavaCC: Do not edit this line. JavaCharStream.java Version 5.0 */ /* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=false */ package org.apache.metron.ise.parser; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ParseException.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ParseException.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ParseException.java index 70098a8..4143060 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ParseException.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/ParseException.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. + */ /* Generated By:JavaCC: Do not edit this line. ParseException.java Version 5.0 */ /* JavaCCOptions:KEEP_LINE_COL=null */ package org.apache.metron.ise.parser; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/Token.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/Token.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/Token.java index 3203583..349baf4 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/Token.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/Token.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. + */ /* Generated By:JavaCC: Do not edit this line. Token.java Version 5.0 */ /* JavaCCOptions:TOKEN_EXTENDS=,KEEP_LINE_COL=null,SUPPORT_CLASS_VISIBILITY_PUBLIC=false */ package org.apache.metron.ise.parser; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/TokenMgrError.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/TokenMgrError.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/TokenMgrError.java index add0deb..2e1f52c 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/TokenMgrError.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/ise/parser/TokenMgrError.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. + */ /* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 5.0 */ /* JavaCCOptions: */ package org.apache.metron.ise.parser; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONDecoderHelper.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONDecoderHelper.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONDecoderHelper.java index 1a7c751..366e655 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONDecoderHelper.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONDecoderHelper.java @@ -1,10 +1,11 @@ -/* - * 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 +/** + * 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 * @@ -14,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.apache.metron.json.serialization; import java.io.DataInputStream; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONEncoderHelper.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONEncoderHelper.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONEncoderHelper.java index 2d31902..697b7cc 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONEncoderHelper.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONEncoderHelper.java @@ -1,9 +1,11 @@ -/* 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 +/** + * 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://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONKafkaSerializer.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONKafkaSerializer.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONKafkaSerializer.java index 497337b..1ecaefb 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONKafkaSerializer.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONKafkaSerializer.java @@ -1,10 +1,11 @@ -/* - * 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 +/** + * 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://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONKryoSerializer.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONKryoSerializer.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONKryoSerializer.java index 9d35f62..37e2265 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONKryoSerializer.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/json/serialization/JSONKryoSerializer.java @@ -1,10 +1,11 @@ -/* - * 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 +/** + * 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 * @@ -14,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.apache.metron.json.serialization; import org.json.simple.JSONObject; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/MetricReporter.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/MetricReporter.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/MetricReporter.java index c820869..a36fed7 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/MetricReporter.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/MetricReporter.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.metron.metrics; import com.codahale.metrics.ConsoleReporter; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/MyMetricReporter.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/MyMetricReporter.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/MyMetricReporter.java index 621db43..8175487 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/MyMetricReporter.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/MyMetricReporter.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.metron.metrics; import com.codahale.metrics.ConsoleReporter; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/NullReporter.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/NullReporter.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/NullReporter.java index dcec4e9..148ea94 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/NullReporter.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/metrics/NullReporter.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.metron.metrics; public class NullReporter extends MetricReporter { http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/parser/interfaces/MessageFilter.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/parser/interfaces/MessageFilter.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/parser/interfaces/MessageFilter.java index a3c0089..2590570 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/parser/interfaces/MessageFilter.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/parser/interfaces/MessageFilter.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.metron.parser.interfaces; public interface MessageFilter { http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/parser/interfaces/MessageParser.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/parser/interfaces/MessageParser.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/parser/interfaces/MessageParser.java index a4fd2d8..2db0db6 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/parser/interfaces/MessageParser.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/parser/interfaces/MessageParser.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.metron.parser.interfaces; import java.util.List; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/Constants.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/Constants.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/Constants.java index d27da5c..99945cb 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/Constants.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/Constants.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.metron.pcap; @@ -18,4 +35,4 @@ public static final int PROTOCOL_UDP = 17; /** The document key separator. */ public static final char DOCUMENT_KEY_SEPARATOR = '-'; -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/IEEE_802_1Q.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/IEEE_802_1Q.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/IEEE_802_1Q.java index 0cc452c..27fae51 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/IEEE_802_1Q.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/IEEE_802_1Q.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.metron.pcap; public class IEEE_802_1Q { @@ -24,4 +41,4 @@ public class IEEE_802_1Q { public int getvLANIdentifier() { return vLANIdentifier; } - } \ No newline at end of file + } http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/MetronEthernetDecoder.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/MetronEthernetDecoder.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/MetronEthernetDecoder.java index 26ea2af..1609887 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/MetronEthernetDecoder.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/MetronEthernetDecoder.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.metron.pcap; import java.util.BitSet; @@ -114,4 +131,4 @@ public class MetronEthernetDecoder extends EthernetDecoder { for (EthernetProcessor processor : processors) processor.process(frame.dup()); } -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PacketInfo.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PacketInfo.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PacketInfo.java index 0227acc..76b8f9b 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PacketInfo.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PacketInfo.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.metron.pcap; import java.text.MessageFormat; @@ -451,4 +468,4 @@ public class PacketInfo { LOG.warn("Unknown magic number. Defaulting to micro"); return getPacketHeader().getTsSec() * 1000000000L + getPacketHeader().getTsUsec() * 1000L ; } -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapByteInputStream.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapByteInputStream.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapByteInputStream.java index e51ee6f..e2d56c8 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapByteInputStream.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapByteInputStream.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.metron.pcap; import java.io.ByteArrayInputStream; @@ -165,4 +182,4 @@ public class PcapByteInputStream implements PcapInputStream { public void close() throws IOException { is.close(); // $codepro.audit.disable closeInFinally } -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapByteOutputStream.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapByteOutputStream.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapByteOutputStream.java index 5b6f01e..06d6af6 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapByteOutputStream.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapByteOutputStream.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. + */ // $codepro.audit.disable explicitThisUsage, lossOfPrecisionInCast package org.apache.metron.pcap; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapMerger.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapMerger.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapMerger.java index 417b600..48d25c7 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapMerger.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapMerger.java @@ -1,4 +1,21 @@ - package org.apache.metron.pcap; +/** + * 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.metron.pcap; import java.io.ByteArrayOutputStream; import java.io.EOFException; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapPacketComparator.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapPacketComparator.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapPacketComparator.java index caba5aa..96f64a0 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapPacketComparator.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapPacketComparator.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.metron.pcap; import java.util.Comparator; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapUtils.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapUtils.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapUtils.java index 578111e..baa3bbd 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapUtils.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/pcap/PcapUtils.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.metron.pcap; import java.util.HashMap; @@ -418,4 +435,4 @@ public class PcapUtils { return inv; } -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/Lookup.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/Lookup.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/Lookup.java index 052c7a6..e93134e 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/Lookup.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/Lookup.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.metron.reference.lookup; import org.apache.metron.reference.lookup.accesstracker.AccessTracker; @@ -5,9 +22,6 @@ import org.apache.metron.reference.lookup.handler.Handler; import java.io.IOException; -/** - * Created by cstella on 2/5/16. - */ public class Lookup implements Handler { private String name; private AccessTracker accessTracker; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/LookupKey.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/LookupKey.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/LookupKey.java index 3a227fd..8aecd64 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/LookupKey.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/LookupKey.java @@ -1,8 +1,22 @@ -package org.apache.metron.reference.lookup; - /** - * Created by cstella on 2/5/16. + * 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.metron.reference.lookup; + public interface LookupKey { byte[] toBytes(); } http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/AccessTracker.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/AccessTracker.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/AccessTracker.java index 0b0846e..960c1e0 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/AccessTracker.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/AccessTracker.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.metron.reference.lookup.accesstracker; import org.apache.metron.reference.lookup.LookupKey; @@ -8,9 +25,6 @@ import java.io.IOException; import java.io.Serializable; import java.util.Map; -/** - * Created by cstella on 2/5/16. - */ public interface AccessTracker extends Serializable{ void logAccess(LookupKey key); void configure(Map config); http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/AccessTrackerUtil.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/AccessTrackerUtil.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/AccessTrackerUtil.java index 18df030..511275d 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/AccessTrackerUtil.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/AccessTrackerUtil.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.metron.reference.lookup.accesstracker; import com.google.common.base.Function; @@ -8,9 +25,6 @@ import org.apache.hadoop.hbase.util.Bytes; import javax.annotation.Nullable; import java.io.*; -/** - * Created by cstella on 2/5/16. - */ public enum AccessTrackerUtil { INSTANCE; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/BloomAccessTracker.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/BloomAccessTracker.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/BloomAccessTracker.java index d8edef5..d2700d6 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/BloomAccessTracker.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/BloomAccessTracker.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.metron.reference.lookup.accesstracker; import com.google.common.hash.BloomFilter; @@ -9,9 +26,6 @@ import java.io.*; import java.util.HashMap; import java.util.Map; -/** - * Created by cstella on 2/5/16. - */ public class BloomAccessTracker implements AccessTracker { private static final long serialVersionUID = 1L; public static final String EXPECTED_INSERTIONS_KEY = "expected_insertions"; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/PersistentAccessTracker.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/PersistentAccessTracker.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/PersistentAccessTracker.java index 9e239a8..46eb010 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/PersistentAccessTracker.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/accesstracker/PersistentAccessTracker.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.metron.reference.lookup.accesstracker; import org.apache.hadoop.hbase.client.HTable; @@ -10,9 +27,6 @@ import java.util.Map; import java.util.Timer; import java.util.TimerTask; -/** - * Created by cstella on 2/5/16. - */ public class PersistentAccessTracker implements AccessTracker { private static final Logger LOG = Logger.getLogger(PersistentAccessTracker.class); private static final long serialVersionUID = 1L; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/handler/Handler.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/handler/Handler.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/handler/Handler.java index 096e206..9af8fbd 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/handler/Handler.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/reference/lookup/handler/Handler.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 org.apache.metron.reference.lookup.handler; import org.apache.metron.reference.lookup.LookupKey; import java.io.IOException; -/** - * Created by cstella on 2/5/16. - */ public interface Handler extends AutoCloseable{ boolean exists(KEY_T key, CONTEXT_T context, boolean logAccess) throws IOException; RESULT_T get(KEY_T key, CONTEXT_T context, boolean logAccess) throws IOException; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractConfigTest.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractConfigTest.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractConfigTest.java index 74989d2..dc3917d 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractConfigTest.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractConfigTest.java @@ -1,10 +1,11 @@ -/* - * 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 +/** + * 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 * @@ -14,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.apache.metron.test; import java.io.BufferedReader; import java.io.File; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractSchemaTest.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractSchemaTest.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractSchemaTest.java index 3b6c098..3c5f597 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractSchemaTest.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractSchemaTest.java @@ -1,12 +1,11 @@ - - - /* - * 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 +/** + * 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://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractTestContext.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractTestContext.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractTestContext.java index c81caff..2395d04 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractTestContext.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/test/AbstractTestContext.java @@ -1,10 +1,11 @@ -/* - * 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 +/** + * 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://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/ThreatIntelKey.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/ThreatIntelKey.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/ThreatIntelKey.java index b13e780..8e90bc7 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/ThreatIntelKey.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/ThreatIntelKey.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.metron.threatintel; import com.google.common.hash.HashFunction; @@ -6,9 +23,6 @@ import com.google.common.hash.Hashing; import org.apache.hadoop.hbase.util.Bytes; import org.apache.metron.reference.lookup.LookupKey; -/** - * Created by cstella on 2/2/16. - */ public class ThreatIntelKey implements LookupKey{ private static final int SEED = 0xDEADBEEF; private static final int HASH_PREFIX_SIZE=16; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/ThreatIntelResults.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/ThreatIntelResults.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/ThreatIntelResults.java index bfe20b2..08f1cdc 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/ThreatIntelResults.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/ThreatIntelResults.java @@ -1,11 +1,25 @@ +/** + * 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.metron.threatintel; import java.util.HashMap; import java.util.Map; -/** - * Created by cstella on 2/3/16. - */ public class ThreatIntelResults { private ThreatIntelKey key; private Map value; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/hbase/Converter.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/hbase/Converter.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/hbase/Converter.java index a3d94e9..89a846a 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/hbase/Converter.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/hbase/Converter.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.metron.threatintel.hbase; import org.apache.hadoop.hbase.Cell; @@ -13,9 +30,6 @@ import org.codehaus.jackson.type.TypeReference; import java.io.IOException; import java.util.*; -/** - * Created by cstella on 2/2/16. - */ public enum Converter { INSTANCE; public static final String VALUE_COLUMN_NAME = "v"; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/hbase/ThreatIntelLookup.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/hbase/ThreatIntelLookup.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/hbase/ThreatIntelLookup.java index db4d2fd..c7997fe 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/hbase/ThreatIntelLookup.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/threatintel/hbase/ThreatIntelLookup.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.metron.threatintel.hbase; import org.apache.hadoop.hbase.client.HTable; @@ -13,9 +30,6 @@ import java.io.Closeable; import java.io.IOException; import java.util.Map; -/** - * Created by cstella on 2/5/16. - */ public class ThreatIntelLookup extends Lookup> implements AutoCloseable { http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/tldextractor/BasicTldExtractor.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/tldextractor/BasicTldExtractor.java b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/tldextractor/BasicTldExtractor.java index ae09628..24c3c25 100644 --- a/metron-streaming/Metron-Common/src/main/java/org/apache/metron/tldextractor/BasicTldExtractor.java +++ b/metron-streaming/Metron-Common/src/main/java/org/apache/metron/tldextractor/BasicTldExtractor.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.metron.tldextractor; import java.io.BufferedReader; @@ -134,4 +151,4 @@ public class BasicTldExtractor implements Serializable { this.inputFile = inputFile; } -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractConfigTest.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractConfigTest.java b/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractConfigTest.java index 4976eba..9a49b34 100644 --- a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractConfigTest.java +++ b/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractConfigTest.java @@ -1,5 +1,3 @@ - - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractSchemaTest.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractSchemaTest.java b/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractSchemaTest.java index 6352198..73d4e77 100644 --- a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractSchemaTest.java +++ b/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractSchemaTest.java @@ -1,5 +1,3 @@ - - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractTestContext.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractTestContext.java b/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractTestContext.java index a057562..9a84e4e 100644 --- a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractTestContext.java +++ b/metron-streaming/Metron-Common/src/test/java/org/apache/metron/AbstractTestContext.java @@ -1,5 +1,3 @@ - - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/tldextractor/BasicTldExtractorTest.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/tldextractor/BasicTldExtractorTest.java b/metron-streaming/Metron-Common/src/test/java/org/apache/metron/tldextractor/BasicTldExtractorTest.java index 7ce1719..8a401d5 100644 --- a/metron-streaming/Metron-Common/src/test/java/org/apache/metron/tldextractor/BasicTldExtractorTest.java +++ b/metron-streaming/Metron-Common/src/test/java/org/apache/metron/tldextractor/BasicTldExtractorTest.java @@ -1,5 +1,3 @@ - - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-DataLoads/pom.xml ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-DataLoads/pom.xml b/metron-streaming/Metron-DataLoads/pom.xml index f2e07bb..d3eef64 100644 --- a/metron-streaming/Metron-DataLoads/pom.xml +++ b/metron-streaming/Metron-DataLoads/pom.xml @@ -1,4 +1,6 @@ - + the specific language governing permissions and limitations under the License. + --> http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-DataLoads/src/main/bash/threatintel_bulk_load.sh ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-DataLoads/src/main/bash/threatintel_bulk_load.sh b/metron-streaming/Metron-DataLoads/src/main/bash/threatintel_bulk_load.sh index ecf3b50..0b7a83c 100755 --- a/metron-streaming/Metron-DataLoads/src/main/bash/threatintel_bulk_load.sh +++ b/metron-streaming/Metron-DataLoads/src/main/bash/threatintel_bulk_load.sh @@ -1,4 +1,21 @@ #!/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. +# BIGTOP_DEFAULTS_DIR=${BIGTOP_DEFAULTS_DIR-/etc/default} [ -n "${BIGTOP_DEFAULTS_DIR}" -a -r ${BIGTOP_DEFAULTS_DIR}/hbase ] && . ${BIGTOP_DEFAULTS_DIR}/hbase http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-DataLoads/src/main/bash/threatintel_bulk_prune.sh ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-DataLoads/src/main/bash/threatintel_bulk_prune.sh b/metron-streaming/Metron-DataLoads/src/main/bash/threatintel_bulk_prune.sh index 52ced3f..ee230c2 100755 --- a/metron-streaming/Metron-DataLoads/src/main/bash/threatintel_bulk_prune.sh +++ b/metron-streaming/Metron-DataLoads/src/main/bash/threatintel_bulk_prune.sh @@ -1,5 +1,21 @@ #!/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. +# BIGTOP_DEFAULTS_DIR=${BIGTOP_DEFAULTS_DIR-/etc/default} [ -n "${BIGTOP_DEFAULTS_DIR}" -a -r ${BIGTOP_DEFAULTS_DIR}/hbase ] && . ${BIGTOP_DEFAULTS_DIR}/hbase http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/LeastRecentlyUsedPruner.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/LeastRecentlyUsedPruner.java b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/LeastRecentlyUsedPruner.java index 899e13d..4ee6e2f 100644 --- a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/LeastRecentlyUsedPruner.java +++ b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/LeastRecentlyUsedPruner.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.metron.dataloads; import com.google.common.base.Function; @@ -18,9 +35,6 @@ import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; -/** - * Created by cstella on 2/5/16. - */ public class LeastRecentlyUsedPruner { private static abstract class OptionHandler implements Function {} private enum BulkLoadOptions { http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/ThreatIntelBulkLoader.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/ThreatIntelBulkLoader.java b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/ThreatIntelBulkLoader.java index d83b35a..246924c 100644 --- a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/ThreatIntelBulkLoader.java +++ b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/ThreatIntelBulkLoader.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.metron.dataloads; import com.google.common.base.Function; @@ -24,9 +41,6 @@ import java.nio.charset.Charset; import java.text.*; import java.util.Date; -/** - * Created by cstella on 2/2/16. - */ public class ThreatIntelBulkLoader { private static abstract class OptionHandler implements Function {} private enum BulkLoadOptions { http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/ThreatIntelLoader.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/ThreatIntelLoader.java b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/ThreatIntelLoader.java index c196d32..8ed2e23 100644 --- a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/ThreatIntelLoader.java +++ b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/ThreatIntelLoader.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.metron.dataloads; http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/cif/HBaseTableLoad.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/cif/HBaseTableLoad.java b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/cif/HBaseTableLoad.java index 0af0e6a..0cff227 100644 --- a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/cif/HBaseTableLoad.java +++ b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/cif/HBaseTableLoad.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.metron.dataloads.cif; import java.io.BufferedReader; @@ -235,4 +252,4 @@ public class HBaseTableLoad { return output; } -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/extractor/Extractor.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/extractor/Extractor.java b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/extractor/Extractor.java index 4fcfb15..41f667b 100644 --- a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/extractor/Extractor.java +++ b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/extractor/Extractor.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.metron.dataloads.extractor; import org.apache.metron.threatintel.ThreatIntelResults; @@ -5,9 +22,6 @@ import org.apache.metron.threatintel.ThreatIntelResults; import java.io.IOException; import java.util.Map; -/** - * Created by cstella on 2/2/16. - */ public interface Extractor { Iterable extract(String line) throws IOException; void initialize(Map config); http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/c4954e8a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/extractor/ExtractorCreator.java ---------------------------------------------------------------------- diff --git a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/extractor/ExtractorCreator.java b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/extractor/ExtractorCreator.java index fdc619e..6e081aa 100644 --- a/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/extractor/ExtractorCreator.java +++ b/metron-streaming/Metron-DataLoads/src/main/java/org/apache/metron/dataloads/extractor/ExtractorCreator.java @@ -1,10 +1,24 @@ +/** + * 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.metron.dataloads.extractor; import java.util.Map; -/** - * Created by cstella on 2/2/16. - */ public interface ExtractorCreator { Extractor create(); }