本文整理了Java中org.jboss.as.clustering.controller.Operations.createAttributeOperation()
方法的一些代码示例,展示了Operations.createAttributeOperation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operations.createAttributeOperation()
方法的具体详情如下:
包路径:org.jboss.as.clustering.controller.Operations
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!