Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
EddeCCC committed Jul 1, 2024
1 parent d062de8 commit 0623f62
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- "feature/**"
master
-

jobs:
build-and-test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class InspectitAgentExtension implements AgentExtension {
private static final Logger log = LoggerFactory.getLogger(InspectitAgentExtension.class);

/** Hard coded server url, which should configurable in the future */
/** Hard coded server url, which should configurable be in the future */
private static final String SERVER_URL = "https://localhost:8080/api/v1/connections";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
public class HttpClientHolder {
private static final Logger log = LoggerFactory.getLogger(HttpClientHolder.class);

/** Single instance of the HTTP client */
private static CloseableHttpAsyncClient client;

private HttpClientHolder() {}
Expand Down Expand Up @@ -67,6 +68,9 @@ private static RequestConfig getRequestConfig() {
}

/**
* Creates a connection manager to handle HTTPS communication. Currently, only server certificates
* with the common name "localhost" are accepted.
*
* @return the connection manager to handle HTTPS
*/
private static AsyncClientConnectionManager getConnectionManager()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private AgentInfo() {

/**
* @return The agent information as JSON string
* @throws JsonProcessingException
* @throws JsonProcessingException corrupted agent information
*/
public static String getAsString() throws JsonProcessingException {
return mapper.writeValueAsString(INFO);
Expand Down

0 comments on commit 0623f62

Please sign in to comment.