New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove JCR properties from root node context #943
Conversation
Big time 👍 |
@ajs6f a somewhat related question -- there are some lines (currently commented out) related to :
Should those be removed, too? |
+1 to removing the object count/size here. This would be a great thing to include in webapp-plus, so people who weren't using federation could add it in. |
@escowles Are you talking about actually modularizing "all-repo" stats so that people could plug in what they want? |
I was thinking we could literally plug in those two lines of code as an optional module. They work fine if you aren't using federation. Of course,people could plug in alternate implementations if they wanted to. Of course, we could do this in fcrepo4: if there is an appropriate bean injected, then add those properties, otherwise just skip them. |
// Get the cluster configuration, if available | ||
// this ugly test checks to see whether this is an ordinary JCR | ||
// repository or a ModeShape repo, which will possess the extra info | ||
if (JcrRepository.class.isAssignableFrom(repository.getClass())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this cluster information is still valuable... especially with the recent flurry of interest in clustering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The info may be valuable, bu that does not mean it should be published here. Perhaps in logging statements.
@escowles I would prefer an entirely separate module. I wouldn't mind shoving the Metrics-produced stats in there too. |
Normally I do not like dead code, but in this case, it continues to serve as a good reminder. I would suggest leaving this commented-out block around until we actually split the logic into a new, separate module. |
@awoods ok, then I will leave this PR as it currently stands; it is ready for review. |
@awoods: I've created a ticket for an external module for repository object/byte counts: https://jira.duraspace.org/browse/FCREPO-1820 |
I think this is ready to go. Any objections? |
remove JCR properties from root node context
See: https://jira.duraspace.org/browse/FCREPO-1819
This also removes the descriptors for the Modeshape/Infinispan cluster configuration, which renders the
GetCacheManager
andGetClusterConfiguration
completely unnecessary. So they are removed, too.