org.alfresco.deployment.impl.fsr
Class FileSystemReceiverServiceImpl

java.lang.Object
  extended by org.alfresco.deployment.impl.fsr.FileSystemReceiverServiceImpl
All Implemented Interfaces:
FileSystemReceiverService

public class FileSystemReceiverServiceImpl
extends java.lang.Object
implements FileSystemReceiverService


Constructor Summary
FileSystemReceiverServiceImpl()
           
 
Method Summary
 DeploymentCommandQueue getCommandQueue()
           
 java.lang.String getDataDirectory()
          Get the directory to which work phase files get written.
 java.lang.String getLogDirectory()
          Get the directory to which log (as in journal) files will be written.
 void init()
           
 boolean isErrorOnOverwrite()
          Should an error be generated on overwriting content ?
 java.lang.Runnable pollCommand()
          poll a queued command.
 void queueCommand(java.lang.Runnable command)
          Queue a command object for execution.
 void setCommandQueue(DeploymentCommandQueue commandQueue)
           
 void setDataDirectory(java.lang.String dataDirectory)
           
 void setErrorOnOverwrite(boolean errorOnOverwrite)
          Should there be an error if the FSR attempts to create a file or directory that already exists ? Otherwise the FSR will issue a warning and carry on.
 void setLogDirectory(java.lang.String logDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemReceiverServiceImpl

public FileSystemReceiverServiceImpl()
Method Detail

setLogDirectory

public void setLogDirectory(java.lang.String logDirectory)

setDataDirectory

public void setDataDirectory(java.lang.String dataDirectory)

init

public void init()

getLogDirectory

public java.lang.String getLogDirectory()
Get the directory to which log (as in journal) files will be written.

Specified by:
getLogDirectory in interface FileSystemReceiverService
Returns:

getDataDirectory

public java.lang.String getDataDirectory()
Get the directory to which work phase files get written.

Specified by:
getDataDirectory in interface FileSystemReceiverService
Returns:

setErrorOnOverwrite

public void setErrorOnOverwrite(boolean errorOnOverwrite)
Should there be an error if the FSR attempts to create a file or directory that already exists ? Otherwise the FSR will issue a warning and carry on.

Parameters:
errorOnOverwrite - true an error will occur and deployment will stop, false a warning will occur and deployment will continue

isErrorOnOverwrite

public boolean isErrorOnOverwrite()
Description copied from interface: FileSystemReceiverService
Should an error be generated on overwriting content ?

Specified by:
isErrorOnOverwrite in interface FileSystemReceiverService

queueCommand

public void queueCommand(java.lang.Runnable command)
Description copied from interface: FileSystemReceiverService
Queue a command object for execution.

Specified by:
queueCommand in interface FileSystemReceiverService

pollCommand

public java.lang.Runnable pollCommand()
Description copied from interface: FileSystemReceiverService
poll a queued command.

Specified by:
pollCommand in interface FileSystemReceiverService
Returns:
the command or null if there is no command on the queue

setCommandQueue

public void setCommandQueue(DeploymentCommandQueue commandQueue)

getCommandQueue

public DeploymentCommandQueue getCommandQueue()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.