File tree 1 file changed +2
-1
lines changed
src/com/googlecode/jmxtrans
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 18
18
import org .apache .commons .cli .Option ;
19
19
import org .apache .commons .cli .Options ;
20
20
import org .apache .commons .io .FilenameUtils ;
21
+ import org .apache .commons .lang .RandomStringUtils ;
21
22
import org .apache .commons .pool .KeyedObjectPool ;
22
23
import org .apache .commons .pool .impl .GenericKeyedObjectPool ;
23
24
import org .quartz .CronExpression ;
@@ -400,7 +401,7 @@ private void processServersIntoJobs(Scheduler scheduler) throws LifecycleExcepti
400
401
*/
401
402
private void scheduleJob (Scheduler scheduler , Server server ) throws ParseException , SchedulerException {
402
403
403
- String name = server .getHost () + ":" + server .getPort () + "-" + System .currentTimeMillis ();
404
+ String name = server .getHost () + ":" + server .getPort () + "-" + System .currentTimeMillis () + "-" + RandomStringUtils . randomNumeric ( 10 ) ;
404
405
JobDetail jd = new JobDetail (name , "ServerJob" , ServerJob .class );
405
406
406
407
JobDataMap map = new JobDataMap ();
You can’t perform that action at this time.
0 commit comments