Search in sources :

Example 1 with WrongApplicationIdException

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();
}
Also used : WrongApplicationIdException(org.objectweb.proactive.extensions.dataspaces.exceptions.WrongApplicationIdException) NamingService(org.objectweb.proactive.extensions.dataspaces.core.naming.NamingService)

Aggregations

NamingService (org.objectweb.proactive.extensions.dataspaces.core.naming.NamingService)1 WrongApplicationIdException (org.objectweb.proactive.extensions.dataspaces.exceptions.WrongApplicationIdException)1