public static Instance getInstance(final TaskOperationProtocol top, int numSlots) throws Exception {
HardwareDescription hardwareDescription = new HardwareDescription(4, 2L*1024*1024*1024, 1024*1024*1024, 512*1024*1024);
InetAddress address = InetAddress.getByName("127.0.0.1");
InstanceConnectionInfo connection = new InstanceConnectionInfo(address, 10000, 10001);
return new Instance(connection, new InstanceID(), hardwareDescription, numSlots) {
@Override
public TaskOperationProtocol getTaskManagerProxy() {
return top;
}
};