Skip to content

Commit

Permalink
Use simple class names in configuration like tantar.
Browse files Browse the repository at this point in the history
  • Loading branch information
at88mph committed May 17, 2024
1 parent d608bfb commit 5ddf521
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cavern/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ org.opencadc.cavern.allocationParent = {top level node}
# (optional) provide a class implementing the org.opencadc.cavern.nodes.QuotaPlugin interface to control Quotas
# for users.
# Optional, but the default of NoQuotaPlugin will get used if not specified, and users will have free reign.
# - CephFSQuotaPlugin: Use CephFS's extended attributes to determine current quota and folder sizes.
# - NoQuotaPlugin: Default - no quota checking
#
org.opencadc.cavern.nodes.QuotaPlugin = {plugin implementation class}
org.opencadc.cavern.nodes.QuotaPlugin = CephFSQuotaPlugin | NoQuotaPlugin
# base directory for cavern files
org.opencadc.cavern.filesystem.baseDir = {persistent data directory in container}
Expand Down
2 changes: 1 addition & 1 deletion cavern/src/main/java/org/opencadc/cavern/CavernConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public QuotaPlugin getQuotaPlugin() {
log.debug("getQuotaPlugin: defaulting to NoQuotaPlugin");
return CavernConfig.loadPlugin(NoQuotaPlugin.class.getName());
} else {
return CavernConfig.loadPlugin(cname);
return CavernConfig.loadPlugin(QuotaPlugin.class.getPackage().getName() + "." + cname);
}
}

Expand Down

0 comments on commit 5ddf521

Please sign in to comment.