org.headlessintrace.client.model.Instrumentation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of headlessInTraceClient Show documentation
Show all versions of headlessInTraceClient Show documentation
A headless java API that collects events from other JVMs. Events=method invocations. Initial code taken from http://mchr3k.github.io/org.intrace/. Intended for building diagnostic applications.
package org.headlessintrace.client.model;
import java.util.ArrayList;
import java.util.List;
public class Instrumentation {
private List m_includedClasses = null;
private List m_excludedClasses = null;
public static List getListFromString(String pattern)
{
List items = new ArrayList();
String[] patternParts = pattern.split("\\|");
for (String part : patternParts)
{
items.add(part);
}
return items;
}
public static String getStringFromList(List list)
{
StringBuilder str = new StringBuilder();
for (int ii = 0; ii < list.size(); ii++)
{
String item = list.get(ii);
str.append(item);
if (ii < (list.size() - 1))
{
str.append("|");
}
}
return str.toString();
}
public List getIncludedClasses() {
return m_includedClasses;
}
public void setIncludedClasses(List includedClasses) {
this.m_includedClasses = includedClasses;
}
public List getExcludedClasses() {
return m_excludedClasses;
}
public void setExcludedClasses(List excludedClasses) {
this.m_excludedClasses = excludedClasses;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy