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

com.cisco.oss.foundation.logging.transactions.Component Maven / Gradle / Ivy

Go to download

This project is the logging log4j implementation library in the cisco vss foundation runtime

There is a newer version: 1.2.1-2
Show newest version
package com.cisco.oss.foundation.logging.transactions;

/**
 * Hold component processing time
 * @author abrandwi
 *
 */
public class Component {

    private Timer timer;

	private final String componentType;

    public Component( String ComponentType ) {
        this.componentType = ComponentType;
        this.timer		= new Timer();
    }

    public long getLastTime() {
            return timer.getLastTime();
    }

    public long getTime() {
            return timer.getTime();
    }

    public void startTimer() {
    	timer.start(getComponentType());
    }

    public void pauseTimer() {
    	timer.pause(getComponentType());
    }

    public void resetTimer() {
        timer.reset(getComponentType());
    }

	public String getComponentType() {
		return componentType;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy