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

📄 frontguidefine.java.svn-base

📁 通讯采集软件
💻 SVN-BASE
📖 第 1 页 / 共 4 页
字号:
  public static String FSESSION_SERVER_JNDI = new String("");
  public static String INSERT_DATA_JNDI = new String("");
  public static String PROCESSEVENT_JNDI = new String("");

  public static String EVENT_TOPICFACTORY = new String("");
  public static String EVENT_TOPIC = new String("");
  public static String GUI_TOPICFACTORY = new String("");
  public static String GUI_TOPIC = new String("");
  public static String COLLECTOR_TOPICFACTORY = new String("");
  public static String COLLECTOR_TOPIC = new String("");

  public static int SEND_DATA_DEBUG = 0;
  public static int DOWNLOAD_AREA_DEBUG = 0;
  public static int DOWNLOAD_FACTORY_DEBUG = 0;
  public static int DOWNLOAD_TERMINAL_DEBUG = 0;
  public static int DOWNLOAD_CHANNEL_DEBUG = 0;
  public static int DOWNLOAD_TASKCHANNEL_DEBUG = 0;
  public static int DOWNLOAD_COMPUTER_DEBUG = 0;
  public static int SEND_EVENT_DEBUG = 0;

  public static String data_nameLable[] = {
      "一次侧电量", "二次侧窗口值",
      "日电量基值", "日冻结电量",
      "日费率电量", "日电量需量",
      "月电量基值", "月冻结电量",
      "月费率电量", "月电量需量",
      "时段基值", "时段冻结值",
      "时段费率", "时段需量",
      // wj add at nanjing 20040712
      "遥测"
      // wj add at nanjing 20040712
  };

  public static String table_name_enLable[] = {
      "area", "factory",
      "terminal", "meter",
      "pulse", "yc",
      "taskchannel", "channel",
      "computer", "protocol"
  };

  public static int TS_INIT_PORT = 950;
  public static int MACHINE_SWITCH_WAIT_COUNTER = 15;
  public static int MAX_DATA_BUFFER_NUM = 2000;
  public static int USE_OFFLINE_MACHINE_PORT = 0;
  public static int TS_PORT_NUM = 16;
  public static int APPSERVER_CLUSTER = 1;
  public static float TRANS_FACTOR = 1;
  public static int COLLECTOR_PORT = 5151;

  // terminal type
  public static final int TERMINAL_TYPE = 0;
  public static final int DIR_METER_TYPE = 1;
  public static final int TS_TYPE = 2;
  //

  public static long m_local_computer_id = -1;

  public static long GUI_COMPUTER = 98;
  public static long ALL_COMPUTER_REC = 99;

  public static int MAX_COUNER_FOR_GUI = 10800;
  public static int INVALIBLE_EVENT_VALUE = -1;

  public static ArrayList titalmsgArray = new ArrayList();
  public static ArrayList reportmsgArray = new ArrayList();
  public static ArrayList explainmsgArray = new ArrayList();
  public static ArrayList upmsgArray = new ArrayList();
  public static ArrayList taskwarnmsgArray = new ArrayList();
  public static ArrayList warnmsgArray = new ArrayList();
  public static ArrayList datamsgArray = new ArrayList();
  public static ArrayList statusmsgArray = new ArrayList();
  public static ArrayList parammsgArray = new ArrayList();

  //Jms Report Type/////////////////////////////////////////////
  public static final int PARA_TYPE = 1;
  public static final int ASSIGN_TASK = 2;
  public static final int RETURN_TASK = 3;
  public static final int PURSE_TASK = 4;
  public static final int INQUIRE_TYPE = 5;
  public static final int ASSIGN_TERMTASK = 6;
  public static final int HOST_SWITCH = 7;
  public static final int LOGIN_JMS_TYPE = 8;
  public static final int TASK_ASSIGN_JMS_TYPE = 9;
  public static final int TASK_ASSIGN_WARN_JMS_TYPE = 10;
  public static final int PARA_PURSUE_JMS_TYPE = 11;
  public static final int DATA_PURSUE_JMS_TYPE = 12;
  public static final int SET_PARA_JMS_TYPE = 13;
  public static final int PORT_MONITOR_JMS_TYPE = 14;
  public static final int UP_HINT_JMS_TYPE = 15;
  public static final int WARN_HINT_JMS_TYPE = 16;
  public static final int REPORT_MONITOR_JMS_TYPE = 17;
  public static final int EXPLAIN_MONITOR_JMS_TYPE = 18;
  public static final int CHAN_REPORT_MONITOR_JMS_TYPE = 19;
  public static final int DATA_MONITOR_JMS_TYPE = 20;
  public static final int ALL_PARA_MONITOR_JMS_TYPE = 21;
  public static final int TITLE_MONITOR_JMS_TYPE = 22;
  public static final int IIOP_JMS_JMS_TYPE = 23;
  public static final int PARA_MONITOR_JMS_TYPE = 24;
  public static final int QUIT_JMS_TYPE = 25;
  public static final int RESET_JMS_TYPE = 26;
  public static final int LOGOUT_JMS_TYPE = 27;
  public static final int ALIVE_JMS_TYPE = 28;
  public static final int WRITE_CHREPORT_JMS_TYPE = 29;
  public static final int WRITE_REPORT_JMS_TYPE = 30;
  public static final int WRITE_EXPLAIN_JMS_TYPE = 31;

  public static final int TASK_ASSIGN_JMS_TYPE_CANCEL = 32;
  public static final int TASK_ASSIGN_WARN_JMS_TYPE_CANCEL = 33;
  public static final int UP_HINT_JMS_TYPE_CANCEL = 34;
  public static final int WARN_HINT_JMS_TYPE_CANCEL = 35;
  public static final int REPORT_MONITOR_JMS_TYPE_CANCEL = 36;
  public static final int EXPLAIN_MONITOR_JMS_TYPE_CANCEL = 37;
  public static final int CHAN_REPORT_MONITOR_JMS_TYPE_CANCEL = 38;
  public static final int DATA_MONITOR_JMS_TYPE_CANCEL = 39;
  public static final int TITLE_MONITOR_JMS_TYPE_CANCEL = 40;
  public static final int IIOP_JMS_JMS_TYPE_CANCEL = 41;
  public static final int WRITE_CHREPORT_JMS_TYPE_CANCEL = 42;
  public static final int WRITE_REPORT_JMS_TYPE_CANCEL = 43;
  public static final int WRITE_EXPLAIN_JMS_TYPE_CANCEL = 44;
  public static final int PORT_MONITOR_JMS_TYPE_CANCEL = 45;
  public static final int CHANNEL_TASK_ASSIGN_JMS_TYPE = 46;
  public static final int CHANNEL_TASK_ASSIGN_JMS_TYPE_CANCEL = 47;

  //pzy 0507
  public static final int TASK_ASSIGN_JMS_LOCAL_TYPE = 48;
  public static final int TASK_ASSIGN_JMS_LOCAL_TYPE_CANCEL = 49;
  //pzy 0507

  public static int m_ReportTerminal = -1;
  public static int m_ExplainTerminal = -1;
  public static int m_DataTerminal = -1;

  public static ArrayList m_AssTaskHintBuffer = new ArrayList();
  public static AssemblePara m_AssemblePara = null;

  //public static final String JAVA_M_FILE = "config.sys"; ////////////
  public static final String JAVA_M_FILE = "d:\\nari_work\\wj\\new\\front_deploy\\pbs\\pbs2000jfront\\src\\collector\\gui\\config.sys";

  //////////////////////////////////////////////////////////////////////////////////////

  public static int Timercount = 1;

  public static int m_Local = 0;
  public static int m_MDI = 0;
  public static int m_ParamCall = 0;
  public static boolean m_ReportSendFlag = false;
  public static boolean m_DataSendFlag = false;
  public static boolean m_ExplainSendFlag = false;

  //Inform type
  public static final int REPORT_TYPE = 1;
  public static final int CHANNEL_REPORT_TYPE = 2;
  public static final int EXPLAIN_TYPE = 3;
  public static final int UP_TYPE = 4;
  public static final int HINT_TYPE = 5;

  public static final int STATUS__TYPE = 6;
  public static final int PARAM_DATA_TYPE = 9;

  public static final int MAX_DISPLAY_TERMINAL_NUM = 5;

  public static final int TERMINAL_NO_COMPUTER = -1;
  public static final int TERMINAL_COMPUTER = 1;

  public static long sendcomputerid = -1;

  //需要和CollectorDefine 的以下变量统一
  public static int m_LocalHostStatus = DEFAULT_MACHINE;

  //所有的key都是Long对象
  public static java.util.HashMap m_HashChannel = new HashMap();
  public static java.util.HashMap m_HashComputer = new HashMap();
  public static java.util.HashMap m_HashTs = new HashMap();

  public static java.util.HashMap m_HashArea = new HashMap();
  public static java.util.HashMap m_HashFactory = new HashMap();
  public static java.util.HashMap m_HashProtocol = new HashMap();
  public static ArrayList m_HashSampleEventType = new ArrayList();

  public static java.util.HashMap m_HashComputer_bak = new HashMap();

  //所有任务  不再有m_TaskChannelList和m_TermTaskList
  public static LinkedList m_h_tasklist = new LinkedList(); //高
  public static LinkedList m_m_tasklist = new LinkedList(); //中
  public static LinkedList m_l_tasklist = new LinkedList(); //低(定时)
  public static LinkedList m_pursue_tasklist = new LinkedList(); //追补任务
  public static LinkedList m_dial_tasklist = new LinkedList(); //拨号等待任务
  public static LinkedList m_net_tasklist = new LinkedList(); //网络等待任务
  //本机任务TASK_ASSIGN_JMS_TYPE
  public static LinkedList m_local_tasklist = new LinkedList(); //单机任务

  public static ReportDispFrame m_ReportDispFrame = null;
  public static DataDispFrame m_DataDispFrame = null;
  public static ParamDispFrame m_ParamDispFrame = null;
  public static TaskAssignFrame m_TaskAssignFrame = null;
  public static FrontFrame m_FrontFrame = null;
  public static DetailDialog m_DetailDialog = null;
  public static UpHintFrame m_UpHintFrame = null;
  public static WarnInfoFrame m_WarnInfoFrame = null;
  public static LocalTaskFrame m_LocalTaskFrame = null;
  public static NodeProPertyFrame m_NodeProPertyFrame = null;
  public static ReportSaveDialog m_ReportSaveDialog = null;
  public static DataPursueFrame m_DataPursueFrame = null;
  public static ParaSetFrame m_ParaSetFrame = null;
  //pzy add 20061205
  public static ParaCallSetFrame m_ParaCallSetFrame = null;
  //pzy add 20061205
  public static TermSelectDialog m_TermSelectDialog = null;
  public static WaitDialog m_WaitDialog = null;
  public static UserListDispDialog m_UserListDispDialog = null;

  public static terminal SelectedTerminal = null;
  public static guimsg m_guimsg = null;
  public static boolean m_InitFinished = false;
  public static int Down_Process = 0;

  public static int SystemPrintln(String m_pString) {
    if (FrontGuiDefine.DEBUG == 1) {
      System.out.println(m_pString);
    }
    return 1;
  }

  public static int getProperties() {
    Properties m_Configure = new Properties();
    try {
      m_Configure.load(new FileInputStream("../sys/pbs.conf"));
      int m_Value = 0;
      String m_String = m_Configure.getProperty("DEBUG");
      if (m_String == null) {
        FrontGuiDefine.DEBUG = 0;
      }
      else {
        try {
          m_Value = new Long(m_String).intValue();
        }
        catch (Exception m_Exception) {
          FrontGuiDefine.SystemPrintln("getProperties In CFunction Error #0" +
                                       m_Exception.getMessage());
        }
        FrontGuiDefine.DEBUG = m_Value;
      }

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

      FrontGuiDefine.MACHINE_TYPE = m_Configure.getProperty("MACHINE_TYPE");
      if (FrontGuiDefine.MACHINE_TYPE == null) {
        FrontGuiDefine.MACHINE_TYPE = "pc";
      }
      FrontGuiDefine.APPSERVER_TYPE = m_Configure.getProperty("APPSERVER_TYPE");
      if (FrontGuiDefine.APPSERVER_TYPE == null) {
        FrontGuiDefine.APPSERVER_TYPE = "sun";
      }

      FrontGuiDefine.INITIAL_CONTEXT_FACTORY = m_Configure.getProperty(
          "NAMING_FACTORY");
      if (FrontGuiDefine.INITIAL_CONTEXT_FACTORY == null) {
        FrontGuiDefine.INITIAL_CONTEXT_FACTORY =
            "com.sun.jndi.cosnaming.CNCtxFactory";
      }
      FrontGuiDefine.IIOP_URL1 = m_Configure.getProperty("IIOP_URL1");
      if (FrontGuiDefine.IIOP_URL1 == null) {
        FrontGuiDefine.IIOP_URL1 = "iiop://pbsserv:3700";
      }
      FrontGuiDefine.IIOP_URL2 = m_Configure.getProperty("IIOP_URL2");
      if (FrontGuiDefine.IIOP_URL2 == null) {
        FrontGuiDefine.IIOP_URL2 = "iiop://pbsserv:3700";
      }

      FrontGuiDefine.JMS_INITIAL_CONTEXT_FACTORY = m_Configure.getProperty(
          "JMS_INITIAL_CONTEXT_FACTORY");
      if (FrontGuiDefine.JMS_INITIAL_CONTEXT_FACTORY == null) {
        FrontGuiDefine.JMS_INITIAL_CONTEXT_FACTORY =
            "com.sun.appserv.naming.S1ASCtxFactory";
      }
      FrontGuiDefine.JMS_URL1 = m_Configure.getProperty("JMS_URL1");
      if (FrontGuiDefine.JMS_URL1 == null) {
        FrontGuiDefine.JMS_URL1 = "10.33.11.68";
      }
      FrontGuiDefine.JMS_PORT1 = m_Configure.getProperty("JMS_PORT1");
      if (FrontGuiDefine.JMS_PORT1 == null) {
        FrontGuiDefine.JMS_PORT1 = "3700";
      }
      FrontGuiDefine.JMS_URL2 = m_Configure.getProperty("JMS_URL2");
      if (FrontGuiDefine.JMS_URL2 == null) {
        FrontGuiDefine.JMS_URL2 = "10.33.11.60";
      }
      FrontGuiDefine.JMS_PORT2 = m_Configure.getProperty("JMS_PORT2");
      if (FrontGuiDefine.JMS_PORT2 == null) {

⌨️ 快捷键说明

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