An instance of this interface can be retrieved from the {@link IntegrationServer} using thefollowing code:
IntegrationServer server = IntegrationServer.getInstance(); Admin call = server.getServerCall(Admin.class);
4950515253545556
@Override protected void runImpl() throws InterruptedException { updateEngine(EnumSet.of(ServerStatus.UNDEFINED), getName() + "..."); setMessage("Retrieving the status from the server"); IntegrationServer server = IntegrationServer.getInstance(); Admin call = server.getServerCall(Admin.class); getEngine().requestStatus(call, detailLevel, (GetStatusCallback) getCallback()); }
4041424344454647
@Override protected void runImpl() throws InterruptedException { updateEngine(EnumSet.of(ServerStatus.STOPPING), getName() + "..."); setMessage("Sending stop request to the server"); IntegrationServer server = IntegrationServer.getInstance(); Admin call = server.getServerCall(Admin.class); getEngine().stop(call, (StopCallback) getCallback()); }
3031323334353637
@Override protected void runImpl() throws InterruptedException { updateEngine(EnumSet.of(ServerStatus.STARTING), getName() + "..."); setMessage("Sending start request to the server"); IntegrationServer server = IntegrationServer.getInstance(); Admin call = server.getServerCall(Admin.class); getEngine().start(call, (StartCallback) getCallback()); }