Examples of stop()


Examples of org.apache.openjpa.datacache.DataCacheScheduler.stop()

        Thread thread = new Thread(scheduler);
        thread.setDaemon(true);
        thread.start();
        // test that it did not run yet...
        Thread.currentThread().sleep(70 * 1000); // 70 seconds
        scheduler.stop();
//        assertEquals(2, validCache.clearCount);
        assertTrue("Wrong invocation count: " + validCache.clearCount,
            validCache.clearCount == 1 || validCache.clearCount == 2);
        assertEquals(0, invalidCache.clearCount);
    }
View Full Code Here

Examples of org.apache.openjpa.persistence.event.common.apps.Duration.stop()

        for (int i = 0; i < persistables.length; i++) {
            pm.remove(persistables[i]);
        }
        endTx(pm);

        timeToAMD.stop();
        return timeToAMD.getDurationAsSeconds();
    }

    static int _fetchGroupSerial = 0;
View Full Code Here

Examples of org.apache.qpid.management.domain.services.QMan.stop()

  public void contextDestroyed(ServletContextEvent event)
  {
    ServletContext context = event.getServletContext();
   
    QMan qman = (QMan) context.getAttribute(Names.APPLICATION_NAME);   
    qman.stop();
   
    context.removeAttribute(Names.APPLICATION_NAME);
 
}
View Full Code Here

Examples of org.apache.qpid.proton.messenger.Messenger.stop()

            for (String body : bodies) {
                msg.setBody(new AmqpValue(body));
                mng.put(msg);
            }
            mng.send();
            mng.stop();
        } catch (Exception e) {
            tracer.log(Level.SEVERE, "proton error", e);
        }
    }
View Full Code Here

Examples of org.apache.qpid.proton.messenger.impl.MessengerImpl.stop()

            for (String body : bodies) {
                msg.setBody(new AmqpValue(body));
                mng.put(msg);
            }
            mng.send();
            mng.stop();
        } catch (Exception e) {
            tracer.log(Level.SEVERE, "proton error", e);
        }
    }
View Full Code Here

Examples of org.apache.qpid.ra.inflow.QpidActivation.stop()

      }

      QpidActivation activation = _activations.remove(spec);
      if (activation != null)
      {
         activation.stop();
      }
   }

   /**
    * Get XA resources
View Full Code Here

Examples of org.apache.qpid.server.management.plugin.ManagementPlugin.stop()

                    managementPlugin.start();
                }
                catch(Exception e)
                {
                    _logger.error("Management plugin " + managementPlugin.getClass().getSimpleName() + " failed to start normally, stopping it now", e);
                    managementPlugin.stop();
                    throw e;
                }

                _managmentInstanceList.add(managementPlugin);
            }
View Full Code Here

Examples of org.apache.qpid.server.subscription.Subscription_0_10.stop()

        {
            exception(session, stop, ExecutionErrorCode.NOT_FOUND, "not-found: destination '"+destination+"'");
        }
        else
        {
            sub.stop();
        }

    }

    @Override
View Full Code Here

Examples of org.apache.qpid.server.virtualhost.berkeleydb.BDBHAVirtualHostImpl.stop()

        Map<String, Object> virtualHostAttributes = new HashMap<String,Object>();
        virtualHostAttributes.put(BDBHAVirtualHost.LOCAL_TRANSACTION_SYNCHRONIZATION_POLICY, "WRITE_NO_SYNC");
        virtualHostAttributes.put(BDBHAVirtualHost.REMOTE_TRANSACTION_SYNCHRONIZATION_POLICY, "SYNC");
        virtualHost.setAttributes(virtualHostAttributes);

        virtualHost.stop();
        virtualHost.start();

        assertEquals("Unexpected local transaction synchronization policy", "WRITE_NO_SYNC", virtualHost.getLocalTransactionSynchronizationPolicy());
        assertEquals("Unexpected remote transaction synchronization policy", "SYNC", virtualHost.getRemoteTransactionSynchronizationPolicy());
        assertFalse("CoalescingSync is not OFF", virtualHost.isCoalescingSync());
View Full Code Here

Examples of org.apache.servicemix.jbi.deployer.Component.stop()

        Component component = deployer.getComponent(name);
        if (component == null) {
            throw ManagementSupport.failure("stop", "Component does not exist: " + name);
        }
        try {
            component.stop();
            return ManagementSupport.createSuccessMessage("Component stopped", name);
        } catch (Throwable e) {
            throw ManagementSupport.failure("stopComponent", name, 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.