Package com.evolveum.midpoint.model.impl
Class ClusterRestService
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.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.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASS_DOT
static String
EVENT_INVALIDATION
static String
EVENT_LIST_USER_SESSION
static String
EVENT_TERMINATE_SESSION
static String
REPORT_FILE_FILENAME_PARAMETER
static String
REPORT_FILE_PATH
-
Constructor Summary
Constructors Constructor Description ClusterRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
deleteReportFile(String fileName, org.apache.cxf.jaxrs.ext.MessageContext mc)
javax.ws.rs.core.Response
executeClusterCacheInvalidationEvent(String type, String oid, org.apache.cxf.jaxrs.ext.MessageContext mc)
javax.ws.rs.core.Response
executeClusterCacheInvalidationEvent(String type, org.apache.cxf.jaxrs.ext.MessageContext mc)
javax.ws.rs.core.Response
executeClusterTerminateSessionEvent(TerminateSessionEventType event, org.apache.cxf.jaxrs.ext.MessageContext mc)
javax.ws.rs.core.Response
getLocalSchedulerInformation(org.apache.cxf.jaxrs.ext.MessageContext mc)
javax.ws.rs.core.Response
getReportFile(String fileName, org.apache.cxf.jaxrs.ext.MessageContext mc)
javax.ws.rs.core.Response
listUserSession(org.apache.cxf.jaxrs.ext.MessageContext mc)
javax.ws.rs.core.Response
startLocalScheduler(org.apache.cxf.jaxrs.ext.MessageContext mc)
javax.ws.rs.core.Response
stopLocalScheduler(org.apache.cxf.jaxrs.ext.MessageContext mc)
javax.ws.rs.core.Response
stopLocalTask(String oid, org.apache.cxf.jaxrs.ext.MessageContext mc)
-
-
-
Field Detail
-
CLASS_DOT
public static final String CLASS_DOT
-
EVENT_INVALIDATION
public static final String EVENT_INVALIDATION
- See Also:
- Constant Field Values
-
EVENT_TERMINATE_SESSION
public static final String EVENT_TERMINATE_SESSION
- See Also:
- Constant Field Values
-
EVENT_LIST_USER_SESSION
public static final String EVENT_LIST_USER_SESSION
- See Also:
- Constant Field Values
-
REPORT_FILE_PATH
public static final String REPORT_FILE_PATH
- See Also:
- Constant Field Values
-
REPORT_FILE_FILENAME_PARAMETER
public static final String REPORT_FILE_FILENAME_PARAMETER
- See Also:
- Constant Field Values
-
-
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)
-
-