Examples of OperationType


Examples of org.apache.cassandra.db.compaction.OperationType

                keys = hotKeySet(keysToSave);

            // an approximation -- the keyset can change while saving
            estimatedTotalBytes = estimateSizeToSave(keys);

            OperationType type;
            if (cacheType == CacheService.CacheType.KEY_CACHE)
                type = OperationType.KEY_CACHE_SAVE;
            else if (cacheType == CacheService.CacheType.ROW_CACHE)
                type = OperationType.ROW_CACHE_SAVE;
            else
View Full Code Here

Examples of org.apache.cassandra.db.compaction.OperationType

            if (keysToSave >= getKeySet().size())
                keys = getKeySet();
            else
                keys = hotKeySet(keysToSave);

            OperationType type;
            if (cacheType == CacheService.CacheType.KEY_CACHE)
                type = OperationType.KEY_CACHE_SAVE;
            else if (cacheType == CacheService.CacheType.ROW_CACHE)
                type = OperationType.ROW_CACHE_SAVE;
            else
View Full Code Here

Examples of org.apache.cassandra.db.compaction.OperationType

                keys = hotKeySet(keysToSave);

            // an approximation -- the keyset can change while saving
            estimatedTotalBytes = estimateSizeToSave(keys);

            OperationType type;
            if (cacheType == CacheService.CacheType.KEY_CACHE)
                type = OperationType.KEY_CACHE_SAVE;
            else if (cacheType == CacheService.CacheType.ROW_CACHE)
                type = OperationType.ROW_CACHE_SAVE;
            else
View Full Code Here

Examples of org.apache.cxf.binding.corba.wsdl.OperationType

       
        // generate corba return param
        ArgType corbaReturn = generateCorbaReturnParam(typeNode);
       
        // generate corba operation
        OperationType corbaOp = generateCorbaOperation(op, null, corbaReturn);
       
        // generate binding
        generateCorbaBindingOperation(binding, op, corbaOp);
    }
View Full Code Here

Examples of org.apache.cxf.binding.corba.wsdl.OperationType

       
        // generate corba return param
        ParamType corbaParam = generateCorbaParam(typeNode);
       
        // generate corba operation
        OperationType corbaOp = generateCorbaOperation(op, corbaParam, null);
       
        // generate binding
        generateCorbaBindingOperation(binding, op, corbaOp);
    }
View Full Code Here

Examples of org.apache.cxf.binding.corba.wsdl.OperationType

     * @param param is the corba parameter, none if null.
     * @param arg is the corba return parameter, none if null.
     * @return the generated corba:operation.
     */
    private OperationType generateCorbaOperation(Operation op, ParamType param, ArgType arg) {
        OperationType operation = new OperationType();
        try {
            operation = (OperationType)extReg.createExtension(BindingOperation.class,
                                                              CorbaConstants.NE_CORBA_OPERATION);
        } catch (WSDLException ex) {
            throw new RuntimeException(ex);
        }
        operation.setName(op.getName());
  
        if (param != null) {
            operation.getParam().add(param);
        }
       
        if (arg != null) {
            operation.setReturn(arg);
        }
       
        return operation;
    }
View Full Code Here

