added ping back

This commit is contained in:
Alex Huang 2011-05-06 18:20:26 -07:00
parent 08bb454241
commit 6805788f7d
1 changed files with 5 additions and 7 deletions

View File

@ -505,15 +505,13 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory, ResourceS
long id = server.getId();
AgentAttache attache = createAttache(id, server, resource);
if (attache.isReady()) {
StartupAnswer[] answers = new StartupAnswer[startup.length];
for (int i = 0; i < answers.length; i++) {
answers[i] = new StartupAnswer(startup[i], attache.getId(), _pingInterval);
}
attache.process(answers);
StartupAnswer[] answers = new StartupAnswer[startup.length];
for (int i = 0; i < answers.length; i++) {
answers[i] = new StartupAnswer(startup[i], attache.getId(), _pingInterval);
}
attache.process(answers);
attache = notifyMonitorsOfConnection(attache, startup);
return attache;