/** * <p>getName</p> * * @return a {@link java.lang.String} object. */ public String getName() { return m_params.getCollectionName(); }
@Override public Map<String, Object> getRuntimeAttributes(CollectionAgent agent, Map<String, Object> parameters) { final Map<String, Object> runtimeAttributes = new HashMap<>(); final ServiceParameters serviceParams = new ServiceParameters(parameters); final String collectionName = serviceParams.getCollectionName(); final NsclientCollection collection = NSClientDataCollectionConfigFactory.getInstance().getNSClientCollection(collectionName); if (collection == null) { throw new IllegalArgumentException(String.format("NSClientCollector: No collection found with name '%s'.", collectionName)); } runtimeAttributes.put(NSCLIENT_COLLECTION_KEY, collection); final NSClientAgentConfig agentConfig = NSClientPeerFactory.getInstance().getAgentConfig(agent.getAddress()); runtimeAttributes.put(NSCLIENT_AGENT_CONFIG_KEY, agentConfig); return runtimeAttributes; }
@Override public Map<String, Object> getRuntimeAttributes(CollectionAgent agent, Map<String, Object> parameters) { final Map<String, Object> runtimeAttributes = new HashMap<>(); final ServiceParameters serviceParams = new ServiceParameters(parameters); final String collectionName = serviceParams.getCollectionName(); final NsclientCollection collection = NSClientDataCollectionConfigFactory.getInstance().getNSClientCollection(collectionName); if (collection == null) { throw new IllegalArgumentException(String.format("NSClientCollector: No collection found with name '%s'.", collectionName)); } runtimeAttributes.put(NSCLIENT_COLLECTION_KEY, collection); final NSClientAgentConfig agentConfig = NSClientPeerFactory.getInstance().getAgentConfig(agent.getAddress()); runtimeAttributes.put(NSCLIENT_AGENT_CONFIG_KEY, agentConfig); return runtimeAttributes; }
m_repository=m_spec.getRrdRepository(m_params.getCollectionName());