public final class UnitTestHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addSystemConfigToSingleton() |
static void |
clearSingletonRegistry() |
static PhysicalPlans.Instance |
getInstance(java.lang.String instanceId) |
static PhysicalPlans.PhysicalPlan |
getPhysicalPlan(boolean ackEnabled,
int messageTimeout) |
static PhysicalPlans.PhysicalPlan |
getPhysicalPlan(boolean ackEnabled,
int messageTimeout,
TopologyAPI.TopologyState topologyState)
Construct a physical plan with basic setting.
|
static StreamManager.RegisterInstanceResponse |
getRegisterInstanceResponse() |
public static PhysicalPlans.PhysicalPlan getPhysicalPlan(boolean ackEnabled, int messageTimeout, TopologyAPI.TopologyState topologyState)
ackEnabled
- whether the acking system is enabledmessageTimeout
- the seconds for a tuple to be time-out. -1 means the timeout is not enabled.topologyState
- the Topology State inside this PhysicaPlan, for intance, RUNNING.public static PhysicalPlans.PhysicalPlan getPhysicalPlan(boolean ackEnabled, int messageTimeout)
public static void clearSingletonRegistry() throws java.lang.Exception
java.lang.Exception
public static PhysicalPlans.Instance getInstance(java.lang.String instanceId)
public static void addSystemConfigToSingleton()
public static StreamManager.RegisterInstanceResponse getRegisterInstanceResponse()