use of org.objectweb.proactive.extensions.dataspaces.exceptions.WrongApplicationIdException in project scheduling by ow2-proactive.
the class SchedulerDataspace method endActivity.
@Override
public void endActivity(Body body) {
taskDataSpaceApplication.terminateDataSpaceApplication();
Set<String> registeredApplications = dataSpaceServiceStarter.getNamingService().getRegisteredApplications();
NamingService namingService = dataSpaceServiceStarter.getNamingService();
for (String registeredApplication : registeredApplications) {
try {
namingService.unregisterApplication(registeredApplication);
} catch (WrongApplicationIdException e) {
throw new IllegalStateException(e);
}
}
dataSpaceServiceStarter.terminateNamingService();
dataSpaceServiceStarter.clearSpaceConfigurations();
}
Aggregations