In current version, when opensergo-control-plane was shutdown , opensergo-java-sdk could not reconnect to opensergo-control-plane. So i improved it.
1、add an enum to defined the status of OpensergoClient.
2、add a keepalive function which was invoked in the start process of OpensergoClient.
3、record and change status for the OpensergoClient instance.
To keep OpensergoClient always be alived.
In current version, when
opensergo-control-plane
was shutdown ,opensergo-java-sdk
could not reconnect toopensergo-control-plane
. So i improved it.1、add an enum to defined the status of OpensergoClient. 2、add a keepalive function which was invoked in the start process of OpensergoClient. 3、record and change status for the OpensergoClient instance.