if (this.instanceListener == null) {
throw new InstanceException("instanceListener not registered with TestInstanceManager");
}
final InstanceListener il = this.instanceListener;
final Runnable runnable = new Runnable() {
/**
* {@inheritDoc}
*/
@Override
public void run() {
il.resourcesAllocated(jobID, allocatedResources);
}
};
new Thread(runnable).start();
}