public interface FunctionContainer
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getApplicationConfiguration(java.lang.String name)
Get the application configuration specified by name.
|
java.net.InetAddress |
getConfiguredHost()
Get the host this container is executing on.
|
java.lang.String |
getDomainId()
Return the IBM Streams domain identifier for this container.
|
java.lang.String |
getId()
Get the runtime identifier for this container.
|
java.lang.String |
getInstanceId()
Return the IBM Streams instance identifier for this container.
|
java.lang.String |
getJobId()
Get the runtime identifier for this container's running job.
|
java.lang.String |
getJobName()
Return the name of this job.
|
int |
getRelaunchCount()
Return the number of times this container has been relaunched.
|
java.lang.String getJobId()
0
.java.lang.String getId()
0
.java.lang.String getDomainId()
java.lang.String getInstanceId()
int getRelaunchCount()
java.net.InetAddress getConfiguredHost() throws java.net.UnknownHostException
When running in distributed mode this returns the InetAddress
for the interface configured for application use by the
IBM Streams instance. This may differ from
from java.net.InetAddress.getLocalHost()
if
there are multiple network interfaces on this host.
When not running in distributed, this
returns java.net.InetAddress.getLocalHost()
.
java.net.UnknownHostException
java.util.Map<java.lang.String,java.lang.String> getApplicationConfiguration(java.lang.String name)
An empty map is returned if the configuration is not found, the application is running embedded or standalone, or a distributed instance is running a Streams install older than 4.2.
name
- Name of the application configuration.java.lang.String getJobName()