Class ClusterRestService


  • @Service
    @Produces({"application/xml","application/json","application/yaml"})
    public class ClusterRestService
    extends Object
    REST service used for inter-cluster communication. These methods are NOT to be called generally by clients. They are to be called internally by midPoint running on other cluster nodes. So the usual form of authentication will be CLUSTER (a.k.a. node authentication). However, for diagnostic purposes we might allow also administrator access sometimes in the future.
    • Constructor Detail

      • ClusterRestService

        public ClusterRestService()
    • Method Detail

      • executeClusterCacheInvalidationEvent

        @POST
        @Path("/event/invalidation/{type}")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response executeClusterCacheInvalidationEvent​(@PathParam("type")
                                                                              String type,
                                                                              @Context
                                                                              org.apache.cxf.jaxrs.ext.MessageContext mc)
      • executeClusterCacheInvalidationEvent

        @POST
        @Path("/event/invalidation/{type}/{oid}")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response executeClusterCacheInvalidationEvent​(@PathParam("type")
                                                                              String type,
                                                                              @PathParam("oid")
                                                                              String oid,
                                                                              @Context
                                                                              org.apache.cxf.jaxrs.ext.MessageContext mc)
      • executeClusterTerminateSessionEvent

        @POST
        @Path("/event/terminateSession/")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response executeClusterTerminateSessionEvent​(TerminateSessionEventType event,
                                                                             @Context
                                                                             org.apache.cxf.jaxrs.ext.MessageContext mc)
      • listUserSession

        @GET
        @Path("event/listUserSession")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response listUserSession​(@Context
                                                         org.apache.cxf.jaxrs.ext.MessageContext mc)
      • getLocalSchedulerInformation

        @GET
        @Path("/scheduler/information")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response getLocalSchedulerInformation​(@Context
                                                                      org.apache.cxf.jaxrs.ext.MessageContext mc)
      • stopLocalScheduler

        @POST
        @Path("/scheduler/stop")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response stopLocalScheduler​(@Context
                                                            org.apache.cxf.jaxrs.ext.MessageContext mc)
      • startLocalScheduler

        @POST
        @Path("/scheduler/start")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response startLocalScheduler​(@Context
                                                             org.apache.cxf.jaxrs.ext.MessageContext mc)
      • stopLocalTask

        @POST
        @Path("/tasks/{oid}/stop")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response stopLocalTask​(@PathParam("oid")
                                                       String oid,
                                                       @Context
                                                       org.apache.cxf.jaxrs.ext.MessageContext mc)
      • getReportFile

        @GET
        @Path("/reportFiles")
        @Produces("application/octet-stream")
        public javax.ws.rs.core.Response getReportFile​(@QueryParam("filename")
                                                       String fileName,
                                                       @Context
                                                       org.apache.cxf.jaxrs.ext.MessageContext mc)
      • deleteReportFile

        @DELETE
        @Path("/reportFiles")
        public javax.ws.rs.core.Response deleteReportFile​(@QueryParam("filename")
                                                          String fileName,
                                                          @Context
                                                          org.apache.cxf.jaxrs.ext.MessageContext mc)