Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.flexdbserver.services.asset
Class AssetServiceManager  view AssetServiceManager download AssetServiceManager.java

java.lang.Object
  extended bycom.flexstor.flexdbserver.services.ServiceManager
      extended bycom.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

Field Summary
protected  boolean bValidateAssets
          Flag indicating if the validateAsset() method should be called prior calling the next service
protected  com.flexstor.common.importprocessor.ImportData iData
          ImportData object to be passed to Service
static java.lang.String IDENTIFIER
           
static java.lang.String POSTSERVICES
           
static java.lang.String PRESERVICES
          Indicate this Asset Service Manager runs pre or post services for all types.
protected  TypeServiceMapper.TypeService[] services
          List of Services to be executed
protected  java.lang.String sType
          File Type to execute Services for
protected  TypeServiceMapper tsMapper
          TypeServiceMapper object used to access mapping file
 
Fields inherited from class com.flexstor.flexdbserver.services.ServiceManager
 
Constructor Summary
AssetServiceManager(java.lang.String sType, com.flexstor.common.importprocessor.ImportData iData, com.flexstor.common.threadmgr.ThreadCallbackI caller)
           
 
Method Summary
protected  com.flexstor.common.data.ActionResult execute()
          Main loop for sequencial execution of Services.
protected  com.flexstor.common.data.ActionResult getResultObjectOnAbnormalEnding()
          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.
private  void putArguments(java.util.Hashtable htArguments)
          Read the arguments from the Type-Service Mapper and add them to the service
private  boolean validateAssets()
           
 
Methods inherited from class com.flexstor.flexdbserver.services.ServiceManager
abortManager, doService, doService, getResult, processService, startManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

AssetServiceManager

public AssetServiceManager(java.lang.String sType,
                           com.flexstor.common.importprocessor.ImportData iData,
                           com.flexstor.common.threadmgr.ThreadCallbackI caller)
                    throws AssetServiceManagerException
Method Detail

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