Class ComponentState

  • All Implemented Interfaces:
    org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

    public class ComponentState
    extends Object
    implements org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.xcontent.ToXContentObject
    • Constructor Detail

      • ComponentState

        public ComponentState​(int sortPrio,
                              String type,
                              String name)
      • ComponentState

        public ComponentState​(int sortPrio,
                              String type,
                              String name,
                              Class<?> referenceClass)
      • ComponentState

        public ComponentState​(org.elasticsearch.common.io.stream.StreamInput in)
                       throws IOException
        Throws:
        IOException
    • Method Detail

      • getName

        public String getName()
      • getType

        public String getType()
      • getKey

        public String getKey()
      • getSortingKey

        public String getSortingKey()
      • writeTo

        public void writeTo​(org.elasticsearch.common.io.stream.StreamOutput out)
                     throws IOException
        Specified by:
        writeTo in interface org.elasticsearch.common.io.stream.Writeable
        Throws:
        IOException
      • isFailed

        public boolean isFailed()
      • isInitialized

        public boolean isInitialized()
      • getMessage

        public String getMessage()
      • setMessage

        public void setMessage​(String message)
      • getDetailJson

        public String getDetailJson()
      • setDetailJson

        public void setDetailJson​(String detailJson)
      • getInitException

        public Throwable getInitException()
      • setFailed

        public void setFailed​(Throwable initException)
      • setFailed

        public void setFailed​(String message)
      • setInitialized

        public void setInitialized()
      • setInitException

        public void setInitException​(Exception initException)
      • addLastException

        public void addLastException​(String key,
                                     Throwable t)
      • getStartedAt

        public Instant getStartedAt()
      • setStartedAt

        public void setStartedAt​(Instant startedAt)
      • getInitializedAt

        public Instant getInitializedAt()
      • setInitializedAt

        public void setInitializedAt​(Instant initializedAt)
      • getFailedAt

        public Instant getFailedAt()
      • setFailedAt

        public void setFailedAt​(Instant failedAt)
      • getNextTryAt

        public Instant getNextTryAt()
      • setNextTryAt

        public void setNextTryAt​(Instant nextTryAt)
      • getSubState

        public String getSubState()
      • setSubState

        public void setSubState​(String subState)
      • addDetail

        public void addDetail​(Object detail)
      • toXContent

        public org.elasticsearch.xcontent.XContentBuilder toXContent​(org.elasticsearch.xcontent.XContentBuilder builder,
                                                                     org.elasticsearch.xcontent.ToXContent.Params params)
                                                              throws IOException
        Specified by:
        toXContent in interface org.elasticsearch.xcontent.ToXContent
        Throws:
        IOException
      • getTries

        public int getTries()
      • startNextTry

        public void startNextTry()
      • isMandatory

        public boolean isMandatory()
      • setMandatory

        public void setMandatory​(boolean mandatory)
      • getJarFileName

        public String getJarFileName()
      • getJarVersion

        public String getJarVersion()
      • getJarBuildTime

        public String getJarBuildTime()
      • getMinStartForInitializingState

        public Instant getMinStartForInitializingState()
      • setReferenceClass

        public void setReferenceClass​(Class<?> referenceClass)
      • getNodeId

        public String getNodeId()
      • setNodeId

        public void setNodeId​(String node)
      • getNodeName

        public String getNodeName()
      • setNodeName

        public void setNodeName​(String nodeName)
      • isEnterprise

        public boolean isEnterprise()
      • setEnterprise

        public void setEnterprise​(boolean enterprise)
      • getClassName

        public String getClassName()
      • getSortPrio

        public int getSortPrio()
      • setSortPrio

        public void setSortPrio​(int sortPrio)
      • getConfigVersion

        public String getConfigVersion()
      • setConfigVersion

        public void setConfigVersion​(String configVersion)
      • setConfigVersion

        public void setConfigVersion​(long configVersion)
      • getConfigJson

        public String getConfigJson()
      • setConfigJson

        public void setConfigJson​(String configJson)