Package jp.co.acroquest.endosnipe.javelin.bean

Examples of jp.co.acroquest.endosnipe.javelin.bean.Invocation


        if (component == null)
        {
            return null;
        }

        Invocation invocation = component.getInvocation(methodName);
        return invocation;
    }
View Full Code Here


            {
                SystemLogger.getInstance().warn(ex);
            }
        }

        Invocation invocation = component.getInvocation(methodName);

        if (invocation == null)
        {
            invocation = registerInvocation(component, methodName, isResponse);
        }
View Full Code Here

    private static Invocation registerInvocation(final Component component,
                                                final String methodName,
                                                final boolean isResponse)
    {
        String className = component.getClassName();
        Invocation invocation;
        int recordedInvocationNum = component.getRecordedInvocationNum();

        String processName = VMStatusHelper.getProcessName();
        invocation =
                     new Invocation(processName, className, methodName,
                                    Invocation.THRESHOLD_NOT_SPECIFIED);

        // Invocation�̐����ő�l�ɒB���Ă���A����InvocationFullEvent�𑗐M����ݒ�̏ꍇ�A
        // InvocationFullEvent���M�̏������s���B
        if (config__.getSendInvocationFullEvent() == true
                && recordedInvocationNum >= config__.getRecordInvocationMax())
        {
            Invocation removedInvoction = component.addAndDeleteOldestInvocation(invocation);
            sendInvocationFullEvent(component, className, recordedInvocationNum, invocation,
                    removedInvoction);
        }
        else
        {
View Full Code Here

    {
        if (node.isRecoreded() == false)
        {
            node.setRecoreded(true);

            Invocation invocation = node.getInvocation();
            if (invocation != null)
            {
                long elapsedTime     = node.getAccumulatedTime();
                long elapsedCpuTime  = node.getCpuTime();
                long elapsedUserTime = node.getUserTime();

                elapsedTime     = elapsedTime     - node.getChildrenTime();
                if (elapsedTime < 0)
                {
                    elapsedTime = 0;
                }
                elapsedCpuTime  = elapsedCpuTime  - node.getChildrenCpuTime();
                if (elapsedCpuTime < 0)
                {
                    elapsedCpuTime = 0;
                }
                elapsedUserTime = elapsedUserTime - node.getChildrenUserTime();
                if (elapsedUserTime < 0)
                {
                    elapsedUserTime = 0;
                }

                invocation.addInterval(node, elapsedTime, elapsedCpuTime, elapsedUserTime);

                if (node.getParent() != null)
                {
                    invocation.addCaller(node.getParent().getInvocation());
                }
            }

            List<CallTreeNode> children = node.getChildren();
            int size = children.size();
View Full Code Here

        CallTree tree = callTreeRecorder.getCallTree();

        // �C�x���g�̃��x�����G���[�̏ꍇ�A�����ɃA���[�����グ��B
        if(event.getLevel() >= CommonEvent.LEVEL_ERROR)
        {
            Invocation invocation = null;
            if( callTreeNode != null)
            {
                invocation = callTreeNode.getInvocation();
            }
            sendEventImmediately(event, invocation, callTreeRecorder, telegramId);
View Full Code Here

            {
                tree.setThreadID(threadId);
            }

            String processName = VMStatusHelper.getProcessName();
            invocation = new Invocation(processName, className, methodName, 0);
        }

        event.setTime(System.currentTimeMillis());

        CallTreeNode node = new CallTreeNode();
View Full Code Here

     */
    private static void sendEventAlarm()
    {
        CallTreeNode eventNode = new CallTreeNode();
        String processName = VMStatusHelper.getProcessName();
        Invocation invocation =
                                new Invocation(processName, EventConstants.EVENT_CLASSNAME,
                                               EventConstants.EVENT_METHODNAME, 0);
        eventNode.setInvocation(invocation);
        sendAlarmImpl(eventNode);
    }
View Full Code Here

            temp.add(action);
            arrangedMap.put(jobID, temp);
        }

        HadoopCallTreeRecorder recorder = HadoopCallTreeRecorder.getInstance();
        Invocation invocation = recorder.getInvocation();
        String hostName = recorder.takeHostname();
        long startTime = recorder.takeStartTime();

        // TaskTrackerStatus��JobID����callTree��o�^����B
        HashMap<String, CallTree> callTreeMap = recorder.takeAllCallTree();
        HashMap<String, HadoopCallTreeNode> callTreeNodeMap = recorder.takeAllCallTreeNode();

        // CallTree��CallTreeNode�̂ǂ��炩�Е����������擾�ł��Ȃ��ꍇ�̓G���[
        if (callTreeMap == null ^ callTreeNodeMap == null)
            return false;

        // ���CallTree
        if (callTreeMap != null)
        {
            // CallTree����CallTreeNode�����قȂ�ꍇ�̓G���[
            if (callTreeMap.size() != callTreeNodeMap.size())
                return false;

            // ��O��ۑ��������ǂ����̃t���O
            boolean saveException = false;
           
            Set<String> jobIDSet = callTreeMap.keySet();
            for (String jobID : jobIDSet)
            {
                CallTree callTree = callTreeMap.get(jobID);
                HadoopCallTreeNode node = callTreeNodeMap.get(jobID);
               
                // CallTreeNode���擾�ł��Ȃ��ꍇ�͏����𒆒f����B
                if (node == null)
                    return false;

                // ��Ԓl�̍X�V���m�F����B
        ArrayList<HadoopTaskStatus> taskStatusList = node
            .getHadoopInfo().getTaskStatuses();
        HadoopObjectAnalyzer.updateTaskStatuses(thisObject, taskStatusList);
       
                // �v�����̕ۑ����s��
                HadoopMeasurementInfo measurementInfo = HadoopMeasurementInfo.getInstance();
                measurementInfo.addToTaskTrackerStatusList(node.getHadoopInfo());
                SystemLogger.getInstance().debug("HadoopRecorder : node.getHadoopInfo() " + node.getHadoopInfo());

                try
                {
                    // �A���[���ʒm�����A�C�x���g�o�͏������s���B
                    recordAndAlarmEvents(callTree, callTreeRecorder, telegramId);

                    node.setEndTime(System.currentTimeMillis());

                    addEndVMStatus(node, null, callTreeRecorder);

                    if (cause != null && callTree.getCause() != cause)
                    {
                        callTreeRecorder.setExceptionOccured(true);

                        if (!saveException)
                        {
                            invocation.addThrowable(cause);
                            saveException = true;
                        }

                        callTree.setCause(cause);

                        if (config__.isAlarmException())
                        {
                            // ����������O���L�^���Ă���
                            node.setThrowable(cause);
                            node.setThrowTime(System.currentTimeMillis());
                        }
                    }

                    // JobID�ɑΉ�����TaskTrackerAction�������CallTreeNode�ɐݒ�
                    if (arrangedMap.containsKey(jobID))
                    {
                        node.getHadoopInfo().setTaskTrackerActions(arrangedMap.get(jobID));
                        // �㏈���̂��߂�Map����폜
                        arrangedMap.remove(jobID);
                    }

                    recorder.addCallTree(jobID, callTree);

                    if (invocation.getAlarmThreshold()    != Invocation.THRESHOLD_NOT_SPECIFIED ||
                        invocation.getAlarmCpuThreshold() != Invocation.THRESHOLD_NOT_SPECIFIED)
                    {
                        // �ȉ��ACallTreeNode��root�̏ꍇ�A�܂���臒l���•ʂɎw�肳��Ă���ꍇ�̏����B
                        // CallTreeNode��root�ŁA���v�l�L�^��臒l�𒴂��Ă����ꍇ�ɁA�g�����U�N�V�������L�^����B
                        if (node.getAccumulatedTime() >= config__.getStatisticsThreshold())
                            recordTransaction(node);
View Full Code Here

            node.setEndTime(System.currentTimeMillis());

            CallTreeNode parent = node.getParent();
            addEndVMStatus(node, parent, callTreeRecorder);

            Invocation invocation = node.getInvocation();

            if (cause != null && callTree.getCause() != cause)
            {
                callTreeRecorder.setExceptionOccured(true);

                invocation.addThrowable(cause);
                callTree.setCause(cause);

                if (config__.isAlarmException())
                {
                    // ����������O���L�^���Ă���
                    node.setThrowable(cause);
                    node.setThrowTime(System.currentTimeMillis());
                }
            }

            // �o�^���ꂽ�W���u�����s�����X�g�ɓo�^
            String jobID = HadoopObjectAnalyzer.getJobIDfromJobStatus(returnValue);
            synchronized(runningJobList__)
            {
                runningJobList__.add(jobID);
            }

            if (node.hasHadoopInfo())
                HadoopCallTreeRecorder.getInstance().addCallTree(node.getHadoopInfo().getSubmitJobID(), callTree);

            if (invocation.getAlarmThreshold()    != Invocation.THRESHOLD_NOT_SPECIFIED ||
                invocation.getAlarmCpuThreshold() != Invocation.THRESHOLD_NOT_SPECIFIED)
            {
                // �ȉ��ACallTreeNode��root�̏ꍇ�A�܂���臒l���•ʂɎw�肳��Ă���ꍇ�̏����B
                // CallTreeNode��root�ŁA���v�l�L�^��臒l�𒴂��Ă����ꍇ�ɁA�g�����U�N�V�������L�^����B
                if (node.getAccumulatedTime() >= config__.getStatisticsThreshold())
                {
View Full Code Here

            return null;
        }

        StringBuffer jvnBuffer = new StringBuffer();

        Invocation callee = node.getInvocation();
        if (callee == null)
        {
            return "";
        }

        jvnBuffer.append(MESSAGE_TYPES[ID_EVENT]);

        SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_PATTERN);
        jvnBuffer.append(",");
        jvnBuffer.append(dateFormat.format(time));

        // �C�x���g��
        addToJvnBuffer(event.getName(), jvnBuffer);

        // ���\�b�h��
        addToJvnBuffer(getValidMethodName(callee), jvnBuffer);

        // �N���X��
        addToJvnBuffer(callee.getClassName(), jvnBuffer);

        String levelStr = createLevelStr(event);

        // �x�����x��
        addToJvnBuffer(levelStr, jvnBuffer);
View Full Code Here

TOP

Related Classes of jp.co.acroquest.endosnipe.javelin.bean.Invocation

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.