Examples of org.apache.cxf.binding.corba.wsdl.OperationType

    }   
   
    private void addCorbaOperationExtElement(BindingOperation bo, Operation op)
        throws Exception {

        OperationType operationType = null;
        try {
            operationType = (OperationType)extReg.createExtension(BindingOperation.class,
                                                                  CorbaConstants.NE_CORBA_OPERATION);
        } catch (WSDLException wse) {           
            LOG.log(Level.SEVERE, "Failed to create a Binding Operation extension", wse);
            throw new Exception(LOG.toString(), wse);
        }

        operationType.setName(op.getName());
        List<ParamType> params = new ArrayList<ParamType>();
        List<ArgType> returns = new ArrayList<ArgType>();

        wsdlParameter.processParameters(this, op, def, xmlSchemaList, params, returns, true);

        for (ParamType paramtype : params) {
            operationType.getParam().add(paramtype);
        }
        for (ArgType retType : returns) {
            operationType.setReturn(retType);
        }

        Map faults = op.getFaults();
        Iterator i = faults.values().iterator();              
        while (i.hasNext()) {
            Fault fault = (Fault)i.next();
            RaisesType raisestype = new RaisesType();           
            CorbaTypeImpl extype = convertFaultToCorbaType(xmlSchemaType, fault);          
            if (extype != null) {
                raisestype.setException(helper.createQNameCorbaNamespace(extype.getName()));               
                operationType.getRaises().add(raisestype);
            }
        }
              
        bo.addExtensibilityElement(operationType);
    }
View Full Code Here

Examples of org.apache.schemas.yoko.bindings.corba.OperationType

           
    protected void handleNotRequestMessage(CorbaMessage message,
                                           CorbaDestination destination)
        throws Exception {
        QName opQName = null;
        OperationType opType = null;
        BindingInfo bInfo = destination.getBindingInfo();             
        InterfaceInfo info = bInfo.getInterface();       
        EventDataReader reader = (EventDataReader) ContextUtils.getDataReader(message);
        
        Exchange exchange = message.getExchange();
View Full Code Here

Examples of org.apache.schemas.yoko.bindings.corba.OperationType

    }
   
    protected void handleRequestMessage(CorbaMessage message,
                                        CorbaDestination destination)
        throws Exception {
        OperationType opType = null;
       
        orb = (org.omg.CORBA.ORB) message.get(CorbaConstants.ORB)
        if (corbaStaxObject != null) {
            corbaStaxObject.setOrb(orb);
        } else {
            corbaStaxObject = new CorbaStaxObject(orb);
        }
        if (message.getStreamableException() != null) {
            Endpoint ep = message.getExchange().get(Endpoint.class);
            message.getInterceptorChain().abort();
            if (ep.getInFaultObserver() != null) {
                ep.getInFaultObserver().onMessage(message);
                return;
            }
        }

        EventDataReader reader;
        reader = (EventDataReader) ContextUtils.getDataReader(message);
        BindingInfo bInfo = destination.getBindingInfo();             
        InterfaceInfo info = bInfo.getInterface();
       
        Exchange exchange = message.getExchange();
        BindingOperationInfo bopInfo = exchange.get(BindingOperationInfo.class);

        // Handle the parameters that are given for the operation
        List<ParamType> paramTypes = null;    
        ArgType argType = null;
       
        if (opType != null) {
            paramTypes = opType.getParam();    
            argType = opType.getReturn();
        }
        CorbaMessage outMessage = (CorbaMessage)exchange.getOutMessage();
       
        opType = bopInfo.getExtensor(OperationType.class);
View Full Code Here

Examples of org.apache.schemas.yoko.bindings.corba.OperationType

            String opName = message.getExchange().get(String.class);
               
            Iterator iter = bInfo.getOperations().iterator();

            BindingOperationInfo bopInfo = null;
            OperationType opType = null;          
            while (iter.hasNext()) {
                bopInfo = (BindingOperationInfo)iter.next();
                if (bopInfo.getName().getLocalPart().equals(opName)) {
                    opType = bopInfo.getExtensor(OperationType.class);
                    break;
                }
            }
            if (opType == null) {
                throw new CorbaBindingException("Unable to find operation definition");
            }

            OperationInfo opInfo = bopInfo.getOperationInfo();

            QName exIdlType = null;
            List<RaisesType> exList = opType.getRaises();
            for (Iterator<RaisesType> i = exList.iterator(); i.hasNext();) {
                // REVISIT: Note that this assumes that exception names need to
                // be unique. We should make
                // sure that this is really the case.
                RaisesType raises = i.next();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.