Class RuntimeInfo

java.lang.Object
org.opencastproject.runtimeinfo.RuntimeInfo

@Path("/info") public class RuntimeInfo extends Object
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 Details

  • 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

      public void activate(org.osgi.service.component.ComponentContext cc) throws MalformedURLException
      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:
      MalformedURLException
      org.osgi.framework.InvalidSyntaxException
    • getMyInfo

      @GET @Path("me.json") @Produces("application/json") public String getMyInfo()
    • getHealth

      @GET @Path("health") @Produces("application/health+json") public String getHealth(@Context javax.servlet.http.HttpServletResponse response)
    • getServiceStateAsJson

      protected Map<String,Object> getServiceStateAsJson(org.opencastproject.serviceregistry.api.ServiceRegistration service)