public void registerConnected(long platformIdent){
  AgentStatusData agentStatusData=agentStatusDataMap.get(platformIdent);
  if (null == agentStatusData) {
    agentStatusData=new AgentStatusData(AgentConnection.CONNECTED);
    AgentStatusData existing=agentStatusDataMap.putIfAbsent(platformIdent,agentStatusData);
    if (null != existing) {
      agentStatusData=existing;
    }
  }
  long currentTimeMillis=System.currentTimeMillis();
  agentStatusData.setLastKeepAliveTimestamp(currentTimeMillis);
  agentStatusData.setConnectionTimestamp(currentTimeMillis);
  agentStatusData.setAgentConnection(AgentConnection.CONNECTED);
}

public void registerConnected ( long platformIdent ) { AgentStatusData agentStatusData = agentStatusDataMap . get ( platformIdent ) ; if ( null == agentStatusData ) { agentStatusData = new AgentStatusData ( AgentConnection . CONNECTED ) ; AgentStatusData existing = agentStatusDataMap . putIfAbsent ( platformIdent , agentStatusData ) ; if ( null != existing ) { agentStatusData = existing ; } } long currentTimeMillis = System . currentTimeMillis ( ) ; agentStatusData . setLastKeepAliveTimestamp ( currentTimeMillis ) ; agentStatusData . setConnectionTimestamp ( currentTimeMillis ) ; agentStatusData . setAgentConnection ( AgentConnection . CONNECTED ) ; }
registers that the agent was connected .
