All Downloads are FREE. Search and download functionalities are using the official Maven repository.

prompto.debug.request.GetWorkersDebugRequest Maven / Gradle / Ivy

The newest version!
package prompto.debug.request;

import java.util.Collection;

import prompto.debug.IDebugger;
import prompto.debug.response.GetWorkersDebugResponse;
import prompto.debug.worker.IWorker;

public class GetWorkersDebugRequest implements IDebugRequest {

	public GetWorkersDebugRequest() {
	}

	@Override
	public GetWorkersDebugResponse execute(IDebugger debugger) {
		Collection workers = debugger.getWorkers();
		return new GetWorkersDebugResponse(workers);
	}
	
	@Override
	public int hashCode() {
		return this.getClass().hashCode();
	}

	@Override
	public boolean equals(Object other) {
		return other==this || other instanceof GetWorkersDebugRequest;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy