Class TraceCollector

    • Method Detail

      • callbackMethod

        public static boolean callbackMethod​(String _qname,
                                             ClassLoader _class_loader,
                                             URL _url,
                                             String _archive_digest,
                                             String _app_groupid,
                                             String _app_artifactid,
                                             String _app_version,
                                             Map<String,​Serializable> _params)
        Callback method for instrumented class methods.
        Parameters:
        _qname - the qualified name of the method or constructor instrumented, thus, performing the callback
        _archive_digest - the SHA1 digest of the original JAR archive (optional, must be added to the class during offline instrumentation)
        _app_groupid - the Maven group Id of the application context (optional, can be added to the class during offline instrumentation)
        _app_artifactid - the Maven artifact Id of the application context (optional, see above)
        _app_version - the Maven version of the application context (optional, see above)
        _class_loader - a ClassLoader object.
        _url - a URL object.
        _params - a Map object.
        Returns:
        a boolean.
      • callbackConstructor

        public static boolean callbackConstructor​(String _qname,
                                                  ClassLoader _class_loader,
                                                  URL _url,
                                                  String _archive_digest,
                                                  String _app_groupid,
                                                  String _app_artifactid,
                                                  String _app_version,
                                                  Map<String,​Serializable> _params)
        Callback method for instrumented class constructors.
        Parameters:
        _qname - the qualified name of the method or constructor instrumented, thus, performing the callback
        _archive_digest - the SHA1 digest of the original JAR archive (optional, must be added to the class during static instrumentation)
        _app_groupid - the Maven group Id of the application context (optional, can be added to the class during static instrumentation)
        _app_artifactid - the Maven artifact Id of the application context (optional, see above)
        _app_version - the Maven version of the application context (optional, see above)
        _class_loader - a ClassLoader object.
        _url - a URL object.
        _params - a Map object.
        Returns:
        a boolean.
      • callbackClinit

        public static boolean callbackClinit​(String _qname,
                                             ClassLoader _class_loader,
                                             URL _url,
                                             String _archive_digest,
                                             String _app_groupid,
                                             String _app_artifactid,
                                             String _app_version,
                                             Map<String,​Serializable> _params)
        Callback method for instrumented class constructors.
        Parameters:
        _qname - the qualified name of the method or constructor instrumented, thus, performing the callback
        _archive_digest - the SHA1 digest of the original JAR archive (optional, must be added to the class during static instrumentation)
        _app_groupid - the Maven group Id of the application context (optional, can be added to the class during static instrumentation)
        _app_artifactid - the Maven artifact Id of the application context (optional, see above)
        _app_version - the Maven version of the application context (optional, see above)
        _class_loader - a ClassLoader object.
        _url - a URL object.
        _params - a Map object.
        Returns:
        a boolean.
      • uploadInformation

        public void uploadInformation​(AbstractGoal _exe,
                                      int batchSize)

        uploadInformation.

        Parameters:
        _exe - a AbstractGoal object.
        batchSize - a int.
      • awaitUpload

        public void awaitUpload()

        awaitUpload.

      • uploadPaths

        public void uploadPaths​(int _batch_size)
        Upload _batch_size paths gathered from stack trace information (all if _batch_size is negative).
        Parameters:
        _batch_size - a int.
      • getStatistics

        public Map<String,​Long> getStatistics()

        getStatistics.

        Returns:
        a Map object.