Skip to content

Commit

Permalink
Merge branch 'space/14.1' of github.com:OpenNMS/opennms into space/14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
thedesloge committed Apr 21, 2014
2 parents 4273394 + abd1a5d commit dc37c2e
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 51 deletions.
Expand Up @@ -53,10 +53,5 @@ public int getType() {

@Override
public abstract String getInstance();

@Override
public String getParent() {
return m_agent.getStorageDir().toString();
}

}
Expand Up @@ -89,14 +89,6 @@ public String getResourceTypeName() {
return RESOURCE_TYPE_NAME;
}

/* (non-Javadoc)
* @see org.opennms.netmgt.config.collector.CollectionResource#getParent()
*/
@Override
public String getParent() {
return m_agent.getStorageDir().toString();
}

/* (non-Javadoc)
* @see org.opennms.netmgt.config.collector.CollectionResource#getInstance()
*/
Expand Down
Expand Up @@ -54,8 +54,4 @@ public void setAttributeValue(final CollectionAttributeType type, final String v
@Override
public abstract String getInstance();

@Override
public String getParent() {
return m_agent.getStorageDir().toString();
}
}
Expand Up @@ -54,8 +54,4 @@ public void setAttributeValue(final CollectionAttributeType type, final String v
@Override
public abstract String getInstance();

@Override
public String getParent() {
return m_agent.getStorageDir().toString();
}
}
Expand Up @@ -128,6 +128,11 @@ public void visit(CollectionSetVisitor visitor) {
@Override
public abstract int getType();

@Override
public final String getParent() {
return m_agent.getStorageDir().toString();
}

/**
* <p>rescanNeeded</p>
*
Expand Down
Expand Up @@ -807,11 +807,6 @@ public String getResourceTypeName() {
public String getInstance() {
return null; //For node type resources, use the default instance
}

@Override
public String getParent() {
return m_agent.getStorageDir().toString();
}
}

public static class JMXCollectionSet extends AbstractCollectionSet {
Expand Down
Expand Up @@ -91,9 +91,5 @@ public void setAttributeValue(final CollectionAttributeType type, final String v
*/
@Override
public abstract String getInstance();

@Override
public String getParent() {
return m_agent.getStorageDir().toString();
}

}
Expand Up @@ -199,11 +199,6 @@ public String getResourceTypeName() {
public String getInstance() {
return null; //For node type resources, use the default instance
}

@Override
public String getParent() {
return m_agent.getStorageDir().toString();
}
}

private static class NSClientCollectionSet extends AbstractCollectionSet {
Expand Down
Expand Up @@ -83,14 +83,6 @@ public int getType() {
@Override
public abstract String getInstance();

/* (non-Javadoc)
* @see org.opennms.netmgt.config.collector.CollectionResource#getParent()
*/
@Override
public String getParent() {
return m_agent.getStorageDir().toString();
}

/* (non-Javadoc)
* @see org.opennms.netmgt.collectd.AbstractCollectionResource#getTimeKeeper()
*/
Expand Down
Expand Up @@ -76,7 +76,6 @@ public class XmpCollectionResource extends AbstractCollectionResource
private final String m_resourceType;
private final int m_nodeType;
private final Set<AttributeGroup> m_listOfGroups;
private final CollectionAgent m_agent;

/* constructors ************************************* */
public XmpCollectionResource(CollectionAgent agent, String resourceType, String nodeTypeName, String instance)
Expand All @@ -91,7 +90,6 @@ public XmpCollectionResource(CollectionAgent agent, String resourceType, String
// resourceType tells us if we are writing under a separate RRD
// subdir

this.m_agent = agent;
this.m_nodeTypeName = nodeTypeName;
if ((resourceType == null) || (resourceType.length() == 0)) {
this.m_resourceType = null;
Expand Down Expand Up @@ -244,9 +242,4 @@ public void visit(CollectionSetVisitor visitor)

} /* visit */

@Override
public String getParent() {
return m_agent.getStorageDir().toString();
}

} /* class XmpCollectionResource */

0 comments on commit dc37c2e

Please sign in to comment.