本文整理汇总了Java中org.jboss.dmr.ModelNode.protect方法的典型用法代码示例。如果您正苦于以下问题:Java ModelNode.protect方法的具体用法?Java ModelNode.protect怎么用?Java ModelNode.protect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jboss.dmr.ModelNode
的用法示例。
在下文中一共展示了ModelNode.protect方法的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();
}