use of org.guvnor.ala.wildfly.model.WildflyProvider in project kie-wb-common by kiegroup.
the class WildflyRuntimeExecExecutor method destroy.
@Override
public void destroy(final RuntimeId runtimeId) {
final Optional<WildflyProvider> _wildflyProvider = runtimeRegistry.getProvider(runtimeId.getProviderId(), WildflyProvider.class);
WildflyProvider wildflyProvider = _wildflyProvider.get();
int result = wildfly.getWildflyClient(wildflyProvider).undeploy(runtimeId.getId());
if (result != 200) {
throw new ProvisioningException("UnDeployment to Wildfly Failed with error code: " + result);
}
runtimeRegistry.deregisterRuntime(runtimeId);
}
Aggregations