127128129130131132133134
if (!conn.isConnected()) { conn.connect(); } HelixService service = (HelixService) _role; service.start(); }
138139140141142143144145146147148149150151
return ((HelixService) _role).isStarted(); } @Override public void disconnect() { HelixService service = (HelixService) _role; HelixConnection conn = _role.getConnection(); service.stop(); if (conn.isConnected()) { conn.disconnect(); } }