From: Marek P. <ma...@us...> - 2002-03-07 00:24:53
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/commun In directory usw-pr-cvs1:/tmp/cvs-serv13649/net/sourceforge/javaprofiler/jpiimpl/commun Modified Files: IProf.java Log Message: new 'clearFlag' parameter added to IProf.getAll()/IProf.getChanged() Index: IProf.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/commun/IProf.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** IProf.java 6 Mar 2002 17:59:34 -0000 1.13 --- IProf.java 7 Mar 2002 00:24:49 -0000 1.14 *************** *** 1608,1611 **** --- 1608,1612 ---- ** @param includeInfo include information about object ** @param optionalArg optional argument (depends on type of object) + ** @param clearFlag clear flag that an item has been changed ** ** @return iterator for objects having statistic data (sID objects) *************** *** 1619,1623 **** boolean sameOutputObject, boolean includeInfo, ! int optionalArg) throws COMMUN_Exception, --- 1620,1625 ---- boolean sameOutputObject, boolean includeInfo, ! int optionalArg, ! boolean clearFlag) throws COMMUN_Exception, *************** *** 1635,1638 **** --- 1637,1643 ---- _buf.putInt( optionalArg); + + if( clearFlag) _buf.putInt( 1); + else _buf.putInt( 0); _commun.write( _buf); *************** *** 1667,1670 **** --- 1672,1676 ---- ** @param includeInfo include information about object ** @param optionalArg optional argument (depends on type of object) + ** @param clearFlag clear flag that an item has been changed ** ** @return linked list of sID objects *************** *** 1676,1680 **** int seqType, boolean includeInfo, ! int optionalArg) throws COMMUN_Exception, --- 1682,1687 ---- int seqType, boolean includeInfo, ! int optionalArg, ! boolean clearFlag) throws COMMUN_Exception, *************** *** 1683,1689 **** UNKNOWN_Exception { ! Iterator iterator = getChangedOrAllThruIterator( ! funcType, objId, seqType, false, ! includeInfo, optionalArg); LinkedList list = new LinkedList(); --- 1690,1697 ---- UNKNOWN_Exception { ! Iterator iterator = ! getChangedOrAllThruIterator( ! funcType, objId, seqType, false, ! includeInfo, optionalArg, clearFlag); LinkedList list = new LinkedList(); *************** *** 1724,1729 **** ** @param includeInfo include information about object ** @param optionalArg optional argument (depends on type of object) ** ! ** @return linked list of sID objects ** ** @see getInfo(), getData(), getAll(), getChanged(), --- 1732,1738 ---- ** @param includeInfo include information about object ** @param optionalArg optional argument (depends on type of object) + ** @param clearFlag clear flag that an item has been changed ** ! ** @return linked list of #sID objects ** ** @see getInfo(), getData(), getAll(), getChanged(), *************** *** 1734,1737 **** --- 1743,1766 ---- int seqType, boolean includeInfo, + int optionalArg, + boolean clearFlag) + + throws COMMUN_Exception, + BAD_OBJ_ID_Exception, + BAD_COMMAND_Exception, + UNKNOWN_Exception { + + return getChangedOrAll( F_GET_ALL, objId, seqType, + includeInfo, optionalArg, clearFlag); + } + + /** Get all objects with all statistic data. + ** + ** @see getAll(), getChanged(), getChangedOrAll(), + ** getAllThruIterator(), getChangedThruIterator() */ + + public synchronized LinkedList getAll( int objId, + int seqType, + boolean includeInfo, int optionalArg) *************** *** 1742,1746 **** return getChangedOrAll( F_GET_ALL, objId, seqType, ! includeInfo, optionalArg); } --- 1771,1793 ---- return getChangedOrAll( F_GET_ALL, objId, seqType, ! includeInfo, optionalArg, true); ! } ! ! /** Get all objects with all statistic data. ! ** ! ** @see getAll(), getChanged(), getChangedOrAll(), ! ** getAllThruIterator(), getChangedThruIterator() */ ! ! public synchronized LinkedList getAll( int objId, ! int seqType, ! boolean clearFlag) ! ! throws COMMUN_Exception, ! BAD_OBJ_ID_Exception, ! BAD_COMMAND_Exception, ! UNKNOWN_Exception { ! ! return getChangedOrAll( F_GET_ALL, objId, seqType, ! false, NO_OPTIONAL_ARG, clearFlag); } *************** *** 1758,1762 **** return getChangedOrAll( F_GET_ALL, objId, seqType, ! false, NO_OPTIONAL_ARG); } --- 1805,1832 ---- return getChangedOrAll( F_GET_ALL, objId, seqType, ! false, NO_OPTIONAL_ARG, true); ! } ! ! /** Get all objects with all statistic data. ! ** ! ** @see getAllThruIterator(), getChangedThruIterator(), ! ** getChangedOrAllThruIterator(), getAll(), getChanged() */ ! ! public synchronized ! Iterator getAllThruIterator( int objId, ! int seqType, ! boolean sameOutputObject, ! boolean includeInfo, ! int optionalArg, ! boolean clearFlag) ! ! throws COMMUN_Exception, ! BAD_OBJ_ID_Exception, ! BAD_COMMAND_Exception, ! UNKNOWN_Exception { ! ! return getChangedOrAllThruIterator( F_GET_ALL, objId, ! seqType, sameOutputObject, includeInfo, ! optionalArg, clearFlag); } *************** *** 1775,1784 **** throws COMMUN_Exception, BAD_OBJ_ID_Exception, ! BAD_COMMAND_Exception, ! UNKNOWN_Exception { ! return getChangedOrAllThruIterator( F_GET_ALL, objId, seqType, ! sameOutputObject, includeInfo, ! optionalArg); } --- 1845,1875 ---- throws COMMUN_Exception, BAD_OBJ_ID_Exception, ! BAD_COMMAND_Exception, ! UNKNOWN_Exception { ! return getChangedOrAllThruIterator( F_GET_ALL, objId, ! seqType, sameOutputObject, includeInfo, ! optionalArg, true); ! } ! ! /** Get all objects with all statistic data. ! ** ! ** @see getAllThruIterator(), getChangedThruIterator(), ! ** getChangedOrAllThruIterator(), getAll(), getChanged() */ ! ! public synchronized ! Iterator getAllThruIterator( int objId, ! int seqType, ! boolean sameOutputObject, ! boolean clearFlag) ! ! throws COMMUN_Exception, ! BAD_OBJ_ID_Exception, ! BAD_COMMAND_Exception, ! UNKNOWN_Exception { ! ! return getChangedOrAllThruIterator( F_GET_ALL, objId, ! seqType, sameOutputObject, false, ! NO_OPTIONAL_ARG, clearFlag); } *************** *** 1798,1804 **** UNKNOWN_Exception { ! return getChangedOrAllThruIterator( F_GET_ALL, objId, seqType, ! sameOutputObject, false, ! NO_OPTIONAL_ARG); } --- 1889,1895 ---- UNKNOWN_Exception { ! return getChangedOrAllThruIterator( F_GET_ALL, objId, ! seqType, sameOutputObject, false, ! NO_OPTIONAL_ARG, true); } *************** *** 1826,1833 **** ** #MON_THREAD_METHOD_TRACES. ** ! ** @param objId identifier of object having a data ! ** @param seqType specified action ** ! ** @return linked list of sID objects ** ** @see getInfo(), getData(), getAll(), getChanged(), --- 1917,1927 ---- ** #MON_THREAD_METHOD_TRACES. ** ! ** @param objId identifier of object having a data ! ** @param seqType specified action ! ** @param includeInfo include information about object ! ** @param optionalArg optional argument (depends on type of object) ! ** @param clearFlag clear flag that an item has been changed ** ! ** @return linked list of #sID objects ** ** @see getInfo(), getData(), getAll(), getChanged(), *************** *** 1838,1841 **** --- 1932,1955 ---- int seqType, boolean includeInfo, + int optionalArg, + boolean clearFlag) + + throws COMMUN_Exception, + BAD_OBJ_ID_Exception, + BAD_COMMAND_Exception, + UNKNOWN_Exception { + + return getChangedOrAll( F_GET_CHANGED, objId, seqType, + includeInfo, optionalArg, clearFlag); + } + + /** Get all objects with changed statistic data. + ** + ** @see getChanged(), getAll(), getChangedOrAll(), + ** getChangedThruIterator(), getAllThruIterator() */ + + public synchronized LinkedList getChanged( int objId, + int seqType, + boolean includeInfo, int optionalArg) *************** *** 1846,1850 **** return getChangedOrAll( F_GET_CHANGED, objId, seqType, ! includeInfo, optionalArg); } --- 1960,1982 ---- return getChangedOrAll( F_GET_CHANGED, objId, seqType, ! includeInfo, optionalArg, true); ! } ! ! /** Get all objects with changed statistic data. ! ** ! ** @see getChanged(), getAll(), getChangedOrAll(), ! ** getChangedThruIterator(), getAllThruIterator() */ ! ! public synchronized LinkedList getChanged( int objId, ! int seqType, ! boolean clearFlag) ! ! throws COMMUN_Exception, ! BAD_OBJ_ID_Exception, ! BAD_COMMAND_Exception, ! UNKNOWN_Exception { ! ! return getChangedOrAll( F_GET_CHANGED, objId, seqType, ! false, NO_OPTIONAL_ARG, clearFlag); } *************** *** 1862,1866 **** return getChangedOrAll( F_GET_CHANGED, objId, seqType, ! false, NO_OPTIONAL_ARG); } --- 1994,2021 ---- return getChangedOrAll( F_GET_CHANGED, objId, seqType, ! false, NO_OPTIONAL_ARG, true); ! } ! ! /** Get all objects with changed statistic data. ! ** ! ** @see getChangedThruIterator(), getAllThruIterator(), ! ** getChangedOrAllThruIterator(), getChanged(), getAll() */ ! ! public synchronized ! Iterator getChangedThruIterator( int objId, ! int seqType, ! boolean sameOutputObject, ! boolean includeInfo, ! int optionalArg, ! boolean clearFlag) ! ! throws COMMUN_Exception, ! BAD_OBJ_ID_Exception, ! BAD_COMMAND_Exception, ! UNKNOWN_Exception { ! ! return getChangedOrAllThruIterator( F_GET_CHANGED, objId, ! seqType, sameOutputObject, includeInfo, ! optionalArg, clearFlag); } *************** *** 1882,1888 **** UNKNOWN_Exception { ! return getChangedOrAllThruIterator( F_GET_CHANGED, objId, seqType, ! sameOutputObject, includeInfo, ! optionalArg); } --- 2037,2064 ---- UNKNOWN_Exception { ! return getChangedOrAllThruIterator( F_GET_CHANGED, objId, ! seqType, sameOutputObject, includeInfo, ! optionalArg, true); ! } ! ! /** Get all objects with changed statistic data. ! ** ! ** @see getChangedThruIterator(), getAllThruIterator(), ! ** getChangedOrAllThruIterator(), getChanged(), getAll() */ ! ! public synchronized ! Iterator getChangedThruIterator( int objId, ! int seqType, ! boolean sameOutputObject, ! boolean clearFlag) ! ! throws COMMUN_Exception, ! BAD_OBJ_ID_Exception, ! BAD_COMMAND_Exception, ! UNKNOWN_Exception { ! ! return getChangedOrAllThruIterator( F_GET_CHANGED, objId, ! seqType, sameOutputObject, false, ! NO_OPTIONAL_ARG, clearFlag); } *************** *** 1902,1908 **** UNKNOWN_Exception { ! return getChangedOrAllThruIterator( F_GET_CHANGED, objId, seqType, ! sameOutputObject, false, ! NO_OPTIONAL_ARG); } --- 2078,2084 ---- UNKNOWN_Exception { ! return getChangedOrAllThruIterator( F_GET_CHANGED, objId, ! seqType, sameOutputObject, false, ! NO_OPTIONAL_ARG, true); } *************** *** 2184,2194 **** UNKNOWN_Exception { ! try { ! ! if( !getCallTreeAll( threadObjId)) return null; ! } ! catch( COMMUN_Exception e) { throw e;} ! catch( BAD_OBJ_ID_Exception e) { throw e;} ! catch( UNKNOWN_Exception e) { throw e;} int pos = 4; --- 2360,2364 ---- UNKNOWN_Exception { ! if( !getCallTreeAll( threadObjId)) return null; int pos = 4; *************** *** 2354,2364 **** UNKNOWN_Exception { - try { ! if( !getCallTreeAll( threadObjId)) return null; ! } ! catch( COMMUN_Exception e) { throw e;} ! catch( BAD_OBJ_ID_Exception e) { throw e;} ! catch( UNKNOWN_Exception e) { throw e;} Iterator iterator = --- 2524,2529 ---- UNKNOWN_Exception { ! if( !getCallTreeAll( threadObjId)) return null; Iterator iterator = |