m_agentRunners = new AgentRunner[m_agentInstances.length];
for ( int index = 0; index < m_agentInstances.length; index++ )
{
Object agent = m_agentInstances[index];
Agent agentConf = m_arryAgents[index];
if ( agent instanceof DiscoveryAgent )
{
if ( !m_disabledAgents.contains( agent ) )
{
DiscoveryAgent discAgent = (DiscoveryAgent) agent;
runAgent( discAgent, agentConf, index );
}
}
else
{
LOG.warn( MSG.getMessage( Keys.AGENT_MUST_IMPLEMENT_DISCOVERY,
agentConf.getName( ),
agentConf.getClass1( ) ) );
}
}
// If all objects have not yet terminated then wait on them.
while ( !isDiscoveryComplete( ) )