public abstract class UsersJob extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected int |
count |
protected PerfTools.JobRepresentation |
job |
protected CountDownLatch |
latch |
protected String |
prefix |
protected String |
realmName |
protected KeycloakSessionFactory |
sessionFactory |
protected int |
start |
Constructor and Description |
---|
UsersJob() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
before(KeycloakSession keycloakSession) |
protected RoleModel |
findRole(Set<RoleModel> roles,
String roleName) |
protected void |
grantRole(UserModel user,
String roleName,
Set<RoleModel> realmRoles,
Map<String,Set<RoleModel>> appRoles) |
void |
init(PerfTools.JobRepresentation job,
KeycloakSessionFactory sessionFactory,
String realmName,
int start,
int count,
String prefix,
CountDownLatch latch) |
void |
run() |
protected abstract void |
runIteration(KeycloakSession session,
RealmModel realm,
Map<String,ApplicationModel> apps,
Set<RoleModel> realmRoles,
Map<String,Set<RoleModel>> appRoles,
int counter) |
protected PerfTools.JobRepresentation job
protected KeycloakSessionFactory sessionFactory
protected String realmName
protected int start
protected int count
protected String prefix
protected CountDownLatch latch
public void init(PerfTools.JobRepresentation job, KeycloakSessionFactory sessionFactory, String realmName, int start, int count, String prefix, CountDownLatch latch)
protected abstract void before(KeycloakSession keycloakSession)
protected abstract void runIteration(KeycloakSession session, RealmModel realm, Map<String,ApplicationModel> apps, Set<RoleModel> realmRoles, Map<String,Set<RoleModel>> appRoles, int counter)
Copyright © 2014. All Rights Reserved.