Package org.glassfish.batch.spi.impl
Class BatchRuntimeHelper
- java.lang.Object
-
- org.glassfish.batch.spi.impl.BatchRuntimeHelper
-
- All Implemented Interfaces:
EventListener
,org.glassfish.hk2.api.PostConstruct
@Service @RunLevel(10) public class BatchRuntimeHelper extends Object implements org.glassfish.hk2.api.PostConstruct, EventListener
Helper class to get values for Batch Runtime. Follows zero-config rules by using default values when the batch-runtime config object is not present in domain.xml- Author:
- Mahesh Kannan
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.event.EventListener
EventListener.Event<T>
-
-
Field Summary
Fields Modifier and Type Field Description static String
PAYARA_TABLE_PREFIX_PROPERTY
static String
PAYARA_TABLE_SUFFIX_PROPERTY
-
Constructor Summary
Constructors Constructor Description BatchRuntimeHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAndInitializeBatchRuntime()
void
event(EventListener.Event event)
Process a Glassfish/Payara eventString
getDataSourceLookupName()
static String
getDefaultDataSourceLookupNameForTarget(String targetName)
String
getExecutorServiceLookupName()
ExecutorService
lookupExecutorService()
ExecutorService
lookupExecutorService(String exeLookupName)
void
postConstruct()
void
setExecutorService(ExecutorService executorService)
-
-
-
Field Detail
-
PAYARA_TABLE_PREFIX_PROPERTY
public static final String PAYARA_TABLE_PREFIX_PROPERTY
- See Also:
- Constant Field Values
-
PAYARA_TABLE_SUFFIX_PROPERTY
public static final String PAYARA_TABLE_SUFFIX_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkAndInitializeBatchRuntime
public void checkAndInitializeBatchRuntime()
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
setExecutorService
public void setExecutorService(ExecutorService executorService)
-
event
public void event(EventListener.Event event)
Description copied from interface:EventListener
Process a Glassfish/Payara event- Specified by:
event
in interfaceEventListener
-
getDataSourceLookupName
public String getDataSourceLookupName()
-
getDefaultDataSourceLookupNameForTarget
public static String getDefaultDataSourceLookupNameForTarget(String targetName)
-
getExecutorServiceLookupName
public String getExecutorServiceLookupName()
-
lookupExecutorService
public ExecutorService lookupExecutorService()
-
lookupExecutorService
public ExecutorService lookupExecutorService(String exeLookupName)
-
-