java.lang.Object
com.flexstor.flexdbserver.services.ServiceManager
com.flexstor.flexdbserver.services.asset.AssetServiceManager
- All Implemented Interfaces:
- com.flexstor.common.threadmgr.ThreadConsumerI
- public class AssetServiceManager
- extends com.flexstor.flexdbserver.services.ServiceManager
AssetServiceManager provides functionality to control the
secuencial execution of Services mapped to a specified file Type.
- Version:
- 2.2
| Fields inherited from class com.flexstor.flexdbserver.services.ServiceManager |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
PRESERVICES
public static final java.lang.String PRESERVICES
- Indicate this Asset Service Manager runs pre or post services for all types.
Declared in constructor.
- See Also:
- Constant Field Values
POSTSERVICES
public static final java.lang.String POSTSERVICES
- See Also:
- Constant Field Values
tsMapper
protected TypeServiceMapper tsMapper
- TypeServiceMapper object used to access mapping file
iData
protected com.flexstor.common.importprocessor.ImportData iData
- ImportData object to be passed to Service
sType
protected java.lang.String sType
- File Type to execute Services for
services
protected TypeServiceMapper.TypeService[] services
- List of Services to be executed
bValidateAssets
protected boolean bValidateAssets
- Flag indicating if the validateAsset() method should be called prior calling the next service
AssetServiceManager
public AssetServiceManager(java.lang.String sType,
com.flexstor.common.importprocessor.ImportData iData,
com.flexstor.common.threadmgr.ThreadCallbackI caller)
throws AssetServiceManagerException
execute
protected com.flexstor.common.data.ActionResult execute()
throws java.lang.InterruptedException
- Main loop for sequencial execution of Services.
getResultObjectOnAbnormalEnding
protected com.flexstor.common.data.ActionResult getResultObjectOnAbnormalEnding()
- Description copied from class:
com.flexstor.flexdbserver.services.ServiceManager
- This method need to be implemented for all subclasses to return the proper
result object if the execution of the service manager ends abnormally (due
to a non-catch exception inside the service manager.
validateAssets
private boolean validateAssets()
putArguments
private void putArguments(java.util.Hashtable htArguments)
- Read the arguments from the Type-Service Mapper and add them to the service