com.taobao.metamorphosis.utils.monitor
类 MonitorLog

java.lang.Object
  继承者 com.taobao.metamorphosis.utils.monitor.MonitorLog

public class MonitorLog
extends Object

应用埋点客户调用接口

作者:
mengting 2008-11-14

字段摘要
static int appMaxKey
           
static int middlewareMaxKey
           
 
方法摘要
static void addMiddlewareStat(String middlewareName, String keyOne, String keyTwo, String keyThree)
           
static void addMiddlewareStat(String middlewareName, String keyOne, String keyTwo, String keyThree, long value1, long value2)
           
static void addStat(Keys keys, long value1, long value2)
           
static void addStat(String keyOne, String keyTwo, String keyThree)
          keyOne,keyTwo,keyThree不能带有类似\n的回行
static void addStat(String keyOne, String keyTwo, String keyThree, long value1, long value2)
          keyOne,keyTwo,keyThree不能带有类似\n的回行
static void addStatValue2(String keyOne, String keyTwo, String keyThree, long value)
          keyOne,keyTwo,keyThree不能带有类似\n的回行
static void addStatWithAppName(String appName, String keyOne, String keyTwo, String keyThree, long value1, long value2)
          已过时。  
 int getAppMaxKey()
           
protected static ValueObject getAppValueObject(Keys keys)
          这个方法将确保不会返回null。
 boolean getJVMInfoPower()
           
static String getLogFileAbsolutePath()
           
 int getMiddlewareMaxKey()
           
protected static ValueObject getMiddlewareValueObject(Keys keys)
          这个方法将确保不会返回null。
 long getWaitTime()
           
static void immediateAddStat(String keyOne, String keyTwo, String keyThree, long value1, long value2)
           
static boolean isWriteLog()
           
static void main(String[] args)
          读取配置信息
static void registerSelf()
           把TBCacheManager自己注册到MBeanServer
static void runWriteThread()
          执行写入线程
 void setAppMaxKey(int appMaxKey)
           
static void setHostName()
          设置hostName
 void setJVMInfoPower(boolean power)
           
 void setMiddlewareMaxKey(int middlewareMaxKey)
           
 void setWaitTime(long waitTime)
           
static void setWriteLog(boolean writeLog)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

appMaxKey

public static int appMaxKey

middlewareMaxKey

public static int middlewareMaxKey
方法详细信息

setHostName

public static void setHostName()
设置hostName


runWriteThread

public static void runWriteThread()
执行写入线程


getLogFileAbsolutePath

public static String getLogFileAbsolutePath()

addStat

public static void addStat(String keyOne,
                           String keyTwo,
                           String keyThree)
keyOne,keyTwo,keyThree不能带有类似\n的回行

参数:
keyOne -
keyTwo -
keyThree -

addStatValue2

public static void addStatValue2(String keyOne,
                                 String keyTwo,
                                 String keyThree,
                                 long value)
keyOne,keyTwo,keyThree不能带有类似\n的回行

参数:
keyOne -
keyTwo -
keyThree -
value -

addStat

public static void addStat(String keyOne,
                           String keyTwo,
                           String keyThree,
                           long value1,
                           long value2)
keyOne,keyTwo,keyThree不能带有类似\n的回行

参数:
keyOne -
keyTwo -
keyThree -
value1 -
value2 -

addStatWithAppName

@Deprecated
public static void addStatWithAppName(String appName,
                                                 String keyOne,
                                                 String keyTwo,
                                                 String keyThree,
                                                 long value1,
                                                 long value2)
已过时。 


addMiddlewareStat

public static void addMiddlewareStat(String middlewareName,
                                     String keyOne,
                                     String keyTwo,
                                     String keyThree)

addMiddlewareStat

public static void addMiddlewareStat(String middlewareName,
                                     String keyOne,
                                     String keyTwo,
                                     String keyThree,
                                     long value1,
                                     long value2)

addStat

public static void addStat(Keys keys,
                           long value1,
                           long value2)

immediateAddStat

public static void immediateAddStat(String keyOne,
                                    String keyTwo,
                                    String keyThree,
                                    long value1,
                                    long value2)

isWriteLog

public static boolean isWriteLog()

setWriteLog

public static void setWriteLog(boolean writeLog)

getWaitTime

public long getWaitTime()

setWaitTime

public void setWaitTime(long waitTime)

getJVMInfoPower

public boolean getJVMInfoPower()

setJVMInfoPower

public void setJVMInfoPower(boolean power)

getAppMaxKey

public int getAppMaxKey()

setAppMaxKey

public void setAppMaxKey(int appMaxKey)

getMiddlewareMaxKey

public int getMiddlewareMaxKey()

setMiddlewareMaxKey

public void setMiddlewareMaxKey(int middlewareMaxKey)

getAppValueObject

protected static ValueObject getAppValueObject(Keys keys)
这个方法将确保不会返回null。(当keys无对应的ValueObject时创建之)


getMiddlewareValueObject

protected static ValueObject getMiddlewareValueObject(Keys keys)
这个方法将确保不会返回null。(当keys无对应的ValueObject时创建之)


registerSelf

public static void registerSelf()

把TBCacheManager自己注册到MBeanServer


main

public static void main(String[] args)
读取配置信息



Copyright © 2010–2013. All rights reserved.