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

scouter.agent.trace.LoadedContext Maven / Gradle / Ivy

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

import scouter.agent.Configure;
import scouter.agent.Logger;
import scouter.util.StringLinkedSet;

public class LoadedContext {
	public static StringLinkedSet ctxSet = new StringLinkedSet().setMax(100);
	public static void put(Object ds) {
		String old = ctxSet.put(ds.getClass().getName());
		if (old == null && Configure.getInstance()._log_datasource_lookup_enabled) {
			Logger.println("DataSource lookup : " + ds.getClass().getName());
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy