Skip to content

Commit

Permalink
feat: add name to the OrientDB internal timer
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Jan 26, 2024
1 parent 162b367 commit 379032f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,13 @@ public OrientDBEmbedded(String directoryPath, OrientDBConfig configurations, Ori
orient.addOrientDB(this);
executor = newExecutor();
ioExecutor = newIoExecutor();
timer = new Timer();
String timerName;
if (basePath != null) {
timerName = "embedded:" + basePath;
} else {
timerName = "memory:";
}
timer = new Timer("OrientDB Timer[" + timerName + "]");

cachedPoolFactory = createCachedDatabasePoolFactory(this.configurations);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ <DB extends ODatabaseDocument> DB checkSecurity(
OElement newEmbeddedElement();

OElement newEmbeddedElement(final String className);

default OElement reload(OElement element) {
return (OElement) reload(element, null, true);
}
Expand Down

0 comments on commit 379032f

Please sign in to comment.