/* * Copyright (c) 2020 Alibaba Group Holding Limited. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Alibaba designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ package com.alibaba.wisp.engine; import com.alibaba.management.WispCounterMXBean; import sun.management.Util; import javax.management.ObjectName; import java.util.List; public class WispCounterMXBeanImpl implements WispCounterMXBean { private final static String WISP_COUNTER_MXBEAN_NAME = "com.alibaba.management:type=WispCounter"; @Override public List getRunningStates() { throw new UnsupportedOperationException(); } @Override public List getSwitchCount() { throw new UnsupportedOperationException(); } @Override public List getWaitTimeTotal() { throw new UnsupportedOperationException(); } @Override public List getRunningTimeTotal() { throw new UnsupportedOperationException(); } @Override public List getCompleteTaskCount() { throw new UnsupportedOperationException(); } @Override public List getCreateTaskCount() { throw new UnsupportedOperationException(); } @Override public List getParkCount() { throw new UnsupportedOperationException(); } @Override public List getUnparkCount() { throw new UnsupportedOperationException(); } @Override public List getLazyUnparkCount() { throw new UnsupportedOperationException(); } @Override public List getUnparkInterruptSelectorCount() { throw new UnsupportedOperationException(); } @Override public List getSelectableIOCount() { throw new UnsupportedOperationException(); } @Override public List getTimeOutCount() { throw new UnsupportedOperationException(); } @Override public List getEventLoopCount() { throw new UnsupportedOperationException(); } @Override public List getQueueLength() { throw new UnsupportedOperationException(); } @Override public List getNumberOfRunningTasks() { throw new UnsupportedOperationException(); } @Override public List getTotalEnqueueTime() { throw new UnsupportedOperationException(); } @Override public List getEnqueueCount() { throw new UnsupportedOperationException(); } @Override public List getTotalExecutionTime() { throw new UnsupportedOperationException(); } @Override public List getExecutionCount() { throw new UnsupportedOperationException(); } @Override public List getTotalWaitSocketIOTime() { throw new UnsupportedOperationException(); } @Override public List getWaitSocketIOCount() { throw new UnsupportedOperationException(); } @Override public List getTotalBlockingTime() { throw new UnsupportedOperationException(); } @Override public WispCounter getWispCounter(long id) { throw new UnsupportedOperationException(); } @Override public ObjectName getObjectName() { return Util.newObjectName(WISP_COUNTER_MXBEAN_NAME); } }