I have managed to set a host SPM priority using
SpmBuilder spmBuilder = new SpmBuilder().priority(7);
sysService.hostsService().hostService(host.id()).update().host(host().spm(spmBuilder)).send();
However I cannot use similar code to set a Host to SPM. I currently have 2 active hosts in
the same cluster in my system. Through the UI I can move SPM back and forth between them,
but it is not working in the SDK. Any help appreciated.
Show replies by date