You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/06/18 09:43:42 UTC

[sling-whiteboard] branch feature/final-cleanups created (now f0d5f82)

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a change to branch feature/final-cleanups
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git.


      at f0d5f82  Tweak comments in pom.xml

This branch includes the following new commits:

     new bbd4dc6  Include OK HTTP in the README
     new dc0591f  Update artifactId
     new 6af88bd  Remove Agent-Class from manifest
     new f0d5f82  Tweak comments in pom.xml

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[sling-whiteboard] 04/04: Tweak comments in pom.xml

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feature/final-cleanups
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit f0d5f822c2f879ad75fb74f801db01ccdf561c40
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Jun 18 11:39:36 2019 +0200

    Tweak comments in pom.xml
---
 url-connection-agent/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/url-connection-agent/pom.xml b/url-connection-agent/pom.xml
index 3a51c61..2a6416e 100644
--- a/url-connection-agent/pom.xml
+++ b/url-connection-agent/pom.xml
@@ -76,7 +76,7 @@
                 </configuration>
             </plugin>
             <plugin>
-                <!-- Run certain ITs in the integration-test phase, once the agent jar is packaged -->
+                <!-- Run ITs in the integration-test phase, once the agent jar is packaged -->
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-failsafe-plugin</artifactId>
                 <executions>


[sling-whiteboard] 03/04: Remove Agent-Class from manifest

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feature/final-cleanups
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit 6af88bdc4e09fc2249146a612ed84dafbc2353a1
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Jun 18 11:38:16 2019 +0200

    Remove Agent-Class from manifest
    
    The agent does not support starting after the VM itself has started, so don't advertise is in the manifest.
---
 url-connection-agent/pom.xml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/url-connection-agent/pom.xml b/url-connection-agent/pom.xml
index 07f5a39..3a51c61 100644
--- a/url-connection-agent/pom.xml
+++ b/url-connection-agent/pom.xml
@@ -45,7 +45,6 @@
                             <archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
                             <archive>
                                 <manifestEntries>
-                                    <Agent-Class>org.apache.sling.uca.impl.Agent</Agent-Class>
                                     <Premain-Class>org.apache.sling.uca.impl.Agent</Premain-Class>
                                     <Can-Redefine-Classes>true</Can-Redefine-Classes>
                                     <Can-Retransform-Classes>true</Can-Retransform-Classes>


[sling-whiteboard] 02/04: Update artifactId

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feature/final-cleanups
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit dc0591f2e1270cbb8025cfefc121c7e469091521
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Jun 18 11:35:54 2019 +0200

    Update artifactId
---
 url-connection-agent/README.md | 8 ++++----
 url-connection-agent/pom.xml   | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/url-connection-agent/README.md b/url-connection-agent/README.md
index 23a1692..96995aa 100644
--- a/url-connection-agent/README.md
+++ b/url-connection-agent/README.md
@@ -17,7 +17,7 @@ It currently supports setting timeouts for HTTP connections done using:
 
 Build the project with `mvn clean package` and then run a simple connection test with 
 
-    java -javaagent:target/url-connection-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=<connect-timeout>,<read-timeout> -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher <url> <client-type>
+    java -javaagent:target/org.apache.sling.connection-timeout-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=<connect-timeout>,<read-timeout> -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher <url> <client-type>
     
  The parameters are as follows:
  
@@ -30,14 +30,14 @@ Build the project with `mvn clean package` and then run a simple connection test
  For a test that always fails, set one of the timeouts to 1. Both executions listed below will typically fail:
  
  ```
-java -javaagent:target/url-connection-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1,1000 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet
-java -javaagent:target/url-connection-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1000,1 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet
+java -javaagent:target/org.apache.sling.connection-timeout-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1,1000 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet
+java -javaagent:target/org.apache.sling.connection-timeout-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1000,1 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet
  ```
  
 In contrast, the execution below should succeed:
 
 ```
-java -javaagent:target/url-connection-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1000,1000 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet
+java -javaagent:target/org.apache.sling.connection-timeout-agent-0.0.1-SNAPSHOT-jar-with-dependencies.jar=1000,1000 -cp target/test-classes:target/it-dependencies/* org.apache.sling.uca.impl.HttpClientLauncher https://sling.apache.org JavaNet
 ```
 
 To use this in your own project you should 
diff --git a/url-connection-agent/pom.xml b/url-connection-agent/pom.xml
index d37503b..07f5a39 100644
--- a/url-connection-agent/pom.xml
+++ b/url-connection-agent/pom.xml
@@ -26,7 +26,7 @@
         <version>35</version>
         <relativePath/>
     </parent>
-    <artifactId>url-connection-agent</artifactId>
+    <artifactId>org.apache.sling.connection-timeout-agent</artifactId>
     <version>0.0.1-SNAPSHOT</version>
 
     <build>


[sling-whiteboard] 01/04: Include OK HTTP in the README

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feature/final-cleanups
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit bbd4dc6e6f0840f3aa1fb27b8e5d4de045c79161
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Jun 18 10:59:19 2019 +0200

    Include OK HTTP in the README
---
 url-connection-agent/README.md | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/url-connection-agent/README.md b/url-connection-agent/README.md
index 1efcc94..23a1692 100644
--- a/url-connection-agent/README.md
+++ b/url-connection-agent/README.md
@@ -11,6 +11,7 @@ It currently supports setting timeouts for HTTP connections done using:
 * [java.net.URL](https://docs.oracle.com/javase/7/docs/api/java/net/URL.html) and/or [java.net.URLConnection](https://docs.oracle.com/javase/7/docs/api/java/net/URLConnection.html)
 * [Apache Commons HttpClient 3.x](https://hc.apache.org/httpclient-3.x/)
 * [Apache HttpComponents Client 4.x](https://hc.apache.org/httpcomponents-client-ga/)
+* [OK Http](https://square.github.io/okhttp/)
 
 ## Validation
 
@@ -23,7 +24,7 @@ Build the project with `mvn clean package` and then run a simple connection test
  - `<connect-timeout>` - connection timeout in milliseconds
  - `<read-timeout>`- read timeout in milliseconds
  - `<url>` - the URL to access
- - `<client-type>` - the client type, either `JavaNet` for java.net.URL-based connections ,`HC3` for Apache Commons HttpClient 3.x or `HC4` for Apache Commons HttpClient 4.x
+ - `<client-type>` - the client type, either `JavaNet` for java.net.URL-based connections ,`HC3` for Apache Commons HttpClient 3.x, `HC4` for Apache Commons HttpClient 4.x or `OkHttp` for OK HTTP.
  
  
  For a test that always fails, set one of the timeouts to 1. Both executions listed below will typically fail:
@@ -46,4 +47,5 @@ To use this in your own project you should
 * openjdk version "1.8.0_212"
 * openjdk version "11.0.2" 2019-01-15
 * commons-httpclient 3.1
-* httpclient 4.5.4
\ No newline at end of file
+* httpclient 4.5.4
+* okhttp 3.14.2
\ No newline at end of file