/** * Reverts all configuration done for Elytron * @throws Exception */ private void cleanUpElytron() throws Exception { try { ops.removeIfExists(UNDERTOW_APPLICATION_SECURITY_DOMAIN_ADDRESS); ops.removeIfExists(ELYTRON_PROP_HTTP_AUTHENTICATION_FACTORY_ADDRESS); ops.removeIfExists(ELYTRON_SECURITY_DOMAIN_ADDRESS); ops.removeIfExists(ELYTRON_PROPERTIES_REALM_ADDRESS); administration.reloadIfRequired(); } finally { managementClient.close(); } }
/** * Reverts all configuration done for PicketBox * @throws Exception */ private void cleanUpPicketBox() throws Exception { try { ops.removeIfExists(PICKETBOX_SECURITY_DOMAIN_ADDRESS); administration.reloadIfRequired(); } finally { managementClient.close(); } } }
/** * Removes given {@code server} from given {@code host} * * @return {@code true} if the server was actually removed, {@code false} otherwise */ public boolean removeServer(String host, String server) throws IOException, OperationException { return ops.removeIfExists(Address.host(host).and(Constants.SERVER_CONFIG, server)); } }
public void removeSocketBinding(String name, String socketBindingGroup) throws Exception { ops.removeIfExists(Address.of("socket-binding-group", socketBindingGroup) .and("socket-binding", name)); }
public void removeHotRodEndpoint(String name) throws Exception { ops.removeIfExists(Address.subsystem("datagrid-infinispan-endpoint") .and("hotrod-connector", name)); }
public void removeRemotingConnector(String socketBinding) throws Exception { ops.removeIfExists(Address.subsystem("jmx") .and("remoting-connector", "jmx")); ops.removeIfExists(Address.subsystem("remoting") .and("connector", "remoting-connector")); }
public void removeMemcachedEndpoint(String name) throws Exception { ops.removeIfExists(Address.subsystem("datagrid-infinispan-endpoint") .and("memcached-connector", name)); }
public void removeCacheContainer(String name) throws Exception { ops.removeIfExists(Address.subsystem("datagrid-infinispan") .and("cache-container", name)); }
public void removeRestEndpoint(String name) throws Exception { ops.removeIfExists(Address.subsystem("datagrid-infinispan-endpoint") .and("rest-connector", name)); }
public void removeConfigurations(String cacheContainer) throws Exception { ops.removeIfExists(Address.subsystem("datagrid-infinispan") .and("cache-container", cacheContainer) .and("configurations", "CONFIGURATIONS")); }
public void removeCache(String name, String cacheContainer, String cacheType) throws Exception { ops.removeIfExists(Address.subsystem("datagrid-infinispan") .and("cache-container", cacheContainer) .and(cacheType, name)); }
public void removeCacheConfiguration(String name, String cacheContainer, CacheTemplate template) throws Exception { ops.removeIfExists(Address.subsystem("datagrid-infinispan") .and("cache-container", cacheContainer) .and("configurations", "CONFIGURATIONS") .and(template.getType(), name)); }