Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 87155e1

Browse files
grogu01grogu01
authored andcommitted
removed conflicting licenses, hostnames
1 parent aa4b700 commit 87155e1

File tree

13 files changed

+138
-274
lines changed

13 files changed

+138
-274
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
target/
2+
pom.xml.tag
3+
pom.xml.releaseBackup
4+
pom.xml.versionsBackup
5+
pom.xml.next
6+
release.properties

docker-monitoring-eparest/sample.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Name or IP address of the docker server host.
22
# This parameter is required. There is no default value.
3-
docker.hostname=bhaab01-U148604
3+
docker.hostname=localhost
44

55
# Port where docker application is listening. This parameter is required.
66
# There is no default value.
@@ -13,7 +13,7 @@ docker.interval.seconds=15
1313

1414
# Hostname or IP address of APM API server. This parameter is required.
1515
# There is no default value.
16-
apm.apihost=bhaab01-U148604
16+
apm.apihost=localhost
1717
# Port for APM API server. This parameter is required.
1818
# There is no default value.
1919
apm.apiport=8080

docker-monitoring-eparest/samplehttps.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Name or IP address of the docker server host.
22
# This parameter is required. There is no default value.
3-
docker.hostname=bhaab01-U150071
3+
docker.hostname=localhost
44

55
# Port where docker application is listening. This parameter is required.
66
# There is no default value.
@@ -13,7 +13,7 @@ docker.interval.seconds=15
1313

1414
# Hostname or IP address of APM API server. This parameter is required.
1515
# There is no default value.
16-
apm.apihost=bhaab01-U148604
16+
apm.apihost=localhost
1717
# Port for APM API server. This parameter is required.
1818
# There is no default value.
1919
apm.apiport=8080

docker-monitoring-eparest/src/main/java/com/ca/docker/Constants.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.ca.docker;
22

3-
import java.math.BigDecimal;
43
/**
54
* This file contains all the constants used in the application
65
* @author bhaab01

docker-monitoring-eparest/src/main/java/com/ca/docker/Container.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public void populateMetricData(Container c)
5757
@Override
5858
public HashMap<String, Comparable<?>> getDockerInfo()
5959
{
60-
// TODO Auto-generated method stub
6160
return containerInfo;
6261
}
6362

docker-monitoring-eparest/src/main/java/com/ca/docker/ContainerStatInfo.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
package com.ca.docker;
22

33
import java.util.HashMap;
4-
import java.util.List;
5-
6-
import com.google.gson.annotations.SerializedName;
74

85
public class ContainerStatInfo
96
implements DockerInfo

docker-monitoring-eparest/src/main/java/com/ca/docker/DataPoller.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.apache.http.HttpResponse;
2525
import org.apache.http.client.HttpClient;
2626
import org.apache.http.client.methods.HttpGet;
27-
import org.apache.http.impl.client.CloseableHttpClient;
2827
import org.apache.http.impl.client.HttpClients;
2928
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
3029
import org.codehaus.jackson.JsonNode;

docker-monitoring-eparest/src/main/java/com/ca/docker/DockerCertificates.java

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,24 @@
1-
/*
2-
* Copyright (c) 2014 Spotify AB.
3-
*
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,
11-
* software distributed under the License is distributed on an
12-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13-
* KIND, either express or implied. See the License for the
14-
* specific language governing permissions and limitations
15-
* under the License.
16-
*/
17-
181
package com.ca.docker;
192

20-
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
21-
import org.apache.http.conn.ssl.SSLContexts;
22-
import org.apache.http.conn.ssl.X509HostnameVerifier;
23-
import org.bouncycastle.openssl.PEMKeyPair;
24-
import org.bouncycastle.openssl.PEMParser;
25-
26-
import java.io.IOException;
273
import java.nio.charset.Charset;
284
import java.nio.file.Files;
295
import java.nio.file.Path;
306
import java.nio.file.Paths;
317
import java.security.KeyFactory;
32-
import java.security.KeyManagementException;
338
import java.security.KeyStore;
34-
import java.security.KeyStoreException;
35-
import java.security.NoSuchAlgorithmException;
369
import java.security.PrivateKey;
37-
import java.security.UnrecoverableKeyException;
3810
import java.security.cert.Certificate;
39-
import java.security.cert.CertificateException;
4011
import java.security.cert.CertificateFactory;
41-
import java.security.spec.InvalidKeySpecException;
4212
import java.security.spec.PKCS8EncodedKeySpec;
4313

4414
import javax.net.ssl.SSLContext;
4515

16+
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
17+
import org.apache.http.conn.ssl.SSLContexts;
18+
import org.apache.http.conn.ssl.X509HostnameVerifier;
19+
import org.bouncycastle.openssl.PEMKeyPair;
20+
import org.bouncycastle.openssl.PEMParser;
21+
4622
/**
4723
* DockerCertificates holds certificates for connecting to an HTTPS-secured Docker instance with
4824
* client/server authentication.

0 commit comments

Comments
 (0)