Software Development Kit (SDK) and API Discussions

EMS Messege Java

jsv
1,492 Views

I want to see all EMS messages that are at severity "warning" or higher. At the moment my code recives all messages, it's about 8000 of them, and selects the ones I want. It takes about 3 minutes to gather. Is there a way to filter this in the NetApp to speed up the process?

 

EmsMessageGetIterRequest emsReq = new EmsMessageGetIterRequest();
Iterator<EmsMessageInfo> emsResp = runner.iterate(emsReq,10);
EmsMessageInfo ems;

while (emsResp.hasNext()) {
    ems = emsResp.next();

    if (!(ems.getEmsSeverity().equals("debug") || ems.getSeverity().equals("debug") || ems.getSeverity().equals("notice") || ems.getSeverity().equals("informational"))) {
        getEmsList().add(new NAEms(ems));
    }

}



0 REPLIES 0
Public