Record Class ModuleRegistrationRequestEvent

java.lang.Object
java.lang.Record
ai.pipestream.api.events.ModuleRegistrationRequestEvent

public record ModuleRegistrationRequestEvent(String moduleName, String implementationId, String host, int port, String serviceType, String version, Map<String,String> metadata, String engineHost, int enginePort, String jsonSchema, String requestId) extends Record
Event fired when a module registration is requested via gRPC. This allows the registration service to delegate to the GlobalModuleRegistryService without creating a circular dependency.
  • Constructor Details

    • ModuleRegistrationRequestEvent

      public ModuleRegistrationRequestEvent(String moduleName, String implementationId, String host, int port, String serviceType, String version, Map<String,String> metadata, String engineHost, int enginePort, String jsonSchema, String requestId)
      Creates an instance of a ModuleRegistrationRequestEvent record class.
      Parameters:
      moduleName - the value for the moduleName record component
      implementationId - the value for the implementationId record component
      host - the value for the host record component
      port - the value for the port record component
      serviceType - the value for the serviceType record component
      version - the value for the version record component
      metadata - the value for the metadata record component
      engineHost - the value for the engineHost record component
      enginePort - the value for the enginePort record component
      jsonSchema - the value for the jsonSchema record component
      requestId - the value for the requestId record component
  • Method Details

    • create

      public static ModuleRegistrationRequestEvent create(String moduleName, String implementationId, String host, int port, String serviceType, String version, Map<String,String> metadata, String engineHost, int enginePort, String jsonSchema, String requestId)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • moduleName

      public String moduleName()
      Returns the value of the moduleName record component.
      Returns:
      the value of the moduleName record component
    • implementationId

      public String implementationId()
      Returns the value of the implementationId record component.
      Returns:
      the value of the implementationId record component
    • host

      public String host()
      Returns the value of the host record component.
      Returns:
      the value of the host record component
    • port

      public int port()
      Returns the value of the port record component.
      Returns:
      the value of the port record component
    • serviceType

      public String serviceType()
      Returns the value of the serviceType record component.
      Returns:
      the value of the serviceType record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • metadata

      public Map<String,String> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component
    • engineHost

      public String engineHost()
      Returns the value of the engineHost record component.
      Returns:
      the value of the engineHost record component
    • enginePort

      public int enginePort()
      Returns the value of the enginePort record component.
      Returns:
      the value of the enginePort record component
    • jsonSchema

      public String jsonSchema()
      Returns the value of the jsonSchema record component.
      Returns:
      the value of the jsonSchema record component
    • requestId

      public String requestId()
      Returns the value of the requestId record component.
      Returns:
      the value of the requestId record component