Code example for AtomicInteger

0
        registerHostNeeded(host);
    } 
 
    private static void registerHostNeeded(String host) {
        if (!timesHostNeeded.containsKey(host)) {
            timesHostNeeded.put(host, new AtomicInteger(0));
        } 
        timesHostNeeded.get(host).incrementAndGet();
    } 
 
    @Override 
    public String getTestName() {
        return testName;
    } 
 
    @Override 
    protected void doInitHost() { 
        CloudHostHolder.setupHost(hostname); 
    } 
 
    @Override