appeventnotificationimpl.java
来自「中兴公司在parlayx开发方面的培训文档」· Java 代码 · 共 30 行
JAVA
30 行
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 + =
减小字号Ctrl + -
显示快捷键?