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

📄 appeventnotificationimpl.java

📁 中兴公司在parlayx开发方面的培训文档
💻 JAVA
字号:
package samples.fw;

public class AppEventNotificationImpl 
	extends org.csapi.fw.fw_application.notification.IpAppEventNotificationPOA
{
	public AppEventNotificationImpl(){}

	public void reportNotification(org.csapi.fw.TpFwEventInfo eventInfo, 
		int assignmentID) 
    {
          if (eventInfo.discriminator().value() == 
          		org.csapi.fw.TpFwEventName._P_EVENT_FW_SERVICE_UNAVAILABLE)
          {
            System.out.println("Get service UNAVAILABLE notification");
          }
          else if (eventInfo.discriminator().value() == 
          	org.csapi.fw.TpFwEventName._P_EVENT_FW_SERVICE_AVAILABLE)
          {
          	System.out.println("Get service AVAILABLE notification");
            String[] srvs = eventInfo.ServiceIDList();
            if ((srvs==null) || (srvs.length == 0))
              return;
            for(int i=0;i<srvs.length;i++) {
            	System.out.println("service AVAILABLE:"+srvs[i]");
          }
    }

	public void notificationTerminated (){}
}

⌨️ 快捷键说明

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