org.ow2.petals.bc.filetransfer.service.consume
Class ConsumeConfiguration

java.lang.Object
  extended by org.ow2.petals.bc.filetransfer.service.consume.ConsumeConfiguration

public class ConsumeConfiguration
extends java.lang.Object

Represents the SU parameter for consume mode

Author:
”Mathieu CARROLLE - mathieu.carrolle@petalslink.com”

Constructor Summary
ConsumeConfiguration(java.io.File backupDirectory, java.lang.String baseMsg, boolean baseMsgOn, long delay, LockFileFilter filePattern, long period, java.io.File polledDirectory, java.lang.String transferMode, int corePoolSize, long corePoolTimeout)
           
 
Method Summary
 java.io.File getBackupDirectory()
           
 java.lang.String getBaseMsg()
          The base-message defined in the SU
 int getCorePoolSize()
           
 long getCorePoolTimeout()
           
 long getDelay()
          The first task execution delay
 LockFileFilter getFilePattern()
          Regex for the file to process
 long getPeriod()
          The polling period
 java.io.File getPolledDirectory()
          Polled directory
 java.lang.String getTransferMode()
          Transfer mode (content or attachment)
 boolean isBaseMsgOn()
          Specified if base-message feature is activated
 void setBackupDirectory(java.io.File backupDirectory)
          Backup directory (could be null)
 void setBaseMsg(java.lang.String baseMsg)
          The base-message defined in the SU
 void setBaseMsgOn(boolean baseMsgOn)
          Specified if base-message feature is activated
 void setCorePoolSize(int corePoolSize)
           
 void setCorePoolTimeout(long corePoolTimeout)
           
 void setDelay(long delay)
          The first task execution delay
 void setFilePattern(LockFileFilter filePattern)
          Regex for the file to process
 void setPeriod(long period)
          The polling period
 void setPolledDirectory(java.io.File polledDirectory)
          Polled directory
 void setTransferMode(java.lang.String transferMode)
          Transfer mode (content or attachment)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumeConfiguration

public ConsumeConfiguration(java.io.File backupDirectory,
                            java.lang.String baseMsg,
                            boolean baseMsgOn,
                            long delay,
                            LockFileFilter filePattern,
                            long period,
                            java.io.File polledDirectory,
                            java.lang.String transferMode,
                            int corePoolSize,
                            long corePoolTimeout)
Method Detail

getBackupDirectory

public java.io.File getBackupDirectory()
Returns:
the backup directory or null if not specified

getBaseMsg

public java.lang.String getBaseMsg()
The base-message defined in the SU


getDelay

public long getDelay()
The first task execution delay


getFilePattern

public LockFileFilter getFilePattern()
Regex for the file to process


getPeriod

public long getPeriod()
The polling period


getPolledDirectory

public java.io.File getPolledDirectory()
Polled directory


getTransferMode

public java.lang.String getTransferMode()
Transfer mode (content or attachment)


isBaseMsgOn

public boolean isBaseMsgOn()
Specified if base-message feature is activated


setBackupDirectory

public void setBackupDirectory(java.io.File backupDirectory)
Backup directory (could be null)


setBaseMsg

public void setBaseMsg(java.lang.String baseMsg)
The base-message defined in the SU


setBaseMsgOn

public void setBaseMsgOn(boolean baseMsgOn)
Specified if base-message feature is activated


setDelay

public void setDelay(long delay)
The first task execution delay


setFilePattern

public void setFilePattern(LockFileFilter filePattern)
Regex for the file to process


setPeriod

public void setPeriod(long period)
The polling period


setPolledDirectory

public void setPolledDirectory(java.io.File polledDirectory)
Polled directory


setTransferMode

public void setTransferMode(java.lang.String transferMode)
Transfer mode (content or attachment)


getCorePoolSize

public int getCorePoolSize()

getCorePoolTimeout

public long getCorePoolTimeout()

setCorePoolSize

public void setCorePoolSize(int corePoolSize)

setCorePoolTimeout

public void setCorePoolTimeout(long corePoolTimeout)


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.