當前位置: 首頁>>代碼示例>>Java>>正文


Java ModelNode.add方法代碼示例

本文整理匯總了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();
}
 
開發者ID:wildfly,項目名稱:wildfly-nosql,代碼行數:17,代碼來源:CustomModuleTestCase.java

示例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();
}
 
開發者ID:wildfly,項目名稱:wildfly-nosql,代碼行數:17,代碼來源:CustomModuleTestCase.java

示例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();
}
 
開發者ID:wildfly,項目名稱:wildfly-nosql,代碼行數:17,代碼來源:CustomModuleTestCase.java

示例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();
}
 
開發者ID:wildfly,項目名稱:wildfly-nosql,代碼行數:17,代碼來源:CustomModuleTestCase.java

示例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();
}
 
開發者ID:wildfly,項目名稱:wildfly-nosql,代碼行數:16,代碼來源:CustomModuleTestCase.java

示例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();
}
 
開發者ID:wildfly,項目名稱:wildfly-nosql,代碼行數:16,代碼來源:CustomModuleTestCase.java

示例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();
}
 
開發者ID:wildfly,項目名稱:wildfly-nosql,代碼行數:16,代碼來源:CustomModuleTestCase.java

示例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();
}
 
開發者ID:wildfly,項目名稱:wildfly-nosql,代碼行數:16,代碼來源:CustomModuleTestCase.java


注:本文中的org.jboss.dmr.ModelNode.add方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。