Platform SDK Java 9.0 API Reference

Package com.genesyslab.platform.clusterprotocol.esp

External Service Cluster Protocol.

Usage sample:


 final EspClusterProtocol espNProtocol =
         new EspClusterProtocolBuilder().build();

 espNProtocol.setNodesEndpoints(
         new Endpoint("srv1", ESP_1_HOST, ESP_1_PORT),
         new Endpoint("srv2", ESP_2_HOST, ESP_2_PORT),
         new Endpoint("srv3", ESP_3_HOST, ESP_3_PORT));

 try {
     espNProtocol.open();
     // ...
     Event3rdServerResponse ev1 = (Event3rdServerResponse) espNProtocol.request(Request3rdServer.create());
     System.out.println("Response from " + ev1.getEndpoint() + " - " + ev1);
     Event3rdServerResponse ev2 = (Event3rdServerResponse) espNProtocol.request(Request3rdServer.create());
     System.out.println("Response from " + ev2.getEndpoint() + " - " + ev2);
     Event3rdServerResponse ev3 = (Event3rdServerResponse) espNProtocol.request(Request3rdServer.create());
     System.out.println("Response from " + ev3.getEndpoint() + " - " + ev3);
     // ...
 } finally {
     espNProtocol.close();
 }
 
See Also:
EspClusterProtocolBuilder, ExternalServiceProtocol, com.genesyslab.platform.openmedia.protocol.externalservice.request
Skip navigation links
Platform SDK Java 9.0 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.