![]() |
|||
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
| |||
|
$ java -classpath classpath Client hostname 1099 |
When the connection is established, press Control-C in the agent's window to stop the connector server and the agent application.
This simulates a broken communication channel as seen by the connector client.
Less than a second later, when the next heartbeat fails, the heartbeat retrying notification is displayed in the manager's terminal window. Two seconds later, after both retries have failed, the lost connection and terminated connection notifications are displayed.
Press Enter in the manager window to exit the Client application.
Start the agent in debug mode on another host or in another terminal window with the following command:
$ java -classpath classpath -DLEVEL_DEBUG Agent |
Wait for the agent to be completely initialized, then start the Client application again:
$ java -classpath classpath Client hostname 1099 |
When the connection is established, the periodic heartbeat messages are displayed in the debug output of the agent.
This time, press Control-C in the client's window to stop the connector client and the manager application.
This simulates a broken communication channel as seen by the connector server in the agent.
After the heartbeat retry timeout elapses in the agent, the lost connection message is displayed in the heartbeat debugging output of the agent.
Type Control-C in the agent window to stop the agent application and end the example.
![]() ![]() |