Platform SDK Java 9.0 API Reference

Package com.genesyslab.platform.clusterprotocol

Cluster Protocol Application Block

The Cluster Protocol component is to provide usual Platform SDK Protocol interface for communication with multiple servers configured as a cluster.
It supports following features:

It's implemented as a set of generic classes and several customizations for specific servers protocols.
Due to the nature of the Protocol interface, Cluster Protocol does not support usual automatic handshakes and does not have special handling logic for client sessions.
Following protocols are supported and included in this Application Block:

Usage sample:


 final UcsClusterProtocol ucsNProtocol =
         new UcsClusterProtocolBuilder().build();

 ucsNProtocol.setClientName(myClientName);
 ucsNProtocol.setClientApplicationType(myApplicationType);
 ucsNProtocol.setNodesEndpoints(clusterEndpointsList);

 ucsNProtocol.setNodesEndpoints(
         new Endpoint("ucs1", UCS_1_HOST, UCS_1_PORT),
         new Endpoint("ucs2", UCS_2_HOST, UCS_2_PORT),
         new Endpoint("ucs3", UCS_3_HOST, UCS_3_PORT));

 try {
     ucsNProtocol.open();
     // ...
     EventGetVersion ev1 = (EventGetVersion) ucsNProtocol.request(RequestGetVersion.create());
     System.out.println("UCS version from " + ev1.getEndpoint() + " - " + ev1.getVersion());
     EventGetVersion ev2 = (EventGetVersion) ucsNProtocol.request(RequestGetVersion.create());
     System.out.println("UCS version from " + ev2.getEndpoint() + " - " + ev2.getVersion());
     EventGetVersion ev3 = (EventGetVersion) ucsNProtocol.request(RequestGetVersion.create());
     System.out.println("UCS version from " + ev3.getEndpoint() + " - " + ev3.getVersion());
     // ...
 } finally {
     ucsNProtocol.close();
 }
 

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.