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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.flexstor.flexdbserver.services.asset.EmptyService
All Implemented Interfaces:
com.flexstor.flexdbserver.services.Service

public class EmptyService
extends java.lang.Object
implements com.flexstor.flexdbserver.services.Service

EmptyService

A service that does nothing. It is used in the roletype_services.config file so the process doesn't fail if no service is supposed to run for specific files.
For instance, if you have assets for which you only want preservices running against them, then you can create a section in the roletype_services.config file for that kind of file containing the EmptyService, or just create a default section like:
[Default.Default]
service1 = EmptyService

Input Data Object

com.flexstor.common.importprocessor.ImportData

Output Data Object

com.flexstor.common.importprocessor.ImportResult


Field Summary
private  com.flexstor.common.data.ActionData data
           
static java.lang.String IDENTIFIER
           
 
Constructor Summary
EmptyService()
           
 
Method Summary
 com.flexstor.common.data.ActionResult go()
          Start of the Service
 void initData(com.flexstor.common.data.ActionData data)
          Data initialization method called at the beginning of the service.
 void setServiceContext(com.flexstor.flexdbserver.services.ServiceContext context)
          Calls before the service is initialized (before initData is called) to pass information about the environment in which the service is running.
 
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

data

private com.flexstor.common.data.ActionData data
Constructor Detail

EmptyService

public EmptyService()
Method Detail

setServiceContext

public void setServiceContext(com.flexstor.flexdbserver.services.ServiceContext context)
Calls before the service is initialized (before initData is called) to pass information about the environment in which the service is running. This environment consists of information about the properties set for the service in one of these files (services.config, roletype_services.config, or *.ctl), plus methods to access other information such as an instance of the service broker to invoke other services, the transaction id for the service, file separator character and local path for the installation directory and configuration directory.

Specified by:
setServiceContext in interface com.flexstor.flexdbserver.services.Service

initData

public void initData(com.flexstor.common.data.ActionData data)
Data initialization method called at the beginning of the service.

Specified by:
initData in interface com.flexstor.flexdbserver.services.Service

go

public com.flexstor.common.data.ActionResult go()
Start of the Service

Specified by:
go in interface com.flexstor.flexdbserver.services.Service