@Path(value="perf") public class PerfTools extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PerfTools.JobRepresentation |
| Constructor and Description |
|---|
PerfTools(KeycloakSessionFactory sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
createAvailableUsers(String realmName,
Integer count,
Integer batch,
String prefix,
Boolean async,
String roles) |
void |
createUsers(String realmName,
Integer count,
Integer batch,
Integer start,
String prefix,
Boolean async,
String roles) |
void |
deleteJobs() |
void |
deleteUsers(String realmName,
Integer count,
Integer batch,
Integer start,
String prefix,
Boolean async) |
void |
deleteUsers(String realmName,
String prefix,
Boolean async) |
void |
export(String dir) |
javax.ws.rs.core.Response |
getUsersCountReq(String realmName,
String prefix) |
List<PerfTools.JobRepresentation> |
jobs() |
void |
updateAllUsers(String realmName,
String prefix,
Boolean async,
String roles) |
void |
updateUsers(String realmName,
Integer count,
Integer batch,
Integer start,
String prefix,
Boolean async,
String roles) |
public PerfTools(KeycloakSessionFactory sessionFactory)
@GET @Path(value="jobs") @Produces(value="application/json") public List<PerfTools.JobRepresentation> jobs()
@GET @Path(value="delete-jobs") public void deleteJobs()
@GET
@Path(value="{realm}/create-users")
public void createUsers(@PathParam(value="realm")
String realmName,
@QueryParam(value="count")
Integer count,
@QueryParam(value="batch")
Integer batch,
@QueryParam(value="start")
Integer start,
@QueryParam(value="prefix")
String prefix,
@QueryParam(value="async")
Boolean async,
@QueryParam(value="roles")
String roles)
throws InterruptedException
InterruptedException@GET
@Path(value="{realm}/create-available-users")
public void createAvailableUsers(@PathParam(value="realm")
String realmName,
@QueryParam(value="count")
Integer count,
@QueryParam(value="batch")
Integer batch,
@QueryParam(value="prefix")
String prefix,
@QueryParam(value="async")
Boolean async,
@QueryParam(value="roles")
String roles)
throws InterruptedException
InterruptedException@GET
@Path(value="{realm}/delete-users")
public void deleteUsers(@PathParam(value="realm")
String realmName,
@QueryParam(value="count")
Integer count,
@QueryParam(value="batch")
Integer batch,
@QueryParam(value="start")
Integer start,
@QueryParam(value="prefix")
String prefix,
@QueryParam(value="async")
Boolean async)
throws InterruptedException
InterruptedException@GET
@Path(value="{realm}/delete-all-users")
public void deleteUsers(@PathParam(value="realm")
String realmName,
@QueryParam(value="prefix")
String prefix,
@QueryParam(value="async")
Boolean async)
throws InterruptedException
InterruptedException@GET
@Path(value="{realm}/update-users")
public void updateUsers(@PathParam(value="realm")
String realmName,
@QueryParam(value="count")
Integer count,
@QueryParam(value="batch")
Integer batch,
@QueryParam(value="start")
Integer start,
@QueryParam(value="prefix")
String prefix,
@QueryParam(value="async")
Boolean async,
@QueryParam(value="roles")
String roles)
throws InterruptedException
InterruptedException@GET
@Path(value="{realm}/update-all-users")
public void updateAllUsers(@PathParam(value="realm")
String realmName,
@QueryParam(value="prefix")
String prefix,
@QueryParam(value="async")
Boolean async,
@QueryParam(value="roles")
String roles)
throws InterruptedException
InterruptedException@GET
@Path(value="{realm}/get-users-count")
public javax.ws.rs.core.Response getUsersCountReq(@PathParam(value="realm")
String realmName,
@QueryParam(value="prefix")
String prefix)
@GET
@Path(value="export")
public void export(@QueryParam(value="dir")
String dir)
Copyright © 2014. All Rights Reserved.