📄 appeventnotificationimpl.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 + -