@Req("REQ016") public void unwantedWorker(ServiceID workerID, RequestSpecification requestSpec) { UnwantedWorkerRequestTO to = new UnwantedWorkerRequestTO(); to.setRequestSpec(requestSpec); to.setSenderPublicKey(serviceManager.getSenderPublicKey()); if (workerID != null) { to.setWorkerAddress(workerID.toString()); to.setWorkerPublicKey(workerID.getPublicKey()); } OurGridRequestControl.getInstance().execute(to, serviceManager); }
@Req("REQ015") public void disposeWorker(ServiceID workerServiceID) { String brokerPublicKey = serviceManager.getSenderPublicKey(); DisposeWorkerRequestTO to = new DisposeWorkerRequestTO(); to.setBrokerPublicKey(brokerPublicKey); if (workerServiceID != null) { to.setWorkerAddress(workerServiceID.toString()); to.setWorkerUserAtServer(workerServiceID.getContainerID().getUserAtServer()); to.setWorkerPublicKey(workerServiceID.getPublicKey()); } OurGridRequestControl.getInstance().execute(to, serviceManager); }