Skip to content

Commit 090d277

Browse files
authored
Merge pull request #11 from Appdynamics/v2.0.4
V2.0.4
2 parents 7a59edb + 34e07c2 commit 090d277

File tree

161 files changed

+2713
-1560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+2713
-1560
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# AppDynamics Extensions SDK CHANGELOG
2+
3+
## 2.0.4 - Mar 13, 2018
4+
1. Implemented mutual SSL Authentication
5+
6+
## 2.0.3.1 - Feb 27, 2018 (UNRELEASED --> MERGED with v2.0.4)
7+
1. Added args(task arguments from monitor.xml) as an argument to the initializeMoreStuff() method.
8+
2. Added Copyright header to all the files.
9+
3. Removed jsr dependency from pom.xml.
10+
4. Packaged LICENSE.txt and NOTICE.txt.
11+
5. Made the names for passwordEncrypted and encryptionKey consistent.
12+
6. Refactored dashboard module to be consistent with CloseableHttpClientUsage(except the uploadFile() method).
13+
7. Fixed the bug caused by casting ThreadPoolExecutor to ScheduledThreadPoolExecutor.
14+
15+
## 2.0.3 - Feb 02, 2018 (UNRELEASED --> MERGED with v2.0.4)
16+
1. Provided a method in ABaseMonitor that can be used to set FileWatchListener callback in the setConfigYml() method of MonitorConfiguration when it is called in the initialize() method of ABaseMonitor.
17+
2. Added changes from the commons version 1.6.6.1, related to CSRF token for accessing controller APIs in the CustomDashboardUploader.
18+
19+
## 2.0.2 - Jan 23, 2018
20+
1. Added a catch statement in the TaskExecutionServiceProvider to catch a throwable(Errors that occur while executing tasks) and print errors as a log statement.
21+
22+
## 2.0.1 - Nov 28, 2017
23+
1. Fixed a bug for delta metrics when the metric value is null
24+
2. Added more test cases.
25+
26+
## 2.0.0 - Nov 02, 2017
27+
1. Modularized the MonitorConfiguration class.
28+
2. Added DerivedMetricsCalculation feature.
29+
3. Added Metric data structure and Transformers(alias, delta, multiplier, convert, rounding).
30+
4. Added feature to make extension job runs independent.
31+
5. Increased the unit test coverage.
32+
33+
34+
35+
36+
37+

LICENSE.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2018 AppDynamics LLC and its affiliates
2+
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.

NOTICE.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Notice and Disclaimer
2+
3+
All Extensions published by AppDynamics are governed by the Apache License v2 and are excluded from the definition of covered software under any agreement between AppDynamics and the User governing AppDynamics Pro Edition, Test & Dev Edition, or any other Editions.
4+

pom.xml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
1+
<!--
2+
~ Copyright (c) 2018 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.
14+
-->
15+
116
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
217
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
318
<modelVersion>4.0.0</modelVersion>
419

520
<groupId>com.appdynamics</groupId>
621
<artifactId>appd-exts-commons</artifactId>
7-
<version>2.0.3</version>
22+
<version>2.0.4</version>
823
<packaging>jar</packaging>
924
<name>extension-utils</name>
1025
<properties>
@@ -50,6 +65,11 @@
5065
<version>4.3.5</version>
5166
<scope>provided</scope>
5267
</dependency>
68+
<dependency>
69+
<groupId>org.apache.httpcomponents</groupId>
70+
<artifactId>httpmime</artifactId>
71+
<version>4.3.5</version>
72+
</dependency>
5373
<dependency>
5474
<groupId>com.appdynamics</groupId>
5575
<artifactId>machineagent-repackaged</artifactId>
@@ -62,11 +82,6 @@
6282
<version>1.2.17</version>
6383
<scope>provided</scope>
6484
</dependency>
65-
<dependency>
66-
<groupId>javax.ws.rs</groupId>
67-
<artifactId>jsr311-api</artifactId>
68-
<version>1.1.1</version>
69-
</dependency>
7085
<dependency>
7186
<groupId>org.nanohttpd</groupId>
7287
<artifactId>nanohttpd</artifactId>
@@ -197,6 +212,8 @@
197212
<mkdir dir="${maven.repo.dir}"/>
198213
<copy todir="${maven.repo.dir}">
199214
<fileset dir="target" includes="*.jar"/>
215+
<fileset dir="${project.basedir}" includes="LICENSE.txt"/>
216+
<fileset dir="${project.basedir}" includes="NOTICE.txt"/>
200217
</copy>
201218
<copy tofile="${maven.repo.dir}/${project.artifactId}-${project.version}.pom" file="pom.xml"/>
202219
<copy todir="../maven-repo/releases/com/appdynamics/${project.artifactId}"

src/main/java/com/appdynamics/extensions/ABaseMonitor.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (c) 2018 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.
14+
*/
15+
116
package com.appdynamics.extensions;
217

318
import com.appdynamics.extensions.conf.MonitorConfiguration;
@@ -99,7 +114,7 @@ public void onFileChange(File file) {
99114
onConfigReload(file);
100115
}
101116
});
102-
initializeMoreStuff(conf);
117+
initializeMoreStuff(args, conf);
103118
this.configuration = conf;
104119
}
105120
}
@@ -115,7 +130,7 @@ protected AMonitorJob createMonitorJob() {
115130
* custom objects to be initialized in the monitor.
116131
* @param conf
117132
*/
118-
protected void initializeMoreStuff(MonitorConfiguration conf) {
133+
protected void initializeMoreStuff(Map<String, String> args, MonitorConfiguration conf) {
119134
;
120135
}
121136

src/main/java/com/appdynamics/extensions/AMonitorJob.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (c) 2018 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.
14+
*/
15+
116
package com.appdynamics.extensions;
217

318

src/main/java/com/appdynamics/extensions/AMonitorTaskRunnable.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (c) 2018 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.
14+
*/
15+
116
package com.appdynamics.extensions;
217

318
/**

src/main/java/com/appdynamics/extensions/ConcealedMonitorExecutorService.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (c) 2018 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.
14+
*/
15+
116
package com.appdynamics.extensions;
217

318
import java.util.List;

src/main/java/com/appdynamics/extensions/MetricWriteHelper.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (c) 2018 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.
14+
*/
15+
116
package com.appdynamics.extensions;
217

318
import com.appdynamics.extensions.metrics.Metric;

src/main/java/com/appdynamics/extensions/MetricWriteHelperFactory.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (c) 2018 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.
14+
*/
15+
116
package com.appdynamics.extensions;
217

318
import com.appdynamics.extensions.conf.MonitorConfiguration;

0 commit comments

Comments
 (0)