org.silverpeas.process.check
Interface ProcessCheck

All Known Implementing Classes:
AbstractDataProcessCheck, AbstractFileProcessCheck, AbstractProcessCheck, ComponentFileFilterProcessCheck, DataStorageQuotaProcessCheck

public interface ProcessCheck

Interface which has to be implemented by all verification classes that have to be used during an execution of a chained Silverpeas processes.

Author:
Yohann Chastagnier

Method Summary
 void check(ProcessExecutionContext processExecutionProcess)
          Contains the treatment of the verification.
 ProcessCheckType getType()
          Gets the type of the check
 void register()
          This method have to be annoted by @PostConstruct.
 void unregister()
          This method have to be annoted by @PreDestroy.
 

Method Detail

getType

ProcessCheckType getType()
Gets the type of the check

Returns:

register

void register()
This method have to be annoted by @PostConstruct. Just after Silverpeas server start, this method is called. The content of this method consists to register the class instance into ProcessCheckRegistration.


unregister

void unregister()
This method have to be annoted by @PreDestroy. Just before Silverpeas server stop, this method is called. The content of this method consists to unregister the class instance from ProcessCheckRegistration.


check

void check(ProcessExecutionContext processExecutionProcess)
           throws Exception
Contains the treatment of the verification.

Parameters:
processExecutionProcess -
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.