Package com.github.taymindis.jh
Class SynchronizeRequest
- java.lang.Object
-
- com.github.taymindis.jh.SynchronizeRequest
-
- Direct Known Subclasses:
SynchronizeProcess
public class SynchronizeRequest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intPROCESS_HAS_ERRORstatic intPROCESS_IS_ALREADY_RUNNINGstatic intPROCESS_IS_OK_TO_RUNstatic intPROCESS_NAME_IS_EMPTYstatic intPROCESS_SHOULD_NOT_RUN
-
Constructor Summary
Constructors Constructor Description SynchronizeRequest(String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidflush(String nameStartWith)Use in Riskstatic voidflushAll()Use in RiskintgetErrorCode()StringgetName()intgetProcessStatus()booleanhasError()static booleanisProcessBusy(String name)check if process is busyvoidrelease()
-
-
-
Field Detail
-
PROCESS_IS_OK_TO_RUN
public static final int PROCESS_IS_OK_TO_RUN
- See Also:
- Constant Field Values
-
PROCESS_IS_ALREADY_RUNNING
public static final int PROCESS_IS_ALREADY_RUNNING
- See Also:
- Constant Field Values
-
PROCESS_HAS_ERROR
public static final int PROCESS_HAS_ERROR
- See Also:
- Constant Field Values
-
PROCESS_SHOULD_NOT_RUN
public static final int PROCESS_SHOULD_NOT_RUN
- See Also:
- Constant Field Values
-
PROCESS_NAME_IS_EMPTY
public static final int PROCESS_NAME_IS_EMPTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SynchronizeRequest
public SynchronizeRequest(String name)
-
-
Method Detail
-
getName
public String getName()
-
hasError
public boolean hasError()
-
getErrorCode
public int getErrorCode()
-
getProcessStatus
public int getProcessStatus()
-
release
public void release()
-
isProcessBusy
public static boolean isProcessBusy(String name)
check if process is busy- Parameters:
name- ProcessName- Returns:
- boolean
-
flushAll
public static void flushAll()
Use in Risk
-
flush
public static void flush(String nameStartWith)
Use in Risk- Parameters:
nameStartWith- Process Name start with
-
-