Package org.apache.qpid.management.domain.handler.impl

Examples of org.apache.qpid.management.domain.handler.impl.InvocationResult


           
            int sequenceNumber = SequenceNumberGenerator.getNextSequenceNumber();
            _methodInvocationListener.operationIsGoingToBeInvoked(new InvocationEvent(this,sequenceNumber,_exchangeChannelForMethodInvocations));
           _service.invoke(_parent.getName(), _name, _hash,objectId,parameters, method,sequenceNumber,objectId.getBankId(),objectId.getBrokerId());
            
            InvocationResult result = _exchangeChannelForMethodInvocations.poll(5000,TimeUnit.MILLISECONDS);
           
            if (result == null)
            {
              throw new TimeoutException();
            }
           
            Map<String, Object> output = method.decodeParameters(result.getOutputAndBidirectionalArgumentValues());
            result.setOutputSection(output);
           
            Log.logMethodInvocationResult(result);
           
            if (result.isException())
            {
                result.createAndThrowException();
            }
            return result;
        } finally
        {
            _service.close();
View Full Code Here


           
            int sequenceNumber = SequenceNumberGenerator.getNextSequenceNumber();
            _methodInvocationListener.operationIsGoingToBeInvoked(new InvocationEvent(this,sequenceNumber,_exchangeChannelForMethodInvocations));
           _service.invoke(_parent.getName(), _name, _hash,objectId,parameters, method,sequenceNumber,objectId.getBankId(),objectId.getBrokerId());
            
            InvocationResult result = _exchangeChannelForMethodInvocations.poll(5000,TimeUnit.MILLISECONDS);
           
            if (result == null)
            {
              throw new TimeoutException();
            }
           
            Map<String, Object> output = method.decodeParameters(result.getOutputAndBidirectionalArgumentValues());
            result.setOutputSection(output);
           
            Log.logMethodInvocationResult(result);
           
            if (result.isException())
            {
                result.createAndThrowException();
            }
            return result;
        } finally
        {
            _service.close();
View Full Code Here

              if (method != null)
              {
                  try
                  {
                      method.validate(params);
                      InvocationResult result = invokeMethod(_objectId, method, params);
                      notification = new OperationHasBeenInvokedNotification(actionName,params,signature,result);
                      return result;
                  } catch (Exception ex)
                  {
                    MBeanException exception = new MBeanException(ex);
View Full Code Here

   */
  Result invoke(String operationName, Object [] params, String [] signature) throws EntityInstanceNotFoundFault, MethodInvocationFault,QManFault
  {
    try
    {
      InvocationResult output =  (InvocationResult) _mxServer
        .invoke(
            _objectName,
            operationName,
            params,
            signature);
     
    return new Result(output.getOutputSection());

    } catch (InstanceNotFoundException exception)
    {
      throw new EntityInstanceNotFoundFault(
          getWsResource().getEndpointReference(),
View Full Code Here

TOP

Related Classes of org.apache.qpid.management.domain.handler.impl.InvocationResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.