/** * Set the time for an information (human, machine) timestamp pair of fields. * The human time is the time in millis converted via the {@link Date} class. * @param keyHumanTime name of human time key * @param keyMachineTime name of machine time * @param time timestamp */ public void setInfoTime(String keyHumanTime, String keyMachineTime, long time) { SliderUtils.setInfoTime(info, keyHumanTime, keyMachineTime, time); }
/** * Set the time for an information (human, machine) timestamp pair of fields. * The human time is the time in millis converted via the {@link Date} class. * @param keyHumanTime name of human time key * @param keyMachineTime name of machine time * @param time timestamp */ public void setInfoTime(String keyHumanTime, String keyMachineTime, long time) { SliderUtils.setInfoTime(info, keyHumanTime, keyMachineTime, time); }
SliderUtils.setInfoTime(md, StatusKeys.INFO_CREATE_TIME_HUMAN, StatusKeys.INFO_CREATE_TIME_MILLIS,
SliderUtils.setInfoTime(md, StatusKeys.INFO_CREATE_TIME_HUMAN, StatusKeys.INFO_CREATE_TIME_MILLIS,
public void initClusterStatus() { //copy into cluster status. ClusterDescription status = ClusterDescription.copy(clusterStatusTemplate); status.state = STATE_CREATED; MapOperations infoOps = new MapOperations("info", status.info); infoOps.mergeWithoutOverwrite(applicationInfo); SliderUtils.addBuildInfo(infoOps, "status"); long now = now(); status.setInfoTime(StatusKeys.INFO_LIVE_TIME_HUMAN, StatusKeys.INFO_LIVE_TIME_MILLIS, now); SliderUtils.setInfoTime(infoOps, StatusKeys.INFO_LIVE_TIME_HUMAN, StatusKeys.INFO_LIVE_TIME_MILLIS, now); if (0 == status.createTime) { status.createTime = now; SliderUtils.setInfoTime(infoOps, StatusKeys.INFO_CREATE_TIME_HUMAN, StatusKeys.INFO_CREATE_TIME_MILLIS, now); } status.state = STATE_LIVE; //set the app state to this status setClusterStatus(status); }
public void initClusterStatus() { //copy into cluster status. ClusterDescription status = ClusterDescription.copy(clusterStatusTemplate); status.state = STATE_CREATED; MapOperations infoOps = new MapOperations("info", status.info); infoOps.mergeWithoutOverwrite(applicationInfo); SliderUtils.addBuildInfo(infoOps, "status"); long now = now(); status.setInfoTime(StatusKeys.INFO_LIVE_TIME_HUMAN, StatusKeys.INFO_LIVE_TIME_MILLIS, now); SliderUtils.setInfoTime(infoOps, StatusKeys.INFO_LIVE_TIME_HUMAN, StatusKeys.INFO_LIVE_TIME_MILLIS, now); if (0 == status.createTime) { status.createTime = now; SliderUtils.setInfoTime(infoOps, StatusKeys.INFO_CREATE_TIME_HUMAN, StatusKeys.INFO_CREATE_TIME_MILLIS, now); } status.state = STATE_LIVE; //set the app state to this status setClusterStatus(status); }