Package com.odb.collector

Examples of com.odb.collector.DataSourceConfiguration


    }
    return false;
  }

  public void getAllDataSources() {
    DataSourceConfiguration dsC[] = null;
    if (dsConfigList == null) {
      try {
        dsC = inqWS.getAllDataSourceByPublisherID(ps.getPublisherID());
        if (dsC != null) {
          dsConfigList = new ArrayList<DataSourceConfiguration>(Arrays.asList(dsC));
View Full Code Here


    }

  }

  public String addDataSource(DataConfiguration dc) {
    DataSourceConfiguration dsConfig = new DataSourceConfiguration();
    String dsID;
    try {
      dsConfig.setPublisherID(ps.getPublisherID());
      dsConfig.setDsName(dc.getDataSourceName());
      dsConfig.setDsTimeoutInterval((long) dc.getTimeoutInterval());
      dsConfig.setSeriesCount(dc.getNumberOfSeries());
      int axisCount = dc.getAxisDetails().size();
      AxisInfo[] xsInfoList = new AxisInfo[axisCount];
      for (int i = 0; i < axisCount; i++) {
        xsInfoList[i] = new AxisInfo();
        ArrayList<String> axisLabels = new ArrayList<String>();
        xsInfoList[i].setDataSourceAxisName(dc.getAxisDetails().get(i).getAxisName());
        axisLabels.add(new Integer((int) dc.getAxisDetails().get(i).getMinima()).toString());
        axisLabels.add(new Integer((int) dc.getAxisDetails().get(i).getMaxima()).toString());
        xsInfoList[i].setAxisLabels(axisLabels.toArray(new String[axisLabels.size()]));
        xsInfoList[i].setDataSourceAxisType("Y");
      }
      dsConfig.setXsInfo(xsInfoList);
      System.out.println(dsConfig);
      dsID = regWS.registerDataSource(dsConfig);
      System.out.println("Datasource ID = " + dsID);
      return dsID;
    } catch (IOException e) {
View Full Code Here

TOP

Related Classes of com.odb.collector.DataSourceConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.