Package csw.location.models
Class Connection
- java.lang.Object
- 
- csw.location.models.Connection
 
- 
- All Implemented Interfaces:
- LocationSerializable
 - Direct Known Subclasses:
- TypedConnection
 
 public abstract class Connection extends java.lang.Object implements LocationSerializable Represents a connection based on a componentId and the type of connection offered by the componentparam: connectionType represents a type of connection offered by the Component 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classConnection.AkkaConnectionRepresents a connection offered by remote Actors e.g.static classConnection.AkkaConnection$static classConnection.HttpConnectionRepresents a http connection provided by the component e.g.static classConnection.HttpConnection$static classConnection.TcpConnectionrepresents a tcp connection provided by the component e.g.static classConnection.TcpConnection$
 - 
Constructor SummaryConstructors Constructor Description Connection(ConnectionType connectionType)
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ComponentIdcomponentId()The component that is providing this connectionConnectionInfoconnectionInfo()Returns a ConnectionInfo which represents component name, component type and connection type for this Connectionstatic play.api.libs.json.Reads<Connection>connectionReads()ConnectionTypeconnectionType()static play.api.libs.json.Writes<Connection>connectionWrites()static Connectionfrom(ConnectionInfo connectionInfo)Create a Connection from provided ConnectionInfostatic Connectionfrom(java.lang.String input)Create a Connection from provided String inputjava.lang.Stringname()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 TypedConnection
 
- 
- 
- 
Constructor Detail- 
Connectionpublic Connection(ConnectionType connectionType) 
 
- 
 - 
Method Detail- 
frompublic static Connection from(java.lang.String input) 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
 
 - 
frompublic static Connection from(ConnectionInfo connectionInfo) Create a Connection from provided ConnectionInfo- Parameters:
- connectionInfo- represents component name, component type and connection type
- Returns:
- A Connection created from connectionInfo
 
 - 
connectionReadspublic static play.api.libs.json.Reads<Connection> connectionReads() 
 - 
connectionWritespublic static play.api.libs.json.Writes<Connection> connectionWrites() 
 - 
connectionTypepublic ConnectionType connectionType() 
 - 
componentIdpublic abstract ComponentId componentId() The component that is providing this connection- Returns:
- (undocumented)
 
 - 
connectionInfopublic ConnectionInfo connectionInfo() Returns a ConnectionInfo which represents component name, component type and connection type for this Connection- Returns:
- (undocumented)
 
 - 
namepublic java.lang.String name() Creates a unique name for Connection based on Component name, ComponentType and ConnectionType- Returns:
- (undocumented)
 
 - 
ofpublic <T extends Location> TypedConnection<T> of() A helper method to cast this Connection to TypedConnection- Returns:
- A TypedConnection casted from this Connection
 
 
- 
 
-