Permalink
Browse files

Add operation helper for the controller client.

  • Loading branch information...
1 parent e2b4913 commit dcc73b8cfc8dbe7aa2158ead6291070a2322b3c5 @jamezp jamezp committed with bstansberry Jan 3, 2013
@@ -24,6 +24,7 @@
import org.jboss.as.controller.client.helpers.domain.DeploymentAction.Type;
import org.jboss.as.controller.client.helpers.domain.RollbackCancelledException;
+import org.jboss.dmr.ModelNode;
import org.jboss.logging.annotations.Cause;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageBundle;
@@ -340,6 +341,30 @@
@Message(id = 10649, value = "Allocation stack trace:")
LeakDescription controllerClientNotClosed();
+ /**
+ * Creates an exception indicating the operation was successful and no failure description exists.
+ *
+ * @return a {@link IllegalArgumentException} for the error
+ */
+ @Message(id = 10650, value = "No failure description as the operation was successful.")
+ IllegalArgumentException noFailureDescription();
+
+ /**
+ * Creates an exception indicating the operation name was not defined.
+ *
+ * @return a {@link IllegalArgumentException} for the error
+ */
+ @Message(id = 10651, value = "The operation name was not defined.")
+ IllegalArgumentException operationNameNotFound();
+
+ /**
+ * Creates an exception indicating the address must be of type {@link org.jboss.dmr.ModelType#LIST list}.
+ *
+ * @return an {@link IllegalArgumentException} for the error
+ */
+ @Message(id = 10652, value = "The address must be of type ModelType.LIST.")
+ IllegalArgumentException invalidAddressType();
+
class LeakDescription extends Throwable {
private static final long serialVersionUID = -7193498784746897578L;
@@ -50,10 +50,12 @@
public static final String OPERATION_HEADERS = "operation-headers";
public static final String OP_ADDR = "address";
public static final String OUTCOME = "outcome";
+ public static final String PATH = "path";
public static final String READ_ATTRIBUTE_OPERATION = "read-attribute";
public static final String READ_CHILDREN_NAMES_OPERATION = "read-children-names";
public static final String READ_RESOURCE_OPERATION = "read-resource";
public static final String RECURSIVE = "recursive";
+ public static final String REMOVE_OPERATION = "remove";
public static final String RESULT = "result";
public static final String ROLLBACK_ON_RUNTIME_FAILURE = "rollback-on-runtime-failure";
public static final String ROLLOUT_PLAN = "rollout-plan";
@@ -68,6 +70,9 @@
public static final String SUBSYSTEM = "subsystem";
public static final String SUCCESS = "success";
public static final String TO_REPLACE = "to-replace";
+ public static final String UNDEFINE_ATTRIBUTE_OPERATION = "undefine-attribute";
+ public static final String VALUE = "value";
+ public static final String WRITE_ATTRIBUTE_OPERATION = "write-attribute";
public static final String CONTROLLER_PROCESS_STATE_STARTING = "starting";
public static final String CONTROLLER_PROCESS_STATE_RUNNING = "running";
Oops, something went wrong.

0 comments on commit dcc73b8

Please sign in to comment.