public interface JLupinLoadBalancer
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns load balancer name.
|
byte[] |
sendJLupinInputParameterAndGetOutputParameterAsByteArray(String microserviceName,
byte[][] jlupinInputParameterAsByteArray,
PortType portType)
Send serialized
JLupinInputParameter to provided microservice to provided
port. |
void |
start()
Starts internal resources for load balancing.
|
void |
stop()
Stops internal resources for load balancing.
|
byte[] sendJLupinInputParameterAndGetOutputParameterAsByteArray(String microserviceName, byte[][] jlupinInputParameterAsByteArray, PortType portType) throws JLupinLoadBalancerException, JLupinNotConnectedWithServerException
JLupinInputParameter
to provided microservice to provided
port.microserviceName
- name of microservice to handle calljlupinInputParameterAsByteArray
- serialized JLupinInputParameter
portType
- type of port on which send dataJLupinOutputParameter
JLupinLoadBalancerException
- on execution errorJLupinNotConnectedWithServerException
- on connection errorString getName()
void start()
void stop()