Examples of createOMAttribute()


Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

            throw new AxisFault("I/O error", ex);
        }
       
        OMFactory factory = new OMLinkedListImplFactory();
        OMElement message = factory.createOMElement(SyslogConstants.MESSAGE);
        message.addAttribute(factory.createOMAttribute(SyslogConstants.FACILITY, null, facility));
        message.addAttribute(factory.createOMAttribute(SyslogConstants.SEVERITY, null, severity));
        if (tag != null) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.TAG, null, tag));
        }
        if (pid != -1) {
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

        }
       
        OMFactory factory = new OMLinkedListImplFactory();
        OMElement message = factory.createOMElement(SyslogConstants.MESSAGE);
        message.addAttribute(factory.createOMAttribute(SyslogConstants.FACILITY, null, facility));
        message.addAttribute(factory.createOMAttribute(SyslogConstants.SEVERITY, null, severity));
        if (tag != null) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.TAG, null, tag));
        }
        if (pid != -1) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.PID, null, String.valueOf(pid)));
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

        OMFactory factory = new OMLinkedListImplFactory();
        OMElement message = factory.createOMElement(SyslogConstants.MESSAGE);
        message.addAttribute(factory.createOMAttribute(SyslogConstants.FACILITY, null, facility));
        message.addAttribute(factory.createOMAttribute(SyslogConstants.SEVERITY, null, severity));
        if (tag != null) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.TAG, null, tag));
        }
        if (pid != -1) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.PID, null, String.valueOf(pid)));
        }
        message.setText(content);
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

        message.addAttribute(factory.createOMAttribute(SyslogConstants.SEVERITY, null, severity));
        if (tag != null) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.TAG, null, tag));
        }
        if (pid != -1) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.PID, null, String.valueOf(pid)));
        }
        message.setText(content);
       
        return message;
    }
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMNamespace nullNS = fac.createOMNamespace("", "");

        OMElement executorElement = createElement(ExecutorConstants.PRIORITY_EXECUTOR, namespace);
        if (executor.getName() != null) {
            executorElement.addAttribute(fac.createOMAttribute(ExecutorConstants.NAME,
                    nullNS, executor.getName()));
        }

        if (executor.getBeforeExecuteHandler() != null) {
            executorElement.addAttribute(fac.createOMAttribute(
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

            executorElement.addAttribute(fac.createOMAttribute(ExecutorConstants.NAME,
                    nullNS, executor.getName()));
        }

        if (executor.getBeforeExecuteHandler() != null) {
            executorElement.addAttribute(fac.createOMAttribute(
                    ExecutorConstants.BEFORE_EXECUTE_HANDLER, nullNS,
                    executor.getBeforeExecuteHandler().getClass().getName()));
        }

        // create the queues configuration
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

        MultiPriorityBlockingQueue queue = executor.getQueue();
        NextQueueAlgorithm algo = queue.getNextQueueAlgorithm();
        OMElement queuesEle = createElement(ExecutorConstants.QUEUES, namespace);

        if (!(algo instanceof PRRNextQueueAlgorithm)) {
            queuesEle.addAttribute(fac.createOMAttribute(ExecutorConstants.NEXT_QUEUE, nullNS,
                    algo.getClass().getName()));
        }

        if (!queue.isFixedSizeQueues()) {
            queuesEle.addAttribute(fac.createOMAttribute(ExecutorConstants.IS_FIXED_SIZE,
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

            queuesEle.addAttribute(fac.createOMAttribute(ExecutorConstants.NEXT_QUEUE, nullNS,
                    algo.getClass().getName()));
        }

        if (!queue.isFixedSizeQueues()) {
            queuesEle.addAttribute(fac.createOMAttribute(ExecutorConstants.IS_FIXED_SIZE,
                    nullNS, Boolean.toString(false)));
        }

        List<InternalQueue> intQueues = queue.getQueues();
        for (InternalQueue intQueue : intQueues) {
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

        List<InternalQueue> intQueues = queue.getQueues();
        for (InternalQueue intQueue : intQueues) {
            OMElement queueEle = createElement(ExecutorConstants.QUEUE, namespace);

            if (queue.isFixedSizeQueues()) {
                queueEle.addAttribute(fac.createOMAttribute(ExecutorConstants.SIZE, nullNS,
                        Integer.toString(intQueue.getCapacity())));
            }

            queueEle.addAttribute(fac.createOMAttribute(ExecutorConstants.PRIORITY, nullNS,
                    Integer.toString(intQueue.getPriority())));
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

            if (queue.isFixedSizeQueues()) {
                queueEle.addAttribute(fac.createOMAttribute(ExecutorConstants.SIZE, nullNS,
                        Integer.toString(intQueue.getCapacity())));
            }

            queueEle.addAttribute(fac.createOMAttribute(ExecutorConstants.PRIORITY, nullNS,
                    Integer.toString(intQueue.getPriority())));

            queuesEle.addChild(queueEle);
        }
        executorElement.addChild(queuesEle);
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.