public class ContainerResolver
extends java.lang.Object
Constructor and Description |
---|
ContainerResolver(java.net.URL adminServer,
java.util.Map<java.lang.String,java.lang.String> containers,
java.lang.String defaultStreamName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContainerHostForModulePrefix(java.lang.String streamName,
ModuleType moduleType)
Gets the URL of the container where the module
|
java.lang.String |
getContainerHostForSource()
Gets the host of the container where the source was deployed
|
java.lang.String |
getContainerHostForSource(java.lang.String streamName)
Gets the host of the container where the source was deployed
|
java.net.URL |
getContainerUrlForProcessor()
Gets the URL of the container where the processor was deployed
|
java.net.URL |
getContainerUrlForProcessor(java.lang.String streamName)
Gets the URL of the container where the processor was deployed
|
java.net.URL |
getContainerUrlForSink()
Gets the URL of the container for the sink being tested.
|
java.net.URL |
getContainerUrlForSink(java.lang.String streamName)
Gets the URL of the container where the sink was deployed using default XD Port.
|
java.net.URL |
getContainerUrlForSource()
Gets the URL of the container for the source being tested.
|
java.net.URL |
getContainerUrlForSource(java.lang.String streamName)
Gets the URL of the container where the source was deployed using default XD Port.
|
public ContainerResolver(java.net.URL adminServer, java.util.Map<java.lang.String,java.lang.String> containers, java.lang.String defaultStreamName)
public java.net.URL getContainerUrlForSource()
public java.net.URL getContainerUrlForSource(java.lang.String streamName)
streamName
- Used to find the container that contains the source.public java.net.URL getContainerUrlForSink()
public java.net.URL getContainerUrlForSink(java.lang.String streamName)
streamName
- Used to find the container that contains the sink.public java.net.URL getContainerUrlForProcessor()
public java.net.URL getContainerUrlForProcessor(java.lang.String streamName)
streamName
- Used to find the container that contains the processor.public java.lang.String getContainerHostForSource()
public java.lang.String getContainerHostForSource(java.lang.String streamName)
streamName
- Used to find the container that contains the source.public java.lang.String getContainerHostForModulePrefix(java.lang.String streamName, ModuleType moduleType)
streamName
- Used construct the module id prefix.moduleType
- The type of module that we are seeking