Examples of EraseKey


Examples of org.xmlBlaster.client.key.EraseKey

                           "</key>";
            con.publish(new MsgUnit(xmlKey,b,qw.toXml()));

            try { Thread.sleep(5L); } catch( InterruptedException i) {}

            EraseKey ek = new EraseKey(glob, "" + lCount);
            EraseReturnQos[] er = con.erase(ek.toXml(), eq.toXml());
        
            // System.out.println(new Timestamp(System.currentTimeMillis())+":"+lCount);
            if ((lCount % bulkSize) == 0) {
               log.info("Published and erased " + lCount + " topics, enter return to continue, enter 'q' to quit");
               try {
View Full Code Here

Examples of org.xmlBlaster.client.key.EraseKey

         if (interactive) {
            log.info("Hit a key to erase");
            try { System.in.read(); } catch(java.io.IOException e) {}
         }

         EraseKey ek;
         if (xpath != null)
            ek = new EraseKey(glob, xpath, Constants.XPATH);
         else
            ek = new EraseKey(glob, oid);
         EraseQos eq = new EraseQos(glob);
         eq.setForceDestroy(forceDestroy);
         eq.setPersistent(persistent);
         if (historyNumErase != -99) {
            eq.getData().setHistoryQos(new HistoryQos(glob, historyNumErase));
View Full Code Here

Examples of org.xmlBlaster.client.key.EraseKey

         assertTrue("Invalid msgs returned", msgs != null);
         assertEquals("Invalid number of messages returned", 1, msgs.length);
         log.info("SUCCESS: Got message:" + msgs[0].getKey());

         System.err.println("->Trying to erase the message at the slave node ...");
         EraseKey ek = new EraseKey(glob, oid);
         ek.setDomain(domain);
         EraseQos eq = new EraseQos(glob);
         bilboCon.erase(ek.toXml(), eq.toXml());

         // Check if erased ...
         gk = new GetKey(glob, oid);
         msgs = heronCon.get(gk.toXml(), null);
         assertTrue("Invalid msgs returned", msgs != null);
View Full Code Here

Examples of org.xmlBlaster.client.key.EraseKey

         if (con != null && con.isConnected()) {
            try {
               EraseQos eq = new EraseQos(glob);

               EraseKey ek = new EraseKey(glob, "HelloWorld6");
               con.erase(ek, eq);

               ek = new EraseKey(glob, "Banking");
               EraseReturnQos[] er = con.erase(ek, eq);
               if (er.length > 0)
                  log.info("Eased topic '" + er[0].getKeyOid() + "'");

               // Wait on message erase events
View Full Code Here

Examples of org.xmlBlaster.client.key.EraseKey

         if (con != null) {
            if (con.isConnected()) {
               try {
                  EraseQos eq = new EraseQos(glob);

                  EraseKey ek = new EraseKey(glob, "HelloWorld4");
                  con.erase(ek, eq);
                 
                  ek = new EraseKey(glob, "Banking");
                  con.erase(ek, eq);

                  // Wait on message erase events
                  try { Thread.sleep(1000); } catch( InterruptedException i) {}
               }
View Full Code Here

Examples of org.xmlBlaster.client.key.EraseKey

      if (con == null) {
         if (log.isLoggable(Level.FINE)) log.fine("forwardErase - Nothing to forward");
         return null;
      }

      return con.erase(new EraseKey(glob, xmlKey), new EraseQos(glob, eraseQos.getData()));
   }
View Full Code Here

Examples of org.xmlBlaster.client.key.EraseKey

      }
   }

   /** JMX */
   public final String eraseTopic() throws XmlBlasterException {
      EraseKey ek = new EraseKey(serverScope, uniqueKey);
      EraseQos eq = new EraseQos(serverScope);
      String[] eraseArr = this.requestBroker.erase(
                    this.requestBroker.getInternalSessionInfo(),
                    ek.getData(),
                    new EraseQosServer(this.serverScope, eq.getData()));
      if (eraseArr.length == 1) {
         log.info(ME+": Erased topic '" + getId() + "' due to administrative request");
         return "Erased topic '" + getId() + "'";
      }
View Full Code Here

Examples of org.xmlBlaster.client.key.EraseKey

   /**
    */
   protected void tearDown() {
      if (con2 != null) {
         try {
            EraseKey ek = new EraseKey(glob, oid);
            EraseQos eq = new EraseQos(glob);
            con2.erase(ek.toXml(), eq.toXml());
         } catch (XmlBlasterException e) {
            log.severe(e.toString());
         }

         con2.disconnect(null);
View Full Code Here

Examples of org.xmlBlaster.client.key.EraseKey

    * Erase the message.
    */
   private void doErase(I_XmlBlasterAccess con) {
      if (log.isLoggable(Level.FINE)) log.fine("Erasing ...");
      try {
         EraseKey eraseKey = new EraseKey(con.getGlobal(), this.oid);
         EraseQos eraseQos = new EraseQos(con.getGlobal());
         eraseQos.setForceDestroy(true);
         EraseReturnQos[] arr = con.erase(eraseKey, eraseQos);
      }
      catch(XmlBlasterException e) {
View Full Code Here

Examples of org.xmlBlaster.client.key.EraseKey

    * Erase the message.
    */
   private void doErase(I_XmlBlasterAccess con) {
      if (log.isLoggable(Level.FINE)) log.fine("Erasing ...");
      try {
         EraseKey eraseKey = new EraseKey(con.getGlobal(), this.oid);
         EraseQos eraseQos = new EraseQos(con.getGlobal());
         eraseQos.setForceDestroy(true);
         EraseReturnQos[] arr = con.erase(eraseKey, eraseQos);
      }
      catch(XmlBlasterException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.