Package de.desy.tine.startup

Examples of de.desy.tine.startup.TInitializer


      TFecLog.log("get device names from " + getLocalName() + "-devices.csv : " + TErrorList.errorString[rc]);
    return rc;
  }
  public int getRegisteredNamesFromPropertyFile(String propertyName)
  {
    TInitializer initializer = TInitializerFactory.getInstance().getInitializer();
    TExportProperty prp = propertyList.getFirstProperty(propertyName);
    String devFileName = propertyName + "-names.csv";
    csv devNamesFile = new csv(initializer.getFecHome()+File.separator+getLocalName()+File.separator+devFileName);
    int rc = devNamesFile == null ?
        TErrorList.file_error :
        getRegisteredDevicesFromFile(devNamesFile,new devNameRowHndlr(prp));
    if (rc == TErrorList.no_such_file)
    {
      devNamesFile = new csv(initializer.getFecHome()+File.separator+devFileName);
      rc = devNamesFile == null ?
          TErrorList.file_error :
          getRegisteredDevicesFromFile(devNamesFile,new devNameRowHndlr(prp));
    }
    if (rc != TErrorList.no_such_file)
View Full Code Here


      return 0;
    }
  }
  public int getRegisteredPropertyListFromFile(TDevice device, String filename)
  {
    TInitializer initializer = TInitializerFactory.getInstance().getInitializer();
    String fn = initializer.getFecHome();
    csv csvFile = null;
    if (moduleName != null) csvFile = new csv(fn+File.separator+moduleName+File.separator+filename);
    if (csvFile == null || !csvFile.fileAvailable())
      csvFile = new csv(fn+File.separator+filename);
    devPrpLstHndlr namhdlr = new devPrpLstHndlr();
View Full Code Here

        da.portOffset = 101;
        sa = new TFecEntry(da);
        addGroupServerToServerCache(sa);
        if (ensR == null) break;
      }
      TInitializer ti = TInitializerFactory.getInstance().getInitializer();
      if (tineHomePath == null) tineHomePath = ti.getTineHome();
      if (cacheFilePath == null)
      {
        cacheFilePath = ti.getTineCache();
        cacheFilePath += File.separator + "tine" + File.separator + "cache" + File.separator;
      }
      if (File.separatorChar == '\\') crlf = "\r\n";
    
      srvCacheFile = cacheFilePath + "eqpdbase.csv";
View Full Code Here

    return TInitializerFactory.getInstance().getInitializer().getOs();
  }
  // TODO Move to separate class
  public static String getStockSrvVersion()
  {
    TInitializer ti = TInitializerFactory.getInstance().getInitializer();
    return ti.getVersion()+":"+ti.getBuildId();
  }
View Full Code Here

    cmdLst.put(item.getCommandString(), item);
  }
  private static OperatingSystemMXBean os = ManagementFactory.getOperatingSystemMXBean()
  public static void dumpVersion()
  {
    TInitializer ti = TInitializerFactory.getInstance().getInitializer();
    TLinkFactory.dbgPrint("TINE library version: "+ti.getVersion());
    TLinkFactory.dbgPrint("TINE library build id: "+ti.getBuildId());
    TLinkFactory.dbgPrint("host platform: "+os.getName()+" "+os.getVersion());
    TLinkFactory.dbgPrint("java version: "+System.getProperty("java.version"));

  }
View Full Code Here

      return;
    }
  }
  public static void dumpVersion()
  {
    TInitializer ti = TInitializerFactory.getInstance().getInitializer();
    TLinkFactory.dbgPrint("TINE library version: "+ti.getVersion());
    TLinkFactory.dbgPrint("TINE library build id: "+ti.getBuildId());
    TLinkFactory.dbgPrint("host platform: "+os.getName()+" "+os.getVersion());
    TLinkFactory.dbgPrint("java version: "+System.getProperty("java.version"));

  }
View Full Code Here

  public void dumpHistoryManifest()
  {
    int nHistoryRecords = gLclHstList.size();
    THistoryRecord hst = null;
    THistorySpecification spc = null;
    TInitializer initializer = TInitializerFactory.getInstance().getInitializer();
    String eqm = getLocalName();
    String filename = initializer.getFecHome()+File.separator+eqm;
    String nl = System.getProperty("line.separator");
    try
    {
      new File(filename).mkdirs();
      filename += File.separator+"hstmf.csv";
View Full Code Here

  public int restorePropertyValues(String prpName,TDataType[] target)
  {
    if (prpName == null || target == null) return TErrorList.invalid_parameter;
    TExportProperty prp = propertyList.getFirstProperty(prpName);
    if (prp == null) return TErrorList.illegal_property;
    TInitializer initializer = TInitializerFactory.getInstance().getInitializer();
    String fn = initializer.getFecHome();
    String filename = prpName+"-settings.csv";
    csv csvFile = null;
    if (moduleName != null) csvFile = new csv(fn+File.separator+moduleName+File.separator+filename);
    if (csvFile == null || !csvFile.fileAvailable())
      csvFile = new csv(fn+File.separator+filename);
View Full Code Here

  public int restoreStockPropertyValues(String prpName)
  {
    if (prpName == null) return TErrorList.invalid_parameter;
    TExportProperty prp = stockList.getFirstProperty(prpName);
    if (prp == null) return TErrorList.illegal_property;
    TInitializer initializer = TInitializerFactory.getInstance().getInitializer();
    String fn = initializer.getFecHome();
    String filename = prpName+"-settings.csv";
    csv csvFile = null;
    if (moduleName != null) csvFile = new csv(fn+File.separator+moduleName+File.separator+filename);
    if (csvFile == null || !csvFile.fileAvailable())
      csvFile = new csv(fn+File.separator+filename);
View Full Code Here

    {
      ArrayList<String>alst = prp.getDeviceList();
      String[] dlst = (alst != null) ?
          alst.toArray(new String[0]) :
          deviceList.getDeviceNameList();
      TInitializer initializer = TInitializerFactory.getInstance().getInitializer();
      String fn = initializer.getFecHome()+File.separator;
      if (moduleName != null && new File(fn+moduleName+File.separator).exists())
        fn += moduleName+File.separator;
      String filename = fn + prpName+"-settings.csv";
      String nl = System.getProperty("line.separator");
      FileWriter fw = new FileWriter(filename);
View Full Code Here

TOP

Related Classes of de.desy.tine.startup.TInitializer

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.