Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data
In directory usw-pr-cvs1:/tmp/cvs-serv17900
Modified Files:
ThreadData.java
Log Message:
changed interface to jpi
added startTime, endTime
Index: ThreadData.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/data/ThreadData.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** ThreadData.java 14 May 2002 14:05:37 -0000 1.21
--- ThreadData.java 30 May 2002 22:37:22 -0000 1.22
***************
*** 24,28 ****
import net.sourceforge.javaprofiler.jpiimpl.commun.*;
! import net.sourceforge.javaprofiler.api.*;
/**
* Information about one thread.
--- 24,28 ----
import net.sourceforge.javaprofiler.jpiimpl.commun.*;
! import net.sourceforge.javaprofiler.jpi.*;
/**
* Information about one thread.
***************
*** 37,40 ****
--- 37,42 ----
private ThreadData parent;
private boolean active;
+ private Date endTime;
+ private Date startTime;
private final VirtualMachineImageRef vmImage;
***************
*** 81,88 ****
*/
ThreadData(Integer ID, String name, ThreadGroupData group,
! ThreadData parent, VirtualMachineImageRef vmImage, boolean active) {
super(ID);
this.threadName=name;
this.threadGroup=group;
this.parent=parent; //warning probably may be null
this.vmImage=vmImage;
--- 83,93 ----
*/
ThreadData(Integer ID, String name, ThreadGroupData group,
! ThreadData parent, VirtualMachineImageRef vmImage, Date startTime,
! Date endTime, boolean active) {
super(ID);
this.threadName=name;
this.threadGroup=group;
+ this.startTime = startTime;
+ this.endTime = endTime;
this.parent=parent; //warning probably may be null
this.vmImage=vmImage;
***************
*** 102,106 ****
VirtualMachineImageRef vmImage) {
this( new Integer(sid.objId), ((IProf.sThreadInfo)sid.info).threadName,
! group, parent, vmImage, sid.active);
if (sid.alloc != null)
--- 107,112 ----
VirtualMachineImageRef vmImage) {
this( new Integer(sid.objId), ((IProf.sThreadInfo)sid.info).threadName,
! group, parent, vmImage, ((IProf.sThreadInfo)sid.info).startTime,
! ((IProf.sThreadInfo)sid.info).endTime, sid.active);
if (sid.alloc != null)
***************
*** 246,249 ****
--- 252,273 ----
/**
+ * Returns start time of this thread.
+ *
+ * @return start time of this thread.
+ */
+ public Date getStartTime() {
+ return startTime;
+ }
+
+ /**
+ * Returns end time of this thread.
+ *
+ * @return end time of this thread.
+ */
+ public Date getEndTime() {
+ return endTime;
+ }
+
+ /**
* Returns VirtualMachineImage this method belongs to. The VirtualMachineImage could be live
* (realtime implementation) or static (snaphshot).
***************
*** 489,496 ****
--- 513,531 ----
return getName();
}
+
+ public void removeChildrenListener(String type, ChildrenListener listener) {
+ }
+
+ public void addChildrenListener(String type, ChildrenListener listener) {
+ }
+
}
/*
* $Log$
+ * Revision 1.22 2002/05/30 22:37:22 vachis
+ * changed interface to jpi
+ * added startTime, endTime
+ *
* Revision 1.21 2002/05/14 14:05:37 vachis
* "cross" methods
|