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

Quick Search    Search Deep

com.flexstor.flexdbserver.services.io
Class ZipService  view ZipService download ZipService.java

java.lang.Object
  extended bycom.flexstor.flexdbserver.services.io.ZipService
All Implemented Interfaces:
com.flexstor.flexdbserver.services.Service

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

ZipService

Compress a single or multiple files into a zip archive file.

Input Data Object

com.flexstor.common.data.ActionData

Output Data Object

com.flexstor.common.io.ActionResult

Programmable Properties (passed inside data object)
Global Properties (apply to all assets)

"ZipFile": (ActionPropertiesI.ZIP_FILE) Destination for the compressed zip file. If not specified, defaults to system.SendPath property in flexstordb.properties; file will be name Flexstor.zip. Set ActionData.
Data type: String
Legal values: Full path to destination location. A name for the zip file can be specified in the path; otherwise, Flexstor.zip will be used.


Field Summary
private  com.flexstor.common.io.xfile.FlexXFile fileOutput
           
private  int id
           
static java.lang.String IDENTIFIER
           
private  java.lang.String[] saFiles
           
private  java.lang.String sServer
           
private  java.lang.String sTarget
           
private  java.lang.String sThisService
           
static java.lang.String ZIP
           
 
Constructor Summary
ZipService()
           
 
Method Summary
 com.flexstor.common.data.ActionResult go()
          The start of the Zip Service.
 void initData(com.flexstor.common.data.ActionData actionData)
          A 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

ZIP

public static final java.lang.String ZIP
See Also:
Constant Field Values

sThisService

private java.lang.String sThisService

sServer

private java.lang.String sServer

saFiles

private java.lang.String[] saFiles

sTarget

private java.lang.String sTarget

fileOutput

private com.flexstor.common.io.xfile.FlexXFile fileOutput

id

private int id
Constructor Detail

ZipService

public ZipService()
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 actionData)
A data initialization method called at the beginning of the service. The input argument, ActionData must be cast into its subclass, ZipData in order to extract the ZipService specific data from it.

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

go

public com.flexstor.common.data.ActionResult go()
The start of the Zip Service.

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