FileDocCategorySizeDatePackage
ThreadManagerResponseImpl.javaAPI DocJBoss 4.2.13519Fri Jul 13 21:02:30 BST 2007org.jboss.aspects.asynchronous.common

ThreadManagerResponseImpl

public class ThreadManagerResponseImpl extends AsynchronousResponseImpl implements org.jboss.aspects.asynchronous.ThreadManagerResponse, org.jboss.aspects.asynchronous.AsynchronousConstants
author
{Claude Hussenet Independent Consultant}.
version
$Revision: 57186 $

Fields Summary
private long
_startingTime
private long
_endingTime
private String
id
private static SimpleDateFormat
formatter
Constructors Summary
public ThreadManagerResponseImpl(String id, int code, String reason, Object obj)


     

                                     

                                     

                                     
   

      super(code, reason, obj);

      this.id = id;

   
public ThreadManagerResponseImpl(String id, int code, String reason, Object obj, long startTime)


      super(code, reason, obj);

      _startingTime = startTime;

      this.id = id;

   
public ThreadManagerResponseImpl(String id, int code, String reason, Object obj, long startTime, long endTime)


      super(code, reason, obj);

      _startingTime = startTime;

      _endingTime = endTime;

      this.id = id;

   
Methods Summary
public longgetEndingTime()


      return _endingTime;

   
public java.lang.StringgetId()


      return id;

   
public longgetStartingTime()


      return _startingTime;

   
public java.lang.StringtoString()


      return new StringBuffer("Id:")

      .append(getId())

      .append(" Rc:")

      .append(getResponseCode())

      .append(getReason() != null ? " Re:" : "")

      .append(getReason() != null ? getReason() : "")

      .append(" St:")

      .append(formatter.format(new Date(getStartingTime())))

      .append(" Du:")

      .append(getEndingTime() - getStartingTime())

      .append(getResponseCode() != AsynchronousConstants.OK ? " Rs:" : "")

      .append(getResult())

      .toString();