Package org.opencastproject.runtimeinfo
Class RuntimeInfo
java.lang.Object
org.opencastproject.runtimeinfo.RuntimeInfo
This REST endpoint provides information about the runtime environment, including the services and user interfaces
deployed and the current login context.
If the 'org.opencastproject.anonymous.feedback.url' is set in config.properties, this service will also update the
opencast project with the contents of the getRuntimeInfo() json feed.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) getHealth(javax.servlet.http.HttpServletResponse response) getRuntimeInfo(javax.servlet.http.HttpServletRequest request) getServiceStateAsJson(org.opencastproject.serviceregistry.api.ServiceRegistration service) protected voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) protected voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) protected voidsetUserIdRoleProvider(org.opencastproject.userdirectory.UserIdRoleProvider userIdRoleProvider) protected voidunsetUserIdRoleProvider(org.opencastproject.userdirectory.UserIdRoleProvider userIdRoleProvider)
-
Field Details
-
HEALTH_CHECK_VERSION
- See Also:
-
HEALTH_CHECK_STATUS_PASS
- See Also:
-
HEALTH_CHECK_STATUS_WARN
- See Also:
-
HEALTH_CHECK_STATUS_FAIL
- See Also:
-
SERVICE_FILTER
The rest publisher looks for any non-servlet with the 'opencast.service.path' property- See Also:
-
-
Constructor Details
-
RuntimeInfo
public RuntimeInfo()
-
-
Method Details
-
setUserIdRoleProvider
protected void setUserIdRoleProvider(org.opencastproject.userdirectory.UserIdRoleProvider userIdRoleProvider) -
unsetUserIdRoleProvider
protected void unsetUserIdRoleProvider(org.opencastproject.userdirectory.UserIdRoleProvider userIdRoleProvider) -
setSecurityService
protected void setSecurityService(org.opencastproject.security.api.SecurityService securityService) -
setServiceRegistry
protected void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) -
activate
- Throws:
MalformedURLException
-
getRuntimeInfo
@GET @Produces("application/json") @Path("components.json") public String getRuntimeInfo(@Context javax.servlet.http.HttpServletRequest request) throws MalformedURLException, org.osgi.framework.InvalidSyntaxException - Throws:
MalformedURLExceptionorg.osgi.framework.InvalidSyntaxException
-
getMyInfo
-
getHealth
@GET @Path("health") @Produces("application/health+json") public String getHealth(@Context javax.servlet.http.HttpServletResponse response) -
getServiceStateAsJson
-