io.ebeaninternal.server.profile.BasicProfileLocation Maven / Gradle / Ivy
package io.ebeaninternal.server.profile;
import io.ebean.ProfileLocation;
/**
* Fixed / given location. Used internally for find by id and find all.
*/
final class BasicProfileLocation implements ProfileLocation {
private final String fullLocation;
private final String location;
private final String label;
BasicProfileLocation(String fullLocation) {
this.fullLocation = fullLocation;
this.location = UtilLocation.loc(fullLocation);
this.label = UtilLocation.label(location);
}
@Override
public String toString() {
return location;
}
@Override
public void add(long executionTime) {
// do nothing
}
@Override
public boolean obtain() {
return false;
}
@Override
public String label() {
return label;
}
@Override
public String location() {
return location;
}
@Override
public String fullLocation() {
return fullLocation;
}
@Override
public boolean trace() {
return false;
}
@Override
public void setTraceCount(int traceCount) {
// do nothing
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy