Package ai.pipestream.api.events
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 Summary
ConstructorsConstructorDescriptionModuleRegistrationRequestEvent(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 aModuleRegistrationRequestEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreate(String moduleName, String implementationId, String host, int port, String serviceType, String version, Map<String, String> metadata, String engineHost, int enginePort, String jsonSchema, String requestId) Returns the value of theengineHostrecord component.intReturns the value of theenginePortrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.Returns the value of theimplementationIdrecord component.Returns the value of thejsonSchemarecord component.metadata()Returns the value of themetadatarecord component.Returns the value of themoduleNamerecord component.intport()Returns the value of theportrecord component.Returns the value of therequestIdrecord component.Returns the value of theserviceTyperecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
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 aModuleRegistrationRequestEventrecord class.- Parameters:
moduleName- the value for themoduleNamerecord componentimplementationId- the value for theimplementationIdrecord componenthost- the value for thehostrecord componentport- the value for theportrecord componentserviceType- the value for theserviceTyperecord componentversion- the value for theversionrecord componentmetadata- the value for themetadatarecord componentengineHost- the value for theengineHostrecord componentenginePort- the value for theenginePortrecord componentjsonSchema- the value for thejsonSchemarecord componentrequestId- the value for therequestIdrecord component
-
-
Method Details
-
create
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-
implementationId
Returns the value of theimplementationIdrecord component.- Returns:
- the value of the
implementationIdrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
serviceType
Returns the value of theserviceTyperecord component.- Returns:
- the value of the
serviceTyperecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
engineHost
Returns the value of theengineHostrecord component.- Returns:
- the value of the
engineHostrecord component
-
enginePort
public int enginePort()Returns the value of theenginePortrecord component.- Returns:
- the value of the
enginePortrecord component
-
jsonSchema
Returns the value of thejsonSchemarecord component.- Returns:
- the value of the
jsonSchemarecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-