001/* 002// This software is subject to the terms of the Eclipse Public License v1.0 003// Agreement, available at the following URL: 004// http://www.eclipse.org/legal/epl-v10.html. 005// You must accept the terms of that agreement to use this software. 006// 007// Copyright (C) 2011-2011 Pentaho 008// All Rights Reserved. 009*/ 010package mondrian.server.monitor; 011 012import mondrian.util.BeanMap; 013 014/** 015 * Abstract base class for objects returned from polling the 016 * {@link mondrian.server.monitor.Monitor} for server state. 017 */ 018abstract class Info { 019 020 /** 021 * A printout of the stack trace which represents the code stack 022 * when the event was created. Useful for debugging purposes and 023 * identifying orphaned connections and statements. 024 */ 025 public final String stack; 026 027 protected Info(String stack) { 028 this.stack = stack; 029 } 030 031 @Override 032 public String toString() { 033 return getClass().getSimpleName() + new BeanMap(this); 034 } 035} 036 037// End Info.java