public Values andOptional(String name, ModelNode value) { if (value == null) return this; return and(name, value); }
public void addCache(String name, String cacheContainer, String baseConfiguration, String cacheType) throws Exception { ops.add(Address.subsystem("datagrid-infinispan") .and("cache-container", cacheContainer) .and(cacheType, name), Values.empty() .andOptional("configuration", baseConfiguration) .and("start", "EAGER") .and("mode", "SYNC")); }
public Values andOptional(String name, Long value) { if (value == null) return this; return and(name, value); }
public void addCacheConfiguration(String name, String cacheContainer, CacheTemplate template) throws Exception { ops.add(Address.subsystem("datagrid-infinispan") .and("cache-container", cacheContainer) .and("configurations", "CONFIGURATIONS") .and(template.getType(), name), Values.empty() .and("mode", "SYNC") .andOptional("start", "EAGER")); }
public static Values of(String name, int value) { return EMPTY.and(name, value); }
public Values andOptional(String name, Double value) { if (value == null) return this; return and(name, value); }
public Values andOptional(String name, Integer value) { if (value == null) return this; return and(name, value); }
public Values andOptional(String name, String value) { if (value == null) return this; return and(name, value); }
public static Values of(String name, String value) { return EMPTY.and(name, value); }
public static Values of(String name, ModelNode value) { return EMPTY.and(name, value); }
public Values andOptional(String name, Boolean value) { if (value == null) return this; return and(name, value); }
public static Values of(String name, double value) { return EMPTY.and(name, value); }
public static Values of(String name, boolean value) { return EMPTY.and(name, value); }
public void addRestEndpoint(String name, String cacheContainer, String cache, String socketBinding) throws Exception { ops.add(Address.subsystem("datagrid-infinispan-endpoint") .and("rest-connector", name), Values.empty() .and("cache-container", cacheContainer) .and("cache", cache) .and("socket-binding", socketBinding)); }
public void addMemcachedEndpoint(String name, String cacheContainer, String cache, String socketBinding) throws Exception { ops.add(Address.subsystem("datagrid-infinispan-endpoint") .and("memcached-connector", name), Values.empty() .and("cache-container", cacheContainer) .and("cache", cache) .and("socket-binding", socketBinding)); }
public void addHotRodEndpoint(String name, String cacheContainer, String cache, String socketBinding) throws Exception { ops.add(Address.subsystem("datagrid-infinispan-endpoint") .and("hotrod-connector", name), Values.empty() .and("cache-container", cacheContainer) .and("cache", cache) .and("socket-binding", socketBinding)); }
public void addRemotingConnector(String socketBinding) throws Exception { ops.add(Address.subsystem("remoting") .and("connector", "remoting-connector"), Values.empty() .and("socket-binding", socketBinding) .and("security-realm", "ApplicationRealm")); ops.add(Address.subsystem("jmx") .and("remoting-connector", "jmx"), //this has to be "jmx" name Values.empty() .and("use-management-endpoint", "false")); }
public void addSocketBinding(String name, String socketBindingGroup, int port) throws Exception { ops.add(Address.of("socket-binding-group", socketBindingGroup) .and("socket-binding", name), Values.empty() .and("port", port)); }