Example usage for javax.management.openmbean SimpleType DATE

List of usage examples for javax.management.openmbean SimpleType DATE

Introduction

In this page you can find the example usage for javax.management.openmbean SimpleType DATE.

Prototype

SimpleType DATE

To view the source code for javax.management.openmbean SimpleType DATE.

Click Source Link

Document

The SimpleType instance describing values whose Java class name is java.util.Date.

Usage

From source file:com.alibaba.dragoon.stat.SpringIbatisStatementStats.java

public static CompositeType getCompositeTypeInternal() throws OpenDataException {
    if (compositeType != null) {
        return compositeType;
    }//from   www.java2  s.co  m

    OpenType<?>[] indexTypes = new OpenType<?>[] { SimpleType.STRING, SimpleType.STRING, SimpleType.LONG,
            SimpleType.LONG, SimpleType.LONG, SimpleType.DATE, SimpleType.LONG, SimpleType.LONG,
            SimpleType.LONG, SimpleType.INTEGER, SimpleType.INTEGER };

    String[] indexNames = { "id", "resource", "executeCount", "errorCount", "totalTime", "lastTime",
            "updateCount", "fetchObjectCount", "effectedRowCount", "concurrentMax", "runningCount" };

    String[] indexDescriptions = indexNames;

    compositeType = new CompositeType("IbatisStatementStat", "IbatisStatementStat", indexNames,
            indexDescriptions, indexTypes);

    return compositeType;
}

From source file:com.alibaba.dragoon.client.DragoonClient.java

private CompositeType getSessionType() throws JMException {
    OpenType<?>[] indexTypes = new OpenType<?>[] { SimpleType.DATE, SimpleType.STRING, SimpleType.STRING,
            SimpleType.INTEGER, SimpleType.INTEGER };

    String[] indexNames = { "createdDate", "localAddress", "remoteAddress", "receivedMessageCount",
            "sentMessageCount" };
    String[] indexDescriptions = { "createdDate", "localAddress", "remoteAddress", "receivedMessageCount",
            "sentMessageCount" };

    return new CompositeType("Session", "Session", indexNames, indexDescriptions, indexTypes);
}

From source file:com.alibaba.dragoon.stat.WebURIStatistic.java

public static CompositeType getCompositeType() throws JMException {

    OpenType<?>[] indexTypes = new OpenType<?>[] {
            //// w  w w . j av  a2  s  .com
            SimpleType.LONG, SimpleType.STRING, SimpleType.INTEGER, SimpleType.INTEGER, SimpleType.LONG, // count
            SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.STRING, SimpleType.STRING, // LastErrorClass
            SimpleType.STRING, SimpleType.DATE, SimpleType.STRING, SimpleType.DATE, SimpleType.STRING // LastErrorUser
            , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, // LastErrorUser
            SimpleType.LONG, new ArrayType<Long>(SimpleType.LONG, true),
            new ArrayType<CompositeType>(1, Profiler.EntryStatistic.getCompositeType())//
            , SimpleType.STRING //
            //
            , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG//
            //
            , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG //
            , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG//
            , SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG //
            , new ArrayType<Integer>(SimpleType.INTEGER, true), SimpleType.LONG };

    String[] indexNames = { //
            //
            "ID", "URI", "RunningCount", "ConcurrentMax", "Count", //
            "ErrorCount", "TotalTime", "MaxTime", "LastErrorMessage", "LastErrorClass" //
            , "LastErrorStackTrace", "LastErrorTime", "LastErrorReferer", "LastAccessedTime", "LastErrorUser" //
            , "JdbcExecuteCount", "JdbcFetchRowCount", "JdbcFetchRowPeak", "JdbcUpdateCount", "JdbcCommitCount" //
            , "JdbcRollbackCount", "Histogram", "ProfileEntries", "LastErrorUrl" // added by wangye

            , "OSMacOSXCount", "OSWindowsCount", "OSLinuxCount", "BrowserIE6Count", "BrowserIE7Count",
            "BrowserIE8Count", "BrowserIE9Count", "BrowserIE10Count", "BrowserIECount", "BrowserFirefoxCount",
            "BrowserChromeCount", "BrowserSafariCount", "BrowserOperaCount", "DeviceAndroidCount",
            "DeviceIpadCount", "DeviceIphoneCount", "DeviceWindowsPhoneCount" //
            , "IP", "JdbcTransactionMillis" };
    String[] indexDescriptions = indexNames;
    return new CompositeType("URIStatistic", "URI Statistic", indexNames, indexDescriptions, indexTypes);
}