Class FlexComponent

java.lang.Object
com.microservices.starter.core.environment.Component
com.microservices.starter.core.environment.FlexComponent
All Implemented Interfaces:
DomainAware, EnabledAware, Identifiable, Serializable

public class FlexComponent extends Component implements Identifiable
Type of component responsible for exposing all relevant LibraryComponent artifacts into a single application runtime (see flexUnits).
See Also:
  • Constructor Details

    • FlexComponent

      public FlexComponent()
  • Method Details

    • getFlexUnits

      public String getFlexUnits()
      Comma-delimited list of service library components that are included in the flexpackage component declaration. Only has meaning for flexpackage declarations and is only required in that case.
    • getMessageInterlink

      public MessageInterlink getMessageInterlink()
      The categories of messages that a given flexpackage should listen for. Only has meaning for flexpackage declarations. This is a special case setting an is primarily used in the Balanced flexpackage use case where the Processing flexpackage is primarily responsible for the handling of messages (and contains redundant component declarations for this purpose). Optional. MessageInterlink.all by default.
    • getPrimary

      public Boolean getPrimary()
      Whether or not this flexpackage component is considered the primary target for REST traffic for a given flexUnit. This again applies to the same scenario described in messageInterlink where a flexpackage may be responsible for message processing, but not standard traffic. For example, in the Balanced flexpackage case, Processing is NOT the primary. Optional. True by default.
    • getImageUriOverride

      public String getImageUriOverride()
      The system will usually determine the image name for project generated components based on convention using a mixture of the component name, and docker related properties found in Docker. However, if a non-generated URI is desired to target the appropriate image for the component, it can be specified here. A valid URI would be something like: /my-prefix/my-name. Optional. Generated by default.
    • setFlexUnits

      public void setFlexUnits(String flexUnits)
      Comma-delimited list of service library components that are included in the flexpackage component declaration. Only has meaning for flexpackage declarations and is only required in that case.
    • setMessageInterlink

      public void setMessageInterlink(MessageInterlink messageInterlink)
      The categories of messages that a given flexpackage should listen for. Only has meaning for flexpackage declarations. This is a special case setting an is primarily used in the Balanced flexpackage use case where the Processing flexpackage is primarily responsible for the handling of messages (and contains redundant component declarations for this purpose). Optional. MessageInterlink.all by default.
    • setPrimary

      public void setPrimary(Boolean primary)
      Whether or not this flexpackage component is considered the primary target for REST traffic for a given flexUnit. This again applies to the same scenario described in messageInterlink where a flexpackage may be responsible for message processing, but not standard traffic. For example, in the Balanced flexpackage case, Processing is NOT the primary. Optional. True by default.
    • setImageUriOverride

      public void setImageUriOverride(String imageUriOverride)
      The system will usually determine the image name for project generated components based on convention using a mixture of the component name, and docker related properties found in Docker. However, if a non-generated URI is desired to target the appropriate image for the component, it can be specified here. A valid URI would be something like: /my-prefix/my-name. Optional. Generated by default.
    • equals

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

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class Component
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Component
    • toString

      public String toString()
      Overrides:
      toString in class Component