All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scouter.agent.util.LeakInfo2 Maven / Gradle / Ivy

There is a newer version: 2.20.0
Show newest version
package scouter.agent.util;

/**
 * Leak Info having an origin object.
 * @author Gun Lee([email protected])
 */
public class LeakInfo2 {
    public Error error;
    public String inner;
    public Object innerObject;
    public int serviceHash;
    public long txid;
    public boolean fullstack;
    public int fullstackSkip;
    public ICloseManager closeManager;

    /**
     * constructor
     * @param error error object to describe
     * @param inner original object leackable
     * @param closeManager  close manager for the inner
     * @param serviceHash service hash id
     * @param txid txid
     * @param fullstack the flag for displaying full stack trace or not on a leak detecting
     * @param fullstackSkip skip rows of the full stack trace
     */
    public LeakInfo2(Error error, Object inner, ICloseManager closeManager, int serviceHash, long txid, boolean fullstack, int fullstackSkip) {
        super();
        this.error = error;
        this.inner = inner.getClass().getName();
        this.innerObject = inner;
        this.serviceHash = serviceHash;
        this.txid = txid;
        this.fullstack = fullstack;
        this.fullstackSkip = fullstackSkip;
        this.closeManager = closeManager;
    }

    @Override
    public String toString() {
        return "LeakInfo [error=" + error + ", inner=" + inner + ", serviceHash=" + serviceHash + ", txid=" + txid
                + ", fullstack=" + fullstack + "]";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy