Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.5 json stable under load #45

Merged
merged 15 commits into from
Apr 17, 2018

Conversation

eupakhomov
Copy link
Contributor

No description provided.

…anage traffic for mobile connections)

Server/client links are reset after server/client is closed
Communicator logic to detect offline case relies on the closed flag
Cosmetics
Session id added to session, getter added to ISession
Stack trace omitted for logging not connected exception
Cosmetics
NotConnectedException is thrown if session is not found while trying to send request to a client
UUID belongs to session
To simplify code Draft_6455 from the WebScoket implementation is used instead of self-made draft
Feauture repos are logged on start with info level
Log messages with debug level added to WebTransmitter on open/close/error events
Cosmetics
@coveralls
Copy link

coveralls commented Apr 16, 2018

Coverage Status

Coverage decreased (-3.7%) to 50.036% when pulling 4203764 on eupakhomov:0.5_json_stable_under_load into 4821388 on ChargeTimeEU:master.

Eugene Pakhomov added 6 commits April 16, 2018 11:43
- backward compatibility of exposed API preserved
- symmetric implementation for server and client
- fail-fast for server/client builders for WSS not initialized with SSLContext/SSLSocketFactory
- More explanatory exception for scheme and configuration mismatch for client than just NPE
WssFactoryBuilder and WssSocketBuilder now expose only the minimum required API
# Conflicts:
#	ocpp-v1_6/src/main/java/eu/chargetime/ocpp/JSONServer.java
@codecov-io
Copy link

codecov-io commented Apr 17, 2018

Codecov Report

Merging #45 into master will decrease coverage by 3.13%.
The diff coverage is 4.4%.

@@             Coverage Diff              @@
##             master      #45      +/-   ##
============================================
- Coverage     51.09%   47.95%   -3.14%     
+ Complexity      673      664       -9     
============================================
  Files           157      156       -1     
  Lines          2558     2696     +138     
  Branches        180      194      +14     
============================================
- Hits           1307     1293      -14     
- Misses         1183     1335     +152     
  Partials         68       68

@eupakhomov
Copy link
Contributor Author

@sumlin I am trying to avoid to spend double effort making tests for not yet synchronized codebase. I tried to create pull requests in a way to add functionality incrementally to make it easier to merge. Once we are in sync I will migrate tests (which I already have done for standalone parts like utilities).

private static final Logger logger = LoggerFactory.getLogger(JSONClient.class);

public final Draft draftOcppOnly =
new Draft_6455(Collections.emptyList(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be initiated in composite root (read the constructor).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initialization moved to constructor.

private static final Logger logger = LoggerFactory.getLogger(JSONServer.class);

public final Draft draftOcppOnly =
new Draft_6455(Collections.emptyList(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be initiated in composite root (read the constructor).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initialization moved to constructor.

@TVolden
Copy link
Member

TVolden commented Apr 17, 2018

The IC shows a compile issue:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project v1_6: Compilation failure
[ERROR] /home/travis/build/ChargeTimeEU/Java-OCA-OCPP/ocpp-v1_6/src/main/java/eu/chargetime/ocpp/JSONClient.java:[96,27] cannot find symbol
[ERROR]   symbol:   class SSLContext
[ERROR]   location: class eu.chargetime.ocpp.JSONClient


import javax.net.ssl.SSLContext;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverting the external API changes makes this line necessary again. A merge problem. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true. Fixed.

@TVolden TVolden merged commit 4c8ba16 into ChargeTimeEU:master Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants