Package org.bedework.calfacade.ifs
Class IfInfo
java.lang.Object
org.bedework.calfacade.ifs.IfInfo
- All Implemented Interfaces:
Serializable
Information about an instance of Svci. We can use this to track
processes and watch for those that hang.
- Author:
- Mike Douglass
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntityKey(String val) booleanbooleanA list of entities that were updated by this process.getId()Updated every time state is changed.getLogid()longgetState()voidsetAttemptedTermination(boolean val) voidsetDontKill(boolean val) voidvoidsetLastStateTime(String val) voidvoidsetSeconds(long val) voidvoidThe value reflects the latest attempt.
-
Constructor Details
-
IfInfo
public IfInfo()
-
-
Method Details
-
getLogid
- Returns:
- a label identifying this type of service
-
setLogid
-
getId
- Returns:
- a label identifying this actual interface
-
setId
-
getDontKill
public boolean getDontKill()- Returns:
- true if this is a system process.
-
setDontKill
public void setDontKill(boolean val) -
getLastStateTime
Updated every time state is changed. Not necessarily an indication of idleness - it depends on state being updated,- Returns:
- UTC time state was last changed.
-
setLastStateTime
-
getState
- Returns:
- a hopefully informative message
-
setState
-
getSeconds
public long getSeconds()- Returns:
- Seconds since transaction started
-
setSeconds
public void setSeconds(long val) -
attemptedTermination
public boolean attemptedTermination()- Returns:
- true if we tried to terminate this process.
-
setAttemptedTermination
public void setAttemptedTermination(boolean val) -
terminationException
The value reflects the latest attempt.- Returns:
- non-null if we got an exception trying to terminate process
-
setTerminationException
-
getEntityKeys
A list of entities that were updated by this process. If the process is terminated we need to reindex them after rollback.This may involve deleting the entity from the index.
- Returns:
- a list of keys as encoded by IndexKeys
-
addEntityKey
-