Package csw.location.api.models
Class TcpRegistration
java.lang.Object
csw.location.api.models.Registration
csw.location.api.models.TcpRegistration
- All Implemented Interfaces:
LocationSerializable
,Serializable
,scala.Equals
,scala.Product
TcpRegistration holds information needed to register a Tcp service
param: port provide the port where Tcp service is available param: metadata represents additional metadata information associated with location. Defaulted to empty if not provided.
- See Also:
-
Constructor Summary
ConstructorDescriptionTcpRegistration
(Connection.TcpConnection connection, int port) TcpRegistration
(Connection.TcpConnection connection, int port, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionstatic TcpRegistration
apply
(Connection.TcpConnection connection, int port) TheConnection
to register withLocationService
Create a TcpLocation that represents the live Tcp servicemetadata()
metadata represents any additional information (metadata) associated with registrationint
port()
withCswVersion
(String version) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
TcpRegistration
-
TcpRegistration
-
-
Method Details
-
apply
-
connection
Description copied from class:Registration
TheConnection
to register withLocationService
- Specified by:
connection
in classRegistration
- Returns:
- (undocumented)
-
port
public int port() -
metadata
Description copied from class:Registration
metadata represents any additional information (metadata) associated with registration- Specified by:
metadata
in classRegistration
- Returns:
- (undocumented)
-
location
Create a TcpLocation that represents the live Tcp service- Specified by:
location
in classRegistration
- Parameters:
hostname
- provide the hostname where Tcp service is available- Returns:
- an TcpLocation location representing a live connection at provided hostname
-
withCswVersion
- Specified by:
withCswVersion
in classRegistration
-