Examples of CircularBuffer


Examples of org.wso2.carbon.logging.appenders.CircularBuffer

                getAxisConfig().getParameter(TracerConstants.TRACE_PERSISTER_IMPL);
        return getTracePersister(tracePersisterParam);
    }

    public void clearAllSoapMessages(){
        CircularBuffer msgSeqBuff = getMessageSequenceBuffer();
        if (msgSeqBuff != null) {
            msgSeqBuff.clear();
        }
    }
View Full Code Here

Examples of org.wso2.carbon.logging.appenders.CircularBuffer

     */
    protected void appendMessage(ConfigurationContext configCtx,
                                 String serviceName,
                                 String operationName,
                                 Long msgSeq) {
        CircularBuffer buffer =
            (CircularBuffer) configCtx.getProperty(TracerConstants.MSG_SEQ_BUFFER);
        if (buffer == null){
            buffer = new CircularBuffer(TracerConstants.MSG_BUFFER_SZ);
            configCtx.setProperty(TracerConstants.MSG_SEQ_BUFFER, buffer);
        }
        GregorianCalendar cal = new GregorianCalendar();
        cal.setTime(new Date());
        MessageInfo messageInfo = new MessageInfo();
        messageInfo.setMessageSequence(msgSeq);
        messageInfo.setOperationName(operationName);
        messageInfo.setServiceId(serviceName);
        messageInfo.setTimestamp(cal);
        buffer.append(messageInfo);
    }
View Full Code Here

Examples of org.wso2.carbon.logging.appenders.CircularBuffer

                }

            }
        }

        CircularBuffer msgSeqBuff = new CircularBuffer(TracerConstants.MSG_BUFFER_SZ);
        configContext.setProperty(TracerConstants.MSG_SEQ_BUFFER, msgSeqBuff);
    }
View Full Code Here

Examples of rakama.worldtools.util.CircularBuffer

        this.span = span;
        width = span * Chunk.width;
        length = span * Chunk.length;
        height = Chunk.height;

        queue = new CircularBuffer(width * length * height);
        cache = new LightCache(span, span);
        tempChunk = new TempChunk[span * span];

        for(int z = 0; z < span; z++)
            for(int x = 0; x < span; x++)
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.