From: <jsa...@us...> - 2009-02-06 21:02:48
|
Revision: 127 http://flexotask.svn.sourceforge.net/flexotask/?rev=127&view=rev Author: jsauerbach Date: 2009-02-06 21:02:44 +0000 (Fri, 06 Feb 2009) Log Message: ----------- Remove the VeryNullLogger class ... it is not really Flexotask-related and ended up in this codebase largely by accident. Removed Paths: ------------- trunk/flexotask-tuningfork/src/com/ibm/realtime/flexotask/tuningfork/VeryNullLogger.java Deleted: trunk/flexotask-tuningfork/src/com/ibm/realtime/flexotask/tuningfork/VeryNullLogger.java =================================================================== --- trunk/flexotask-tuningfork/src/com/ibm/realtime/flexotask/tuningfork/VeryNullLogger.java 2009-02-05 16:32:41 UTC (rev 126) +++ trunk/flexotask-tuningfork/src/com/ibm/realtime/flexotask/tuningfork/VeryNullLogger.java 2009-02-06 21:02:44 UTC (rev 127) @@ -1,202 +0,0 @@ -/* - * This file is part of Flexible Task Graphs - * (http://sourceforge.net/projects/flexotasks) - * - * Copyright (c) 2006 - 2008 IBM Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package com.ibm.realtime.flexotask.tuningfork; - -import com.ibm.tuningfork.tracegen.IBookmarkEvent; -import com.ibm.tuningfork.tracegen.IConversionFeedlet; -import com.ibm.tuningfork.tracegen.IFeedlet; -import com.ibm.tuningfork.tracegen.ILogger; -import com.ibm.tuningfork.tracegen.ITimerEvent; -import com.ibm.tuningfork.tracegen.IValueEvent; -import com.ibm.tuningfork.tracegen.types.EventType; - -/** - * A NullLogger that really really really doesn't need a ByteBuffer - */ -public class VeryNullLogger implements ILogger -{ - public void addEventType(EventType et) - { - } - - public void addProperty(String propertyName, String value) - { - } - - public int addString(String value) - { - return 0; - } - - public void close() - { - } - - public void defineHistogramFigure(String name, ITimerEvent[] events) - { - } - - public void defineOscilloscopeFigure(String name, ITimerEvent[] events) - { - } - - public void definePieChartFigure(String name, ITimerEvent[] events) - { - } - - public void defineTimeSeriesFigure(String name, IValueEvent[] values, - ITimerEvent[] intervals) - { - } - - public IBookmarkEvent makeBookmarkEvent(String name) - { - return new VeryNullBookmarkEvent(); - } - - public IFeedlet makeFeedlet(String name, String description) - { - return new VeryNullFeedlet(); - } - - public ITimerEvent makeTimerEvent(String name) - { - return new VeryNullTimerEvent(); - } - - public IValueEvent makeValueEvent(String name) - { - return new VeryNullValueEvent(); - } - - public class VeryNullBookmarkEvent implements IBookmarkEvent - { - public void addBookmark(IFeedlet feedlet, String annotation) - { - } - - public void addBookmark(String annotation) - { - } - - public String getName() - { - return null; - } - } - - public class VeryNullFeedlet implements IFeedlet - { - public void addEvent(EventType eventType) - { - } - - public void addEvent(EventType eventType, double v) - { - } - - public void addEvent(EventType eventType, int v) - { - } - - public void addEvent(EventType eventType, int[] idata, long[] ldata, - double[] ddata, String[] sdata) - { - } - - public void addEvent(EventType eventType, long v) - { - } - - public void addEvent(EventType eventType, String v) - { - } - - public void bindToCurrentThread() - { - } - - public boolean isManual() - { - return false; - } - - public boolean setTime(long timeStamp) - { - return false; - } - - public boolean recordThreadId() - { - return false; - } - - public void setThreadId(int tid) - { - } - } - - public class VeryNullTimerEvent implements ITimerEvent - { - public String getName() - { - return null; - } - - public void start() - { - } - - public void start(IConversionFeedlet feedlet, long timeStamp) - { - } - - public void start(IFeedlet feedlet) - { - } - - public void stop() - { - } - - public void stop(IConversionFeedlet feedlet, long timeStamp) - { - } - - public void stop(IFeedlet feedlet) - { - } - } - - public class VeryNullValueEvent implements IValueEvent - { - public void addValue(double value) - { - } - - public void addValue(IConversionFeedlet feedlet, long timeStamp, - double value) - { - } - - public void addValue(IFeedlet feedlet, double value) - { - } - - public String getName() - { - return null; - } - } -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |