Class VespaConfigChangeAction

java.lang.Object
com.yahoo.vespa.model.application.validation.change.VespaConfigChangeAction
All Implemented Interfaces:
com.yahoo.config.model.api.ConfigChangeAction
Direct Known Subclasses:
VespaRefeedAction, VespaReindexAction, VespaRestartAction

public abstract class VespaConfigChangeAction extends Object implements com.yahoo.config.model.api.ConfigChangeAction
Class containing the action to be performed on the given services to handle a config change between the current active vespa model and the next vespa model to prepare.
Author:
geirst
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.yahoo.config.model.api.ConfigChangeAction

    com.yahoo.config.model.api.ConfigChangeAction.Type
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    VespaConfigChangeAction(com.yahoo.config.provision.ClusterSpec.Id id, String message, List<com.yahoo.config.model.api.ServiceInfo> services)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.yahoo.config.provision.ClusterSpec.Id
     
    boolean
     
     
    List<com.yahoo.config.model.api.ServiceInfo>
     
    int
     
    modifyAction(String newMessage, List<com.yahoo.config.model.api.ServiceInfo> newServices, String documentType)
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.yahoo.config.model.api.ConfigChangeAction

    getType, ignoreForInternalRedeploy, validationId
  • Constructor Details

    • VespaConfigChangeAction

      protected VespaConfigChangeAction(com.yahoo.config.provision.ClusterSpec.Id id, String message, List<com.yahoo.config.model.api.ServiceInfo> services)
  • Method Details

    • modifyAction

      public abstract VespaConfigChangeAction modifyAction(String newMessage, List<com.yahoo.config.model.api.ServiceInfo> newServices, String documentType)
    • clusterId

      public com.yahoo.config.provision.ClusterSpec.Id clusterId()
      Specified by:
      clusterId in interface com.yahoo.config.model.api.ConfigChangeAction
    • getMessage

      public String getMessage()
      Specified by:
      getMessage in interface com.yahoo.config.model.api.ConfigChangeAction
    • getServices

      public List<com.yahoo.config.model.api.ServiceInfo> getServices()
      Specified by:
      getServices in interface com.yahoo.config.model.api.ConfigChangeAction
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object