hudson.plugins.nsiq
Class NSiqTarget

java.lang.Object
  extended by hudson.plugins.nsiq.NSiqTarget
All Implemented Interfaces:
NSiqAware, java.io.Serializable

public class NSiqTarget
extends java.lang.Object
implements java.io.Serializable, NSiqAware

N'SIQ Collector의 결과를 저장하고 표시하기 위한 클래스

Version:
$Rev$, $Date$
Author:
iceize at NHN Corporation
See Also:
Serialized Form

Nested Class Summary
 class NSiqTarget.RedirectSrc
           
 
Field Summary
 
Fields inherited from interface hudson.plugins.nsiq.NSiqAware
HIGH, LOW, SEPARATOR
 
Method Summary
 NSiqTarget getChild(java.lang.String name)
           
 java.util.Map<java.lang.String,NSiqTarget> getChildren()
           
 java.util.Collection<NSiqTarget> getChildrenList()
           
 hudson.util.Graph getComplexityGraph()
          디렉토리 별 페이지와 파일 별 페이지에서 복잡도 그래프를 표시한다.
 java.util.List<Complexity> getComplexityList()
           
 java.lang.Object getDynamic(java.lang.String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          디렉토리 별 페이지에서 파일 별 페이지로 이동하기 위해서 getDynamic 메소드를 사용한다.
 NSiqResult getItsNSiqResult()
           
 java.lang.String getLevel()
           
 hudson.util.Graph getLocDistGraph()
           
 hudson.util.Graph getLocGraph()
          디렉토리 별 페이지와 파일 별 페이지에서 복잡도 그래프를 표시한다.
 java.lang.String getName()
           
 hudson.model.Build<?,?> getOwner()
           
 NSiqTarget getParent()
           
 NSiqTarget getPreviousResult()
          그래프를 표시하기 위해 이전 결과 값을 리턴한다.
 java.lang.String[] getSrc()
           
 hudson.FilePath getSrcFile()
           
 NSiqSummary getSummary()
           
 long getTimestamp()
           
 boolean isComplexityView()
           
 boolean isLocView()
           
 boolean isOverView()
           
static NSiqTarget load(hudson.model.Build<?,?> owner, java.util.List<NSiqResult> nsiqResult)
           
 void setItsNSiqResult(NSiqResult itsNSiqResult)
           
 void setOwner(hudson.model.Build<?,?> build)
           
 void setParent(NSiqTarget parent)
           
 java.lang.String urlTransform(java.lang.String name)
          URL에서 숫자, 영어 대소문자가 아닌 경우 "_" 로 치환한다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

load

public static NSiqTarget load(hudson.model.Build<?,?> owner,
                              java.util.List<NSiqResult> nsiqResult)

getName

public java.lang.String getName()

getOwner

public hudson.model.Build<?,?> getOwner()

setOwner

public void setOwner(hudson.model.Build<?,?> build)

getLevel

public java.lang.String getLevel()

getParent

public NSiqTarget getParent()

getChildren

public java.util.Map<java.lang.String,NSiqTarget> getChildren()

getChildrenList

public java.util.Collection<NSiqTarget> getChildrenList()

getChild

public NSiqTarget getChild(java.lang.String name)

getSummary

public NSiqSummary getSummary()

getComplexityList

public java.util.List<Complexity> getComplexityList()

isLocView

public boolean isLocView()

isComplexityView

public boolean isComplexityView()

isOverView

public boolean isOverView()

getTimestamp

public long getTimestamp()

getDynamic

public java.lang.Object getDynamic(java.lang.String token,
                                   org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)
                            throws java.io.IOException,
                                   javax.servlet.ServletException
디렉토리 별 페이지에서 파일 별 페이지로 이동하기 위해서 getDynamic 메소드를 사용한다.

Parameters:
token - 서브 path의 이름 (예를 들어, /nsiq/com_nhncorp_lucy_common이 URL이라면, token 값은 com_nhncorp_lucy_common이다)
Throws:
javax.servlet.ServletException
java.io.IOException

getPreviousResult

public NSiqTarget getPreviousResult()
그래프를 표시하기 위해 이전 결과 값을 리턴한다.


urlTransform

public java.lang.String urlTransform(java.lang.String name)
URL에서 숫자, 영어 대소문자가 아닌 경우 "_" 로 치환한다.


getSrc

public java.lang.String[] getSrc()

getSrcFile

public hudson.FilePath getSrcFile()
                           throws java.lang.InterruptedException,
                                  java.io.IOException
Throws:
java.lang.InterruptedException
java.io.IOException

getLocGraph

public hudson.util.Graph getLocGraph()
디렉토리 별 페이지와 파일 별 페이지에서 복잡도 그래프를 표시한다.


getComplexityGraph

public hudson.util.Graph getComplexityGraph()
디렉토리 별 페이지와 파일 별 페이지에서 복잡도 그래프를 표시한다.


getLocDistGraph

public hudson.util.Graph getLocDistGraph()

setItsNSiqResult

public void setItsNSiqResult(NSiqResult itsNSiqResult)

getItsNSiqResult

public NSiqResult getItsNSiqResult()

setParent

public void setParent(NSiqTarget parent)


Copyright © 2004-2011. All Rights Reserved.