@Override
	public void onSupervisorElected(SupervisorElectedEvent supervisorElectedEvent) throws Exception {
		recalculateStreamStates(supervisorElectedEvent.getStreamDeployments());
		recalculateJobStates(supervisorElectedEvent.getJobDeployments());
	}
Write the deployment status of the deployment unit.

@param type    deployment unit type
@param name    deployment unit name
@param status  deployment unit status
@throws Exception
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/server/admin/deployment/zk/DefaultDeploymentStateRecalculator.java