org.opennms.netmgt.collectd
Class XmpCollectionFactory

java.lang.Object
  extended by org.opennms.netmgt.collectd.XmpCollectionFactory

public class XmpCollectionFactory
extends Object


Constructor Summary
XmpCollectionFactory(Reader rdr)
           
XmpCollectionFactory(String configFile)
           
 
Method Summary
static XmpCollectionFactory getInstance()
           
 String getRrdPath()
           
 RrdRepository getRrdRepository(String collectionName)
          given a collection name, fetch its RRD info from the config file via the XmpDatacollectionConfig class and return an new repository
 XmpCollection getXmpCollection(String collectionName)
          given a collection name, fetch it from the config file via the XmpDatacollectionConfig class
static void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmpCollectionFactory

public XmpCollectionFactory(String configFile)
                     throws org.exolab.castor.xml.MarshalException,
                            org.exolab.castor.xml.ValidationException,
                            IOException
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException

XmpCollectionFactory

public XmpCollectionFactory(Reader rdr)
                     throws org.exolab.castor.xml.MarshalException,
                            org.exolab.castor.xml.ValidationException,
                            IOException
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
Method Detail

init

public static void init()
                 throws IOException,
                        FileNotFoundException,
                        org.exolab.castor.xml.MarshalException,
                        org.exolab.castor.xml.ValidationException
Throws:
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

getInstance

public static XmpCollectionFactory getInstance()

getRrdPath

public String getRrdPath()

getRrdRepository

public RrdRepository getRrdRepository(String collectionName)
given a collection name, fetch its RRD info from the config file via the XmpDatacollectionConfig class and return an new repository


getXmpCollection

public XmpCollection getXmpCollection(String collectionName)
given a collection name, fetch it from the config file via the XmpDatacollectionConfig class



Copyright © 2009. All Rights Reserved.