org.rhq.enterprise.communications.command.client
Class OutgoingCommandTrace

java.lang.Object
  extended by org.rhq.enterprise.communications.command.client.OutgoingCommandTrace

public class OutgoingCommandTrace
extends Object

Object that will log outgoing commands, used mainly for debugging a client.

Author:
John Mazzitelli

Constructor Summary
OutgoingCommandTrace()
           
 
Method Summary
static void finish(Command command, Object response)
          Call this when the command is finished - that is, just after its response is returned.
static void start(Command command)
          Call this when starting the command - that is, just prior to it going out over the wire.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutgoingCommandTrace

public OutgoingCommandTrace()
Method Detail

start

public static void start(Command command)
Call this when starting the command - that is, just prior to it going out over the wire.

Parameters:
command - the command that is going to be sent

finish

public static void finish(Command command,
                          Object response)
Call this when the command is finished - that is, just after its response is returned.

Parameters:
command - the command that has just finished
response - the response object that came back


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.