Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CHUKWA-640. Use timer thread to schedule adaptor registration. (Abhij…
…it Dhar via Eric Yang)

git-svn-id: https://svn.apache.org/repos/asf/incubator/chukwa/trunk@1343117 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
macroadster committed May 28, 2012
1 parent fc7cfe2 commit 78d81df53de14c6009dfa147c3fb48c39e806356
Showing 2 changed files with 5 additions and 4 deletions.
@@ -14,7 +14,7 @@ Trunk (unreleased changes)

CHUKWA-641. Fix stack trace for dumpChunk command when invalid regular expression is specified. (Eric Spishak via Eric Yang)

CHUKWA-640. Use timer thread to schedule adatpor registration. (Abhijit Dhar via Eric Yang)
CHUKWA-640. Use timer thread to schedule adaptor registration. (Abhijit Dhar via Eric Yang)

CHUKWA-636. Updated dependency to HBase 0.92.0. (Eric Yang)

@@ -273,9 +273,10 @@ public String addByName(String adaptorID, String adaptorName, String type, Strin
+ numRetries
+ " retries remaining");

Timer addFileTimer = new Timer();
addFileTimer.schedule(new AddAdaptorTask(adaptorName, type, params,
offset, numRetries - 1, retryInterval), retryInterval);
AddAdaptorTask task = new AddAdaptorTask(adaptorName, type, params,
offset, numRetries - 1, retryInterval);
Timer timerThread = new Timer(true); // set as daemon thread
timerThread.schedule(task, retryInterval);
}
} else {
System.err.println("Giving up on connecting to the local agent");

0 comments on commit 78d81df

Please sign in to comment.