本文整理匯總了Java中org.jboss.dmr.ModelNode.add方法的典型用法代碼示例。如果您正苦於以下問題:Java ModelNode.add方法的具體用法?Java ModelNode.add怎麽用?Java ModelNode.add使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.jboss.dmr.ModelNode
的用法示例。
在下文中一共展示了ModelNode.add方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setup
import org.jboss.dmr.ModelNode; //導入方法依賴的package包/類
@Override
public final void setup(final ManagementClient managementClient, final String containerId) throws Exception {
setManagementClient(managementClient);
ModelNode address = new ModelNode();
address.add("subsystem", "neo4j");
address.add("neo4j", "default");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(OP_ADDR).set(address);
operation.get(OP).set(WRITE_ATTRIBUTE_OPERATION);
operation.get(NAME).set("module");
operation.get(VALUE).set("org.neo4j.driver:test");
ModelNode result = executeOperation(operation);
reload();
}
示例2: setup
import org.jboss.dmr.ModelNode; //導入方法依賴的package包/類
@Override
public final void setup(final ManagementClient managementClient, final String containerId) throws Exception {
setManagementClient(managementClient);
ModelNode address = new ModelNode();
address.add("subsystem", "orientdb");
address.add("orient", "default");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(OP_ADDR).set(address);
operation.get(OP).set(WRITE_ATTRIBUTE_OPERATION);
operation.get(NAME).set("module");
operation.get(VALUE).set("com.orientechnologies:test");
ModelNode result = executeOperation(operation);
reload();
}
示例3: setup
import org.jboss.dmr.ModelNode; //導入方法依賴的package包/類
@Override
public final void setup(final ManagementClient managementClient, final String containerId) throws Exception {
setManagementClient(managementClient);
ModelNode address = new ModelNode();
address.add("subsystem", "cassandra");
address.add("cassandra", "default");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(OP_ADDR).set(address);
operation.get(OP).set(WRITE_ATTRIBUTE_OPERATION);
operation.get(NAME).set("module");
operation.get(VALUE).set("com.datastax.cassandra.driver-core:test");
ModelNode result = executeOperation(operation);
reload();
}
示例4: setup
import org.jboss.dmr.ModelNode; //導入方法依賴的package包/類
@Override
public final void setup(final ManagementClient managementClient, final String containerId) throws Exception {
setManagementClient(managementClient);
ModelNode address = new ModelNode();
address.add("subsystem", "mongodb");
address.add("mongo", "default");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(OP_ADDR).set(address);
operation.get(OP).set(WRITE_ATTRIBUTE_OPERATION);
operation.get(NAME).set("module");
operation.get(VALUE).set("org.mongodb.driver:test");
ModelNode result = executeOperation(operation);
reload();
}
示例5: tearDown
import org.jboss.dmr.ModelNode; //導入方法依賴的package包/類
@Override
public void tearDown(final ManagementClient managementClient, final String containerId) throws Exception {
ModelNode address = new ModelNode();
address.add("subsystem", "neo4j");
address.add("neo4j", "default");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(OP_ADDR).set(address);
operation.get(OP).set(WRITE_ATTRIBUTE_OPERATION);
operation.get(NAME).set("module");
operation.get(VALUE).set("org.neo4j.driver:main");
ModelNode result = executeOperation(operation);
reload();
}
示例6: tearDown
import org.jboss.dmr.ModelNode; //導入方法依賴的package包/類
@Override
public void tearDown(final ManagementClient managementClient, final String containerId) throws Exception {
ModelNode address = new ModelNode();
address.add("subsystem", "orientdb");
address.add("orient", "default");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(OP_ADDR).set(address);
operation.get(OP).set(WRITE_ATTRIBUTE_OPERATION);
operation.get(NAME).set("module");
operation.get(VALUE).set("com.orientechnologies:main");
ModelNode result = executeOperation(operation);
reload();
}
示例7: tearDown
import org.jboss.dmr.ModelNode; //導入方法依賴的package包/類
@Override
public void tearDown(final ManagementClient managementClient, final String containerId) throws Exception {
ModelNode address = new ModelNode();
address.add("subsystem", "cassandra");
address.add("cassandra", "default");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(OP_ADDR).set(address);
operation.get(OP).set(WRITE_ATTRIBUTE_OPERATION);
operation.get(NAME).set("module");
operation.get(VALUE).set("com.datastax.cassandra.driver-core:main");
ModelNode result = executeOperation(operation);
reload();
}
示例8: tearDown
import org.jboss.dmr.ModelNode; //導入方法依賴的package包/類
@Override
public void tearDown(final ManagementClient managementClient, final String containerId) throws Exception {
ModelNode address = new ModelNode();
address.add("subsystem", "mongodb");
address.add("mongo", "default");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(OP_ADDR).set(address);
operation.get(OP).set(WRITE_ATTRIBUTE_OPERATION);
operation.get(NAME).set("module");
operation.get(VALUE).set("org.mongodb.driver:main");
ModelNode result = executeOperation(operation);
reload();
}