Codota Logo
ManagementHelper.putOperationInvocation
Code IndexAdd Codota to your IDE (free)

How to use
putOperationInvocation
method
in
org.apache.activemq.artemis.api.core.management.ManagementHelper

Best Java code snippets using org.apache.activemq.artemis.api.core.management.ManagementHelper.putOperationInvocation (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: wildfly/wildfly

/**
* Stores an operation invocation in a message to invoke the corresponding operation the value from the server resource.
*
* @param message       message
* @param resourceName  the name of the resource
* @param operationName the name of the operation to invoke on the resource
* @see ResourceNames
*/
public static void putOperationInvocation(final ICoreMessage message,
                     final String resourceName,
                     final String operationName) throws Exception {
 ManagementHelper.putOperationInvocation(message, resourceName, operationName, (Object[]) null);
}
origin: wildfly/wildfly

/**
* Stores an operation invocation in a JMS message to invoke the corresponding operation the value from the server resource.
*
* @param message       JMS message
* @param resourceName  the name of the resource
* @param operationName the name of the operation to invoke on the resource
* @throws JMSException if an exception occurs while putting the information in the message
* @see org.apache.activemq.artemis.api.core.management.ResourceNames
*/
public static void putOperationInvocation(final Message message,
                     final String resourceName,
                     final String operationName) throws JMSException {
 try {
   ManagementHelper.putOperationInvocation(JMSManagementHelper.getCoreMessage(message), resourceName, operationName);
 } catch (Exception e) {
   throw JMSManagementHelper.convertFromException(e);
 }
}
origin: wildfly/wildfly

/**
* Stores an operation invocation in a JMS message to invoke the corresponding operation the value from the server resource.
*
* @param message       JMS message
* @param resourceName  the name of the server resource
* @param operationName the name of the operation to invoke on the server resource
* @param parameters    the parameters to use to invoke the server resource
* @throws JMSException if an exception occurs while putting the information in the message
* @see org.apache.activemq.artemis.api.core.management.ResourceNames
*/
public static void putOperationInvocation(final Message message,
                     final String resourceName,
                     final String operationName,
                     final Object... parameters) throws JMSException {
 try {
   ManagementHelper.putOperationInvocation(JMSManagementHelper.getCoreMessage(message), resourceName, operationName, parameters);
 } catch (Exception e) {
   throw JMSManagementHelper.convertFromException(e);
 }
}
origin: apache/activemq-artemis

/**
* Stores an operation invocation in a message to invoke the corresponding operation the value from the server resource.
*
* @param message       message
* @param resourceName  the name of the resource
* @param operationName the name of the operation to invoke on the resource
* @see ResourceNames
*/
public static void putOperationInvocation(final ICoreMessage message,
                     final String resourceName,
                     final String operationName) throws Exception {
 ManagementHelper.putOperationInvocation(message, resourceName, operationName, (Object[]) null);
}
origin: apache/activemq-artemis

/**
* Stores an operation invocation in a message to invoke the corresponding operation the value from the server resource.
*
* @param message       message
* @param resourceName  the name of the resource
* @param operationName the name of the operation to invoke on the resource
* @see ResourceNames
*/
public static void putOperationInvocation(final ICoreMessage message,
                     final String resourceName,
                     final String operationName) throws Exception {
 ManagementHelper.putOperationInvocation(message, resourceName, operationName, (Object[]) null);
}
origin: apache/activemq-artemis

/**
* Stores an operation invocation in a message to invoke the corresponding operation the value from the server resource.
*
* @param message       message
* @param resourceName  the name of the resource
* @param operationName the name of the operation to invoke on the resource
* @see ResourceNames
*/
public static void putOperationInvocation(final ICoreMessage message,
                     final String resourceName,
                     final String operationName) throws Exception {
 ManagementHelper.putOperationInvocation(message, resourceName, operationName, (Object[]) null);
}
origin: org.jboss.eap/wildfly-client-all

/**
* Stores an operation invocation in a message to invoke the corresponding operation the value from the server resource.
*
* @param message       message
* @param resourceName  the name of the resource
* @param operationName the name of the operation to invoke on the resource
* @see ResourceNames
*/
public static void putOperationInvocation(final ICoreMessage message,
                     final String resourceName,
                     final String operationName) throws Exception {
 ManagementHelper.putOperationInvocation(message, resourceName, operationName, (Object[]) null);
}
origin: org.apache.activemq/artemis-core-client

/**
* Stores an operation invocation in a message to invoke the corresponding operation the value from the server resource.
*
* @param message       message
* @param resourceName  the name of the resource
* @param operationName the name of the operation to invoke on the resource
* @see ResourceNames
*/
public static void putOperationInvocation(final ICoreMessage message,
                     final String resourceName,
                     final String operationName) throws Exception {
 ManagementHelper.putOperationInvocation(message, resourceName, operationName, (Object[]) null);
}
origin: org.apache.activemq/artemis-jms-client-all

/**
* Stores an operation invocation in a message to invoke the corresponding operation the value from the server resource.
*
* @param message       message
* @param resourceName  the name of the resource
* @param operationName the name of the operation to invoke on the resource
* @see ResourceNames
*/
public static void putOperationInvocation(final ICoreMessage message,
                     final String resourceName,
                     final String operationName) throws Exception {
 ManagementHelper.putOperationInvocation(message, resourceName, operationName, (Object[]) null);
}
origin: org.apache.activemq/artemis-cli

@Override
public void setUpInvocation(ClientMessage message) throws Exception {
 ManagementHelper.putOperationInvocation(message, "broker", "listQueues", filter, 1, maxRows);
}
origin: apache/activemq-artemis

@Override
public void setUpInvocation(ClientMessage message) throws Exception {
 if (getName(false) == null) {
   ManagementHelper.putOperationInvocation(message, "broker", "listAddresses", "\n");
 } else if (bindings) {
   ManagementHelper.putOperationInvocation(message, "broker", "listBindingsForAddress", getName(false));
 } else {
   ManagementHelper.putOperationInvocation(message, "broker", "getAddressInfo", getName(false));
 }
}
origin: org.apache.activemq/artemis-cli

@Override
public void setUpInvocation(ClientMessage message) throws Exception {
 if (getName(false) == null) {
   ManagementHelper.putOperationInvocation(message, "broker", "listAddresses", "\n");
 } else if (bindings) {
   ManagementHelper.putOperationInvocation(message, "broker", "listBindingsForAddress", getName(false));
 } else {
   ManagementHelper.putOperationInvocation(message, "broker", "getAddressInfo", getName(false));
 }
}
origin: apache/activemq-artemis

@Override
public void setUpInvocation(ClientMessage message) throws Exception {
 ManagementHelper.putOperationInvocation(message, "broker", "deleteAddress", getName(true));
}
origin: org.apache.activemq/artemis-cli

@Override
public void setUpInvocation(ClientMessage message) throws Exception {
 ManagementHelper.putOperationInvocation(message, "broker", "deleteAddress", getName(true));
}
origin: org.apache.activemq/artemis-cli

@Override
public void setUpInvocation(ClientMessage message) throws Exception {
 ManagementHelper.putOperationInvocation(message, "broker", "createAddress", getName(true), getRoutingTypes(true));
}
origin: apache/activemq-artemis

@Override
public void setUpInvocation(ClientMessage message) throws Exception {
 ManagementHelper.putOperationInvocation(message, "broker", "createAddress", getName(true), getRoutingTypes(true));
}
origin: apache/activemq-artemis

@Override
public void setUpInvocation(ClientMessage message) throws Exception {
 ManagementHelper.putOperationInvocation(message, "broker", "updateQueue", getName(), getRoutingType(), getMaxConsumers(null), isPurgeOnNoConsumers());
}
origin: org.apache.activemq/artemis-cli

@Override
public void setUpInvocation(ClientMessage message) throws Exception {
 ManagementHelper.putOperationInvocation(message, "broker", "updateQueue", getName(), getRoutingType(), getMaxConsumers(null), isPurgeOnNoConsumers());
}
origin: apache/activemq-artemis

@Test
public void testHandleManagementMessageWithOperationWhichFails() throws Exception {
 Configuration config = createBasicConfig().setJMXManagementEnabled(false);
 ActiveMQServer server = addServer(ActiveMQServers.newActiveMQServer(config, false));
 server.start();
 // invoke attribute and operation on the server
 CoreMessage message = new CoreMessage(1, 100);
 ManagementHelper.putOperationInvocation(message, ResourceNames.BROKER, "thereIsNoSuchOperation");
 ICoreMessage reply = server.getManagementService().handleMessage(message);
 Assert.assertFalse(ManagementHelper.hasOperationSucceeded(reply));
 Assert.assertNotNull(ManagementHelper.getResult(reply));
}
origin: apache/activemq-artemis

@Test
public void testHandleManagementMessageWithUnknowResource() throws Exception {
 Configuration config = createBasicConfig().setJMXManagementEnabled(false);
 ActiveMQServer server = addServer(ActiveMQServers.newActiveMQServer(config, false));
 server.start();
 // invoke attribute and operation on the server
 ICoreMessage message = new CoreMessage(1, 100);
 ManagementHelper.putOperationInvocation(message, "Resouce.Does.Not.Exist", "toString");
 ICoreMessage reply = server.getManagementService().handleMessage(message);
 Assert.assertFalse(ManagementHelper.hasOperationSucceeded(reply));
 Assert.assertNotNull(ManagementHelper.getResult(reply));
}
org.apache.activemq.artemis.api.core.managementManagementHelperputOperationInvocation

Javadoc

Stores an operation invocation in a message to invoke the corresponding operation the value from the server resource.

Popular methods of ManagementHelper

  • getResult
    Returns the result of an operation invocation or an attribute value. If an error occurred on the ser
  • hasOperationSucceeded
    Returns whether the invocation of the management operation on the server resource succeeded.
  • putAttribute
    Stores a resource attribute in a message to retrieve the value from the server resource.
  • getResults
    Returns the result of an operation invocation or an attribute value. If an error occurred on the ser
  • isOperationResult
    Returns whether the JMS message corresponds to the result of a management operation invocation.
  • isAttributesResult
    Returns whether the JMS message corresponds to the result of a management attribute value.
  • retrieveOperationParameters
    Used by ActiveMQ Artemis management service.
  • storeResult
    Used by ActiveMQ Artemis management service.

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • setContentView (Activity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JLabel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now