@Test public void assertGetIdForUnassignedSlave() { assertThat(TaskContext.getIdForUnassignedSlave("test_job@-@0@-@READY@-@slave-S0@-@0"), is("test_job@-@0@-@READY@-@unassigned-slave@-@0")); }
public static String getIdForUnassignedSlave(final String id) { return id.replaceAll(TaskContext.from(id).getSlaveId(), UNASSIGNED_SLAVE_ID); }
TaskContext { public static String getIdForUnassignedSlave(final String id) { return id.replaceAll(TaskContext.from(id).getSlaveId(), UNASSIGNED_SLAVE_ID); } }
TaskContext { public static String getIdForUnassignedSlave(final String id) { return id.replaceAll(TaskContext.from(id).getSlaveId(), UNASSIGNED_SLAVE_ID); } TaskContext(final String jobName, final List<Integer> shardingItem, final ExecutionType type);  TaskContext(final String jobName, final List<Integer> shardingItem, final ExecutionType type, final String slaveId); private  TaskContext(final String id, final MetaInfo metaInfo, final ExecutionType type, final String slaveId); }
TaskContext { public static String getIdForUnassignedSlave(final String id) { return id.replaceAll(TaskContext.from(id).getSlaveId(), UNASSIGNED_SLAVE_ID); } TaskContext(final String jobName, final List<Integer> shardingItem, final ExecutionType type);  TaskContext(final String jobName, final List<Integer> shardingItem, final ExecutionType type, final String slaveId); private  TaskContext(final String id, final MetaInfo metaInfo, final ExecutionType type, final String slaveId); static TaskContext from(final String id); static String getIdForUnassignedSlave(final String id); void setSlaveId(final String slaveId); String getTaskName(); String getExecutorId(final String appName); }
TaskContext { public static String getIdForUnassignedSlave(final String id) { return id.replaceAll(TaskContext.from(id).getSlaveId(), UNASSIGNED_SLAVE_ID); } TaskContext(final String jobName, final List<Integer> shardingItem, final ExecutionType type);  TaskContext(final String jobName, final List<Integer> shardingItem, final ExecutionType type, final String slaveId); private  TaskContext(final String id, final MetaInfo metaInfo, final ExecutionType type, final String slaveId); static TaskContext from(final String id); static String getIdForUnassignedSlave(final String id); void setSlaveId(final String slaveId); String getTaskName(); String getExecutorId(final String appName);  }