⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frontguidefine.java

📁 通讯采集软件
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
        FrontGuiDefine.JMS_PORT2 = "3700";
      }

      FrontGuiDefine.FSESSION_SERVER_JNDI = m_Configure.getProperty(
          "FSESSION_SERVER_JNDI");
      if (FrontGuiDefine.FSESSION_SERVER_JNDI == null) {
        FrontGuiDefine.FSESSION_SERVER_JNDI = "ejb/FSessionEJB";
      }
      FrontGuiDefine.INSERT_DATA_JNDI = m_Configure.getProperty(
          "INSERT_DATA_JNDI");
      if (FrontGuiDefine.INSERT_DATA_JNDI == null) {
        FrontGuiDefine.INSERT_DATA_JNDI = "ejb/ProcessFrontData";
      }
      FrontGuiDefine.PROCESSEVENT_JNDI = m_Configure.getProperty(
          "PROCESSEVENT_JNDI");
      if (FrontGuiDefine.PROCESSEVENT_JNDI == null) {
        FrontGuiDefine.PROCESSEVENT_JNDI = "ejb/ProcessEvent1";
      }

      FrontGuiDefine.EVENT_TOPICFACTORY = m_Configure.getProperty(
          "PARAM_TOPIC_CONNECTION_FACTORY_JNDI");
      if (FrontGuiDefine.EVENT_TOPICFACTORY == null) {
        FrontGuiDefine.EVENT_TOPICFACTORY = "jms/ParamTcf";
      }
      FrontGuiDefine.EVENT_TOPIC = m_Configure.getProperty(
          "PARAM_TOPIC_CONNECTION_JNDI");
      if (FrontGuiDefine.EVENT_TOPIC == null) {
        FrontGuiDefine.EVENT_TOPIC = "jms/ParamTopic";
      }

      FrontGuiDefine.GUI_TOPICFACTORY = m_Configure.getProperty(
          "GUI_TOPIC_CONNECTION_FACTORY_JNDI");
      if (FrontGuiDefine.GUI_TOPICFACTORY == null) {
        FrontGuiDefine.GUI_TOPICFACTORY = "jms/GuiTcf";
      }
      FrontGuiDefine.GUI_TOPIC = m_Configure.getProperty(
          "GUI_TOPIC_CONNECTION_JNDI");
      if (FrontGuiDefine.GUI_TOPIC == null) {
        FrontGuiDefine.GUI_TOPIC = "jms/GuiTopic";
      }

      FrontGuiDefine.COLLECTOR_TOPICFACTORY = m_Configure.getProperty(
          "COLLECTOR_TOPICFACTORY");
      if (FrontGuiDefine.COLLECTOR_TOPICFACTORY == null) {
        FrontGuiDefine.COLLECTOR_TOPICFACTORY = "jms/CollectorTcf";
      }
      FrontGuiDefine.COLLECTOR_TOPIC = m_Configure.getProperty(
          "COLLECTOR_TOPIC");
      if (FrontGuiDefine.COLLECTOR_TOPIC == null) {
        FrontGuiDefine.COLLECTOR_TOPIC = "jms/CollectorTopic";
      }

      FrontGuiDefine.LOCAL_PARAM_DIR = m_Configure.getProperty(
          "LOCAL_PARAM_DIR");
      if (FrontGuiDefine.LOCAL_PARAM_DIR == null) {
        FrontGuiDefine.LOCAL_PARAM_DIR = "c:\\tmr2000\\local\\param\\";
      }
      FrontGuiDefine.LOCAL_DATA_DIR = m_Configure.getProperty("LOCAL_DATA_DIR");
      if (FrontGuiDefine.LOCAL_DATA_DIR == null) {
        FrontGuiDefine.LOCAL_DATA_DIR = "c:\\tmr2000\\local\\data\\";
      }
      FrontGuiDefine.LOCAL_REPORT_DIR = m_Configure.getProperty(
          "LOCAL_REPORT_DIR");
      if (FrontGuiDefine.LOCAL_REPORT_DIR == null) {
        FrontGuiDefine.LOCAL_REPORT_DIR = "c:\\tmr2000\\local\\data\\";
      }

      m_Value = 0;
      m_String = m_Configure.getProperty("SEND_DATA_DEBUG");
      if (m_String == null) {
        FrontGuiDefine.SEND_DATA_DEBUG = 0;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #1" +
                                       m_Exception.getMessage());
        }
        FrontGuiDefine.SEND_DATA_DEBUG = m_Value;
      }

      m_Value = 0;
      m_String = m_Configure.getProperty("DOWNLOAD_AREA_DEBUG");
      if (m_String == null) {
        FrontGuiDefine.DOWNLOAD_AREA_DEBUG = m_Value;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #2" +
                                       m_Exception.getMessage());
        }
        FrontGuiDefine.DOWNLOAD_AREA_DEBUG = m_Value;
      }

      m_Value = 0;
      m_String = m_Configure.getProperty("DOWNLOAD_FACTORY_DEBUG");
      if (m_String == null) {
        FrontGuiDefine.DOWNLOAD_FACTORY_DEBUG = m_Value;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #3" +
                                       m_Exception.getMessage());
        }
        FrontGuiDefine.DOWNLOAD_FACTORY_DEBUG = m_Value;
      }

      m_Value = 0;
      m_String = m_Configure.getProperty("DOWNLOAD_TERMINAL_DEBUG");
      if (m_String == null) {
        FrontGuiDefine.DOWNLOAD_TERMINAL_DEBUG = m_Value;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #4" +
                                       m_Exception.getMessage());
        }
        FrontGuiDefine.DOWNLOAD_TERMINAL_DEBUG = m_Value;
      }

      m_Value = 0;
      m_String = m_Configure.getProperty("DOWNLOAD_CHANNEL_DEBUG");
      if (m_String == null) {
        FrontGuiDefine.DOWNLOAD_CHANNEL_DEBUG = m_Value;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #5" +
                                       m_Exception.getMessage());
        }
        FrontGuiDefine.DOWNLOAD_CHANNEL_DEBUG = m_Value;
      }

      m_Value = 0;
      m_String = m_Configure.getProperty("DOWNLOAD_TASKCHANNEL_DEBUG");
      if (m_String == null) {
        FrontGuiDefine.DOWNLOAD_TASKCHANNEL_DEBUG = m_Value;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #6" +
                                       m_Exception.getMessage());
        }
        FrontGuiDefine.DOWNLOAD_TASKCHANNEL_DEBUG = m_Value;
      }

      m_Value = 0;
      m_String = m_Configure.getProperty("DOWNLOAD_COMPUTER_DEBUG");
      if (m_String == null) {
        FrontGuiDefine.DOWNLOAD_COMPUTER_DEBUG = m_Value;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #7" +
                                       m_Exception.getMessage());
        }
        FrontGuiDefine.DOWNLOAD_COMPUTER_DEBUG = m_Value;
      }

      m_Value = 0;
      m_String = m_Configure.getProperty("SEND_EVENT_DEBUG");
      if (m_String == null) {
        FrontGuiDefine.SEND_EVENT_DEBUG = m_Value;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #8" +
                                       m_Exception.getMessage());
        }
        FrontGuiDefine.SEND_EVENT_DEBUG = m_Value;
      }

      m_Value = 15;
      m_String = m_Configure.getProperty("MACHINE_SWITCH_WAIT_COUNTER");
      if (m_String == null) {
        FrontGuiDefine.MACHINE_SWITCH_WAIT_COUNTER = 15;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #10" +
                                       m_Exception.getMessage());
        }
        FrontGuiDefine.MACHINE_SWITCH_WAIT_COUNTER = m_Value;
      }

      m_Value = 2000;
      m_String = m_Configure.getProperty("MAX_DATA_BUFFER_NUM");
      if (m_String == null) {
        FrontGuiDefine.MAX_DATA_BUFFER_NUM = 2000;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #11" +
                                       m_Exception.getMessage());
        }
        FrontGuiDefine.MAX_DATA_BUFFER_NUM = m_Value;

      }

      m_Value = 0;
      m_String = m_Configure.getProperty("USE_OFFLINE_MACHINE_PORT");
      if (m_String == null) {
        FrontGuiDefine.USE_OFFLINE_MACHINE_PORT = 0;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #12");
        }
        FrontGuiDefine.USE_OFFLINE_MACHINE_PORT = m_Value;

      }

      m_Value = 0;
      m_String = m_Configure.getProperty("APPSERVER_CLUSTER");
      if (m_String == null) {
        FrontGuiDefine.APPSERVER_CLUSTER = 0;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #14");
        }
        FrontGuiDefine.APPSERVER_CLUSTER = m_Value;

      }

      float m_fValue = 1;
      m_String = m_Configure.getProperty("TRANS_FACTOR");
      if (m_String == null) {
        FrontGuiDefine.TRANS_FACTOR = 1;
      }
      else {
        try {
          m_fValue = new Float(m_String).floatValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #15");
        }
        FrontGuiDefine.TRANS_FACTOR = m_fValue;

      }

      m_Value = 0;
      m_String = m_Configure.getProperty("COLLECTOR_PORT");
      if (m_String == null) {
        FrontGuiDefine.COLLECTOR_PORT = 5151;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #16");
        }
        FrontGuiDefine.COLLECTOR_PORT = m_Value;
      }

    }
    catch (Exception m_Exception) {
      FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #17" +
                                   m_Exception.getMessage());
    }

    return 1;
  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -