class TDRCollectorInstanceWatcher implements IEntryListener<String, ArrayList<Instance>> {

	public void init() {
		if (logger.isDebugEnabled()) {
			logger.debug("Starting TDRCollectorInstanceWatcher ...");
			logger.debug("Getting TDRCollectorInstance list ...");
		}
		List<Instance> nodeList;
		
		nodeList = topologyClient.getAllInstancesOfType(E3Constant.E3MANAGER);
		if (nodeList != null && nodeList.size() != 0) {
			for (Instance instance : nodeList) {
				verifyCredentials(instance);
			}
			if (this.key == null || this.user == null) {
				logger.warn("No credentials were set for instances of type " + E3Constant.TDR_COLLECTOR + 
				".  There will likely be problems with downstream TDR collection.  ");
			}
		}
			
		nodeList = topologyClient.getAllInstancesOfType(E3Constant.TDR_COLLECTOR);
		if (nodeList != null && nodeList.size() != 0) {
			TDRCollectors.addAll(nodeList);
			for (Instance instance : nodeList) {
				verifyCredentialsUser(instance);
			}
			if (logger.isDebugEnabled()) {
				logger.debug("Writing TDR Transfer Script configuration file.");
			}
			writeConfigFile();
		} else {
			if (logger.isDebugEnabled()) {
				logger.debug("No instances of type " + E3Constant.TDR_COLLECTOR + " were found.");
			}
		}
		listenInstanceTypeListener();
		getMyName();
		if (logger.isDebugEnabled()) {
			logger.debug("TDRCollectorInstanceWatcher init'd.");
		}
	}

}