|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.bench.DataInjector
public abstract class DataInjector
Created by The eXo Platform SAS
| Field Summary | |
|---|---|
static String |
ARRAY_SPLIT
|
| Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin |
|---|
desc, name |
| Constructor Summary | |
|---|---|
DataInjector()
|
|
| Method Summary | |
|---|---|
String |
createTextResource(int size)
create text/plain resource by size. |
abstract Object |
execute(HashMap<String,String> params)
This function should be implemented to execute tasks that require to response data to client. |
abstract org.exoplatform.services.log.Log |
getLog()
get log object. |
String |
getRestId()
|
abstract void |
inject(HashMap<String,String> params)
This function should be implemented to inject data into the product. |
String |
paragraphs(int amount)
get pseudo paragraphs. |
String |
randomParagraphs(int i)
get random paragraphs |
String |
randomUser()
get random user id. |
String |
randomWords(int i)
get random words. |
List<String> |
readGroupsIfExist(HashMap<String,String> queryParams)
|
List<String> |
readMembershipIfExist(HashMap<String,String> queryParams)
|
List<String> |
readUsersIfExist(HashMap<String,String> queryParams)
|
abstract void |
reject(HashMap<String,String> params)
This function should be implemented to clear data that is injected before by #inject(). |
void |
setRestId(String restId)
|
String |
words(int amount)
get pseudo words. |
| Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin |
|---|
getDescription, getName, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ARRAY_SPLIT
| Constructor Detail |
|---|
public DataInjector()
| Method Detail |
|---|
public String getRestId()
public void setRestId(String restId)
public abstract org.exoplatform.services.log.Log getLog()
public abstract Object execute(HashMap<String,String> params)
throws Exception
params - query parameters of a HTTP GET request.
Exception
public abstract void inject(HashMap<String,String> params)
throws Exception
params - parameters for injecting. They can be query parameters of a HTTP GET request.
Exception
public abstract void reject(HashMap<String,String> params)
throws Exception
#inject().
params - parameters for rejecting. They can be query parameters of a HTTP GET request.
Exceptionpublic final String words(int amount)
amount - number of words
public final String paragraphs(int amount)
amount - number of paragraphs
public final String randomUser()
public final String randomWords(int i)
i - maximum number of words. the number of words is between 0 and i.
public final String randomParagraphs(int i)
i - maximum number of paragraphs.
public String createTextResource(int size)
size - in kilobyte
public List<String> readGroupsIfExist(HashMap<String,String> queryParams)
public List<String> readUsersIfExist(HashMap<String,String> queryParams)
public List<String> readMembershipIfExist(HashMap<String,String> queryParams)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||