Package com.ibm.staf

Examples of com.ibm.staf.STAFHandle


      ps.setOperation(operation);
      ps.start();
    }
   
    try {
      STAFHandle handle = new STAFHandle("PSearch listener");
      handle.submit2(hostname, "SEM", "PULSE EVENT PSearch/Ready");
      handle.submit2(hostname, "SEM", "WAIT EVENT PSearch tests/Completed");
      handle.submit2(hostname, "SEM", "DELETE EVENT PSearch tests/Completed");
      System.exit(0);
    } catch (Exception e) {
      System.out.println("STAF Handle fail");
    }
View Full Code Here


      System.out.println("run() of SNMPTrapListener: Wait 10s.");
      Thread.sleep(10000);

      // Register with STAF
      STAFHandle handle = new STAFHandle("SNMPTrapListener");

      // Post event to notice that the trap listener is ready
      System.out.println(
              "run() of SNMPTrapListener: Send \"SNMPTrapListener/Ready\"" +
              " event to " + remoteHost + ".");
      handle.submit2(remoteHost, "SEM", "PULSE EVENT SNMPTrapListener/Ready");

      // Wait event which notices that all the traps have been sent
      System.out.println(
              "run() of SNMPTrapListener: Wait \"SendTrap/Complete\" event " +
              "from " + remoteHost + ".");
      handle.submit2(remoteHost, "SEM", "WAIT EVENT SendTrap/Complete");

      // Delte event
      System.out.println(
              "run() of SNMPTrapListener: Delte \"SendTrap/Complete\" event " +
              "on " + remoteHost + ".");
      handle.submit2(remoteHost, "SEM", "DELETE EVENT SendTrap/Complete");

      // Display status of the traps
      currentTrapNumber =
              nbTrapV1_community +
              nbTrapV1_otherCommunity +
View Full Code Here

TOP

Related Classes of com.ibm.staf.STAFHandle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.