Skip to content

Commit 68f2d5e

Browse files
committed
update license and fix code review comments
1 parent 9f53719 commit 68f2d5e

File tree

18 files changed

+42
-50
lines changed

18 files changed

+42
-50
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright (c) 2020 AppDynamics,Inc.
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
217
<settings />
318

Diff for: pom.xml

-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<!--
4-
~ Copyright (c) 2019 AppDynamics,Inc.
5-
~ Licensed under the Apache License, Version 2.0 (the "License");
6-
~ you may not use this file except in compliance with the License.
7-
~ You may obtain a copy of the License at
8-
~
9-
~ http://www.apache.org/licenses/LICENSE-2.0
10-
~
11-
~ Unless required by applicable law or agreed to in writing, software
12-
~ distributed under the License is distributed on an "AS IS" BASIS,
13-
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
~ See the License for the specific language governing permissions and
15-
~ limitations under the License.
16-
-->
17-
183
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
194
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
205
<modelVersion>4.0.0</modelVersion>

Diff for: src/integration-test/java/com/appdynamics/extensions/elasticsearch/IntegrationTestUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

Diff for: src/integration-test/java/com/appdynamics/extensions/elasticsearch/MetricCheckIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

Diff for: src/main/java/com/appdynamics/extensions/elasticsearch/ElasticsearchMonitor.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at
@@ -12,7 +12,6 @@
1212
* See the License for the specific language governing permissions and
1313
* limitations under the License.
1414
*/
15-
//TODO Change all licenses to 2020
1615
package com.appdynamics.extensions.elasticsearch;
1716

1817
import com.appdynamics.extensions.ABaseMonitor;

Diff for: src/main/java/com/appdynamics/extensions/elasticsearch/ElasticsearchMonitorTask.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

Diff for: src/main/java/com/appdynamics/extensions/elasticsearch/endpoints/CatEndpoint.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

Diff for: src/main/java/com/appdynamics/extensions/elasticsearch/endpoints/CatEndpoints.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

Diff for: src/main/java/com/appdynamics/extensions/elasticsearch/endpoints/CatEndpointsUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

Diff for: src/main/java/com/appdynamics/extensions/elasticsearch/metrics/CatMetricsClient.java

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
/*
2-
* Copyright 2018. AppDynamics LLC and its affiliates.
3-
* All Rights Reserved.
4-
* This is unpublished proprietary source code of AppDynamics LLC and its affiliates.
5-
* The copyright notice above does not evidence any actual or intended publication of such source code.
2+
* Copyright (c) 2020 AppDynamics,Inc.
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
614
*/
715

816
package com.appdynamics.extensions.elasticsearch.metrics;

Diff for: src/main/java/com/appdynamics/extensions/elasticsearch/util/Constants.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

Diff for: src/main/java/com/appdynamics/extensions/elasticsearch/util/LineUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

Diff for: src/main/resources/conf/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ metricPrefix: "Server|Component:<ComponentID>|Custom Metrics|Elasticsearch"
77

88
servers:
99
- displayName: Server1
10-
uri: "http://localhost:9200" #TODO clear this before releasing
10+
uri: ""
1111
username: ""
1212
password: ""
1313
encryptedPassword: ""
1414

1515
# To get the metrics through CAT apis
16-
catEndpoints: # TODO : consider moving all this information to a metrics.xml file
16+
catEndpoints:
1717
# shard allocation stats
1818
- endpoint: "/_cat/allocation?v&bytes=b"
1919
displayName: "Allocations"

Diff for: src/main/resources/conf/monitor.xml

-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<!--
4-
~ Copyright (c) 2019 AppDynamics,Inc.
5-
~ Licensed under the Apache License, Version 2.0 (the "License");
6-
~ you may not use this file except in compliance with the License.
7-
~ You may obtain a copy of the License at
8-
~
9-
~ http://www.apache.org/licenses/LICENSE-2.0
10-
~
11-
~ Unless required by applicable law or agreed to in writing, software
12-
~ distributed under the License is distributed on an "AS IS" BASIS,
13-
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
~ See the License for the specific language governing permissions and
15-
~ limitations under the License.
16-
-->
17-
183
<monitor>
194
<name>ElasticsearchMonitor</name>
205
<type>managed</type>

Diff for: src/test/java/com/appdynamics/extensions/elasticsearch/ElasticsearchMonitorTaskTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

Diff for: src/test/java/com/appdynamics/extensions/elasticsearch/endpoints/CatEndpointsUtilTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

Diff for: src/test/java/com/appdynamics/extensions/elasticsearch/metrics/CatMetricsClientTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

Diff for: src/test/java/com/appdynamics/extensions/elasticsearch/util/LineUtilsTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019 AppDynamics,Inc.
2+
* Copyright (c) 2020 AppDynamics,Inc.
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

0 commit comments

Comments
 (0)