org.jboss.as.clustering.controller.Operations.createAttributeOperation()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中org.jboss.as.clustering.controller.Operations.createAttributeOperation()方法的一些代码示例,展示了Operations.createAttributeOperation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operations.createAttributeOperation()方法的具体详情如下:
包路径:org.jboss.as.clustering.controller.Operations
类名称:Operations
方法名:createAttributeOperation

Operations.createAttributeOperation介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

/**
 * Creates a read-attribute operation using the specified address and name.
 * @param address a resource path
 * @param attribute an attribute
 * @return a read-attribute operation
 */
public static ModelNode createReadAttributeOperation(PathAddress address, Attribute attribute) {
  return createAttributeOperation(ModelDescriptionConstants.READ_ATTRIBUTE_OPERATION, address, attribute);
}

代码示例来源:origin: wildfly/wildfly

/**
 * Creates an undefine-attribute operation using the specified address and name.
 * @param address a resource path
 * @param attribute an attribute
 * @return an undefine-attribute operation
 */
public static ModelNode createUndefineAttributeOperation(PathAddress address, Attribute attribute) {
  return createAttributeOperation(ModelDescriptionConstants.UNDEFINE_ATTRIBUTE_OPERATION, address, attribute);
}

代码示例来源:origin: wildfly/wildfly

/**
 * Creates a write-attribute operation using the specified address, name and value.
 * @param address a resource path
 * @param attribute an attribute
 * @param value an attribute value
 * @return a write-attribute operation
 */
public static ModelNode createWriteAttributeOperation(PathAddress address, Attribute attribute, ModelNode value) {
  ModelNode operation = createAttributeOperation(ModelDescriptionConstants.WRITE_ATTRIBUTE_OPERATION, address, attribute);
  operation.get(ModelDescriptionConstants.VALUE).set(value);
  return operation;
}

代码示例来源:origin: wildfly/wildfly

private static ModelNode createListElementOperation(OperationDefinition definition, PathAddress address, Attribute attribute, String value) {
  ModelNode operation = createAttributeOperation(definition.getName(), address, attribute);
  operation.get(ModelDescriptionConstants.VALUE).set(value);
  return operation;
}

代码示例来源:origin: wildfly/wildfly

private static ModelNode createListElementOperation(OperationDefinition definition, PathAddress address, Attribute attribute, int index) {
  ModelNode operation = createAttributeOperation(definition.getName(), address, attribute);
  operation.get(INDEX).set(new ModelNode(index));
  return operation;
}

代码示例来源:origin: wildfly/wildfly

private static ModelNode createMapEntryOperation(OperationDefinition definition, PathAddress address, Attribute attribute, String key) {
  ModelNode operation = createAttributeOperation(definition.getName(), address, attribute);
  operation.get(KEY).set(key);
  return operation;
}

代码示例来源:origin: org.jboss.eap/wildfly-clustering-common

/**
 * Creates an undefine-attribute operation using the specified address and name.
 * @param address a resource path
 * @param attribute an attribute
 * @return an undefine-attribute operation
 */
public static ModelNode createUndefineAttributeOperation(PathAddress address, Attribute attribute) {
  return createAttributeOperation(ModelDescriptionConstants.UNDEFINE_ATTRIBUTE_OPERATION, address, attribute);
}

代码示例来源:origin: org.jboss.eap/wildfly-clustering-common

/**
 * Creates a read-attribute operation using the specified address and name.
 * @param address a resource path
 * @param attribute an attribute
 * @return a read-attribute operation
 */
public static ModelNode createReadAttributeOperation(PathAddress address, Attribute attribute) {
  return createAttributeOperation(ModelDescriptionConstants.READ_ATTRIBUTE_OPERATION, address, attribute);
}

代码示例来源:origin: org.jboss.eap/wildfly-clustering-common

/**
 * Creates a write-attribute operation using the specified address, name and value.
 * @param address a resource path
 * @param attribute an attribute
 * @param value an attribute value
 * @return a write-attribute operation
 */
public static ModelNode createWriteAttributeOperation(PathAddress address, Attribute attribute, ModelNode value) {
  ModelNode operation = createAttributeOperation(ModelDescriptionConstants.WRITE_ATTRIBUTE_OPERATION, address, attribute);
  operation.get(ModelDescriptionConstants.VALUE).set(value);
  return operation;
}

代码示例来源:origin: org.jboss.eap/wildfly-clustering-common

private static ModelNode createListElementOperation(OperationDefinition definition, PathAddress address, Attribute attribute, int index) {
  ModelNode operation = createAttributeOperation(definition.getName(), address, attribute);
  operation.get(INDEX).set(new ModelNode(index));
  return operation;
}

代码示例来源:origin: org.jboss.eap/wildfly-clustering-common

private static ModelNode createListElementOperation(OperationDefinition definition, PathAddress address, Attribute attribute, String value) {
  ModelNode operation = createAttributeOperation(definition.getName(), address, attribute);
  operation.get(ModelDescriptionConstants.VALUE).set(value);
  return operation;
}

代码示例来源:origin: org.jboss.eap/wildfly-clustering-common

private static ModelNode createMapEntryOperation(OperationDefinition definition, PathAddress address, Attribute attribute, String key) {
  ModelNode operation = createAttributeOperation(definition.getName(), address, attribute);
  operation.get(KEY).set(key);
  return operation;
}

相关文章