Package csw.location.api.models
Class Connection
java.lang.Object
csw.location.api.models.Connection
- All Implemented Interfaces:
LocationSerializable
- Direct Known Subclasses:
TypedConnection
Represents a connection based on a componentId and the type of connection offered by the component
param: connectionType represents a type of connection offered by the Component
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a connection offered by remote Actors e.g.static class
static class
Represents a http connection provided by the component e.g.static class
static class
represents a tcp connection provided by the component e.g.static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ComponentId
The component that is providing this connectionReturns a ConnectionInfo which represents component name, component type and connection type for this Connectionstatic Connection
from
(ConnectionInfo connectionInfo) Create a Connection from provided ConnectionInfostatic Connection
Create a Connection from provided String inputname()
Creates a unique name for Connection based on Component name, ComponentType and ConnectionType<T extends Location>
TypedConnection<T>of()
A helper method to cast this Connection to TypedConnectionprefix()
Represents the fully qualified component name along with the subsystem for e.g.
-
Constructor Details
-
Connection
-
-
Method Details
-
from
Create a Connection from provided String input- Parameters:
input
- is the string representation of connection e.g. TromboneAssembly-assembly-akka- Returns:
- a Connection model created from string
-
from
Create a Connection from provided ConnectionInfo- Parameters:
connectionInfo
- represents component name, component type and connection type- Returns:
- A Connection created from connectionInfo
-
connectionType
-
componentId
The component that is providing this connection- Returns:
- (undocumented)
-
connectionInfo
Returns a ConnectionInfo which represents component name, component type and connection type for this Connection- Returns:
- (undocumented)
-
name
Creates a unique name for Connection based on Component name, ComponentType and ConnectionType- Returns:
- (undocumented)
-
prefix
Represents the fully qualified component name along with the subsystem for e.g. tcs.filter.wheel- Returns:
- (undocumented)
-
of
A helper method to cast this Connection to TypedConnection- Returns:
- A TypedConnection casted from this Connection
-