Class SeparatedTestConnectionProvider
java.lang.Object
com.dna.jopt.member.unit.nodeedge.externalprovider.separatedprovider.SeparatedTestConnectionProvider
- All Implemented Interfaces:
IExternalConnectionProvider
,ISeparatedTestConnectionProvider
,Serializable
public class SeparatedTestConnectionProvider
extends Object
implements ISeparatedTestConnectionProvider
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.dna.jopt.member.unit.nodeedge.externalprovider.IExternalConnectionProvider
IExternalConnectionProvider.JSONConnectionSerializationMode
-
Constructor Summary
ConstructorDescriptionSeparatedTestConnectionProvider
(List<INodeConnectorItem> baseConnections) SeparatedTestConnectionProvider
(List<INodeConnectorItem> baseConnections, IExternalConnectionProvider slaveProvider) -
Method Summary
Modifier and TypeMethodDescriptiongetConnection
(IOptimizationElement fromElement, IOptimizationElement toElement, IResource visitor) Gets the connection.getConnections
(Map<IOptimizationElement, List<IOptimizationElement>> desiredConnections, IConnectionProviderCaller caller) Gets the connections.Gets the JSON connection serialization mode.
-
Constructor Details
-
SeparatedTestConnectionProvider
-
SeparatedTestConnectionProvider
public SeparatedTestConnectionProvider(List<INodeConnectorItem> baseConnections, IExternalConnectionProvider slaveProvider)
-
-
Method Details
-
getConnection
public List<INodeConnectorItem> getConnection(IOptimizationElement fromElement, IOptimizationElement toElement, IResource visitor) Description copied from interface:IExternalConnectionProvider
Gets the connection. Further, a list of arbitrary additional connections can be provided to prevent this method to be called again. This makes sense if an other connection will be also used with a high likeliness.- Specified by:
getConnection
in interfaceIExternalConnectionProvider
- Parameters:
fromElement
- the from elementtoElement
- the to elementvisitor
- the visitor- Returns:
- the connection
-
getConnections
public List<INodeConnectorItem> getConnections(Map<IOptimizationElement, List<IOptimizationElement>> desiredConnections, IConnectionProviderCaller caller) Description copied from interface:IExternalConnectionProvider
Gets the connections.- Specified by:
getConnections
in interfaceIExternalConnectionProvider
- Parameters:
desiredConnections
- the desired connectionscaller
- the caller- Returns:
- the connections
-
getJSONConnectionSerializationMode
public IExternalConnectionProvider.JSONConnectionSerializationMode getJSONConnectionSerializationMode()Description copied from interface:IExternalConnectionProvider
Gets the JSON connection serialization mode.- Specified by:
getJSONConnectionSerializationMode
in interfaceIExternalConnectionProvider
- Returns:
- the JSON connection serialization mode
-