bbende commented on a change in pull request #5630:
URL: https://github.com/apache/nifi/pull/5630#discussion_r787777435
##########
File path:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/controller/ControllerFacade.java
##########
@@ -564,6 +577,62 @@ private boolean implementsServiceType(final Class
serviceType, final Class type)
return
dtoFactory.fromDocumentedTypes(getExtensionManager().getExtensions(ReportingTask.class),
bundleGroupFilter, bundleArtifactFilter, typeFilter);
}
+
+ /**
+ * Gets the RuntimeManifest for this overall NiFi instance.
+ *
+ * @return the runtime manifest
+ */
+ public RuntimeManifest getRuntimeManifest() {
+ final ExtensionManager extensionManager = getExtensionManager();
+ final Set<Bundle> allBundles = extensionManager.getAllBundles();
+
+ final Bundle frameworkBundle =
NarClassLoadersHolder.getInstance().getFrameworkBundle();
+ final BundleDetails frameworkDetails =
frameworkBundle.getBundleDetails();
+ final Date frameworkBuildDate =
frameworkDetails.getBuildTimestampDate();
+
+ final BuildInfo buildInfo = new BuildInfo();
+ buildInfo.setVersion(frameworkDetails.getCoordinate().getVersion());
+ buildInfo.setRevision(frameworkDetails.getBuildRevision());
+ buildInfo.setCompiler(frameworkDetails.getBuildJdk());
+ buildInfo.setTimestamp(frameworkBuildDate == null ? null :
frameworkBuildDate.getTime());
+
+ final RuntimeManifestBuilder manifestBuilder = new
StandardRuntimeManifestBuilder()
+ .identifier("nifi")
+ .runtimeType("nifi")
Review comment:
It is not really that important for a consumer, mostly just metadata
information, but I will promote it to a constant
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]