|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.ChannelListener com.jalios.jcms.fileprocessor.processingmanagement.FileProcessorManager
public class FileProcessorManager
FileProcessor singleton manager class
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from class com.jalios.jcms.ChannelListener |
---|
order |
Method Summary | |
---|---|
void |
add(ProcessingData data)
Add ProcessingData in the queue for a futur processing |
void |
addRunningDataFromScan(String repositoryId)
Tell the manager that a scan of a repository is currently beginning and no other scan of the same repository should be done until the first has been totally processed. |
static FileProcessorManager |
getInstance()
|
ProcessingData |
getLastProcessingData()
|
ProcessingData |
getProcessingData()
Retrieve the next ProcessingData to processe, wait until one is added if none is yet available. |
List<ProcessingData> |
getProcessingDataQueueCopy()
Retrieve a copy of the Processing queue containing all ProcessingData yet to be processed |
void |
handleFinalize()
Called when the channel is finalized |
void |
init()
|
void |
initAfterStoreLoad()
Called just after the store has been loaded and the channel has been initialized. |
void |
initBeforeStoreLoad()
Called just before the store has been loaded. |
boolean |
isProcessingThreadAlive()
|
boolean |
isProcessingThreadRunning()
|
boolean |
isRunnningDataFromScan(String repositoryId)
Indicates if the processing thread currently process a set of data sent by a scan of the repository directory. |
void |
propertiesChange(JProperties properties)
|
void |
startProcessingThread()
|
void |
stopProcessingThread()
|
Methods inherited from class com.jalios.jcms.ChannelListener |
---|
compareTo, equals, init |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Method Detail |
---|
public static FileProcessorManager getInstance()
public void init()
public void propertiesChange(JProperties properties)
propertiesChange
in interface JPropertiesListener
public void initBeforeStoreLoad() throws Exception
ChannelListener
initBeforeStoreLoad
in class ChannelListener
Exception
- any exception you may want to throw if a problem occurs needing to interrupt JCMS startup.public void initAfterStoreLoad() throws Exception
ChannelListener
initAfterStoreLoad
in class ChannelListener
Exception
- any exception you may want to throw if a problem occurs needing to interrupt JCMS startup.public void handleFinalize()
ChannelListener
handleFinalize
in class ChannelListener
public void startProcessingThread()
public void stopProcessingThread()
public boolean isProcessingThreadRunning()
public boolean isProcessingThreadAlive()
public boolean isRunnningDataFromScan(String repositoryId)
repositoryId
- The id of the given repository
public void addRunningDataFromScan(String repositoryId)
repositoryId
- the id of the given repositorypublic ProcessingData getLastProcessingData()
public void add(ProcessingData data)
data
- the ProcessingData to be processedpublic ProcessingData getProcessingData() throws InterruptedException
InterruptedException
public List<ProcessingData> getProcessingDataQueueCopy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |