public class StatefulScheduledJobInvocationContext extends ScheduledJobInvocationContext
| Constructor and Description |
|---|
StatefulScheduledJobInvocationContext(ScheduledJobDefinition jobDefinition,
ServerPluginContext pluginContext,
ServerPluginComponent serverPluginComponent,
Map<String,String> jobData) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key)
Checks to see whether or not the property key is stored in the context.
|
String |
get(String key)
Retrieves a property value from the context.
|
Map<String,String> |
getJobData()
Returns a read-only view of the properties stored in the context.
|
void |
put(String key,
String value)
Adds a property to the context that is persisted across invocations of the job.
|
String |
remove(String key)
Removes the property value associated with the specified key
|
getJobDefinition, getServerPluginComponent, getServerPluginContextpublic StatefulScheduledJobInvocationContext(ScheduledJobDefinition jobDefinition, ServerPluginContext pluginContext, ServerPluginComponent serverPluginComponent, Map<String,String> jobData)
public void put(String key, String value)
put in class ScheduledJobInvocationContextkey - The property namevalue - The property valuepublic String get(String key)
get in class ScheduledJobInvocationContextkey - The property keynull if the key is not foundpublic String remove(String key)
remove in class ScheduledJobInvocationContextkey - The property keynull if the key is present in the contextpublic boolean containsKey(String key)
containsKey in class ScheduledJobInvocationContextkey - The property keytrue if the key is found, false otherwise.public Map<String,String> getJobData()
getJobData in class ScheduledJobInvocationContextCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.