org.apache.muse.util
Interface Traceable

All Known Subinterfaces:
SoapClient
All Known Implementing Classes:
AbstractResourceClient, MetadataExchangeClient, MetricsClient, NotificationConsumerClient, NotificationProducerClient, RelationshipsClient, ServiceGroupClient, SimpleSoapClient, SubscriptionClient, WsResourceClient, WsrfMetadataExchangeClient

public interface Traceable

Traceable is a set of operations that wish to expose optional logging as part of their operations. The interface imposes no semantics as to what is logged and when, it merely provides the mechanics for starting and stopping the logging.

Author:
Dan Jemiolo (danj)

Method Summary
 PrintWriter getTraceWriter()
           
 boolean isUsingTrace()
           
 void setTrace(boolean trace)
           
 void setTraceWriter(PrintWriter writer)
           
 

Method Detail

getTraceWriter

PrintWriter getTraceWriter()
Returns:
The trace log.

isUsingTrace

boolean isUsingTrace()
Returns:
True if tracing is turned on.

setTrace

void setTrace(boolean trace)
Parameters:
trace - If 'true', tracing is turned on and messages sent to the trace log.

setTraceWriter

void setTraceWriter(PrintWriter writer)
Parameters:
writer - The trace log - note that you can make a PrintWriter from System.out and System.err by wrapping these fields in an instance of PrintWriter.


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.