Class IfInfo

java.lang.Object
org.bedework.calfacade.ifs.IfInfo
All Implemented Interfaces:
Serializable

public class IfInfo extends Object implements 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 Details

    • IfInfo

      public IfInfo()
  • Method Details

    • getLogid

      public String getLogid()
      Returns:
      a label identifying this type of service
    • setLogid

      public void setLogid(String val)
    • getId

      public String getId()
      Returns:
      a label identifying this actual interface
    • setId

      public void setId(String val)
    • getDontKill

      public boolean getDontKill()
      Returns:
      true if this is a system process.
    • setDontKill

      public void setDontKill(boolean val)
    • getLastStateTime

      public String 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

      public void setLastStateTime(String val)
    • getState

      public String getState()
      Returns:
      a hopefully informative message
    • setState

      public void setState(String val)
    • 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

      public Throwable terminationException()
      The value reflects the latest attempt.
      Returns:
      non-null if we got an exception trying to terminate process
    • setTerminationException

      public void setTerminationException(Throwable val)
    • getEntityKeys

      public Set<String> 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

      public void addEntityKey(String val)