Examples of supports()


Examples of org.hornetq.core.protocol.core.Channel.supports()

                     // What could cause deadlocks
                     entry.connectionExecutor.execute(new Runnable()
                     {
                        public void run()
                        {
                           if (channel0.supports(PacketImpl.CLUSTER_TOPOLOGY_V2))
                           {
                              channel0.send(new ClusterTopologyChangeMessage_V2(uniqueEventID, nodeID, connectorPair, last));
                           }
                           else
                           {

Examples of org.hornetq.core.protocol.core.Channel.supports()

                     // What could cause deadlocks
                     entry.connectionExecutor.execute(new Runnable()
                     {
                        public void run()
                        {
                           if (channel0.supports(PacketImpl.CLUSTER_TOPOLOGY_V2))
                           {
                              channel0.send(new ClusterTopologyChangeMessage_V2(uniqueEventID, nodeID));
                           }
                           else
                           {

Examples of org.hornetq.core.protocol.core.Channel.supports()

                     // What could cause deadlocks
                     entry.connectionExecutor.execute(new Runnable()
                     {
                        public void run()
                        {
                           if (channel0.supports(PacketImpl.CLUSTER_TOPOLOGY_V2))
                           {
                              channel0.send(new ClusterTopologyChangeMessage_V2(uniqueEventID, nodeID, connectorPair, last));
                           }
                           else
                           {

Examples of org.hornetq.core.protocol.core.Channel.supports()

                     // What could cause deadlocks
                     entry.connectionExecutor.execute(new Runnable()
                     {
                        public void run()
                        {
                           if (channel0.supports(PacketImpl.CLUSTER_TOPOLOGY_V2))
                           {
                              channel0.send(new ClusterTopologyChangeMessage_V2(uniqueEventID, nodeID));
                           }
                           else
                           {

Examples of org.jasig.portal.channels.error.error2xml.IThrowableToElement.supports()

        Throwable supportedThrowable
            = supportedThrowable();
       
        Class supportedThrowableClass = supportedThrowable.getClass();
       
        assertTrue(throwableToElement.supports(supportedThrowableClass));
       
        Document dom = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
      
        Element e = throwableToElement.throwableToElement(supportedThrowable, dom);
        assertEquals(dom, e.getOwnerDocument());

Examples of org.jbpm.pvm.internal.type.Variable.supports()

  public void setVariable(String key, Object value) {
    Variable variable = getVariableObject(key);
    // if there is already a variable instance and it doesn't support the current type...
    if ( (variable!=null)
         && (!variable.supports(value))
       ) {
      // delete the old variable instance
      log.debug("variable type change. deleting '"+key+"' from '"+this+"'");
      removeVariable(key);
      variable = null;

Examples of org.jbpm.pvm.type.Variable.supports()

    }

    Variable variable = getVariable(key);
    // if there is already a variable instance and it doesn't support the current type...
    if ( (variable!=null)
         && (!variable.supports(value))
       ) {
      // delete the old variable instance
      log.fine("variable type change. deleting '"+key+"' from '"+this+"'");
      removeVariable(key);
      variable = null;

Examples of org.mokai.Processor.supports()

   * @throws Exception
   */
  @Test
  public void shouldReturnUriIfAtLeastOneAcceptorAccepts() throws Exception {
    Processor p1 = mock(Processor.class);
    when(p1.supports(any(Message.class))).thenReturn(true);

    Acceptor a1 = buildAcceptor(true);
    Acceptor a2 = buildAcceptor(false);

    ConnectorService connectorService = buildConnectorService("test1", p1, a1, a2);

Examples of org.mokai.connector.RoundRobinProcessor.supports()

    RoundRobinProcessor processor = new RoundRobinProcessor()
      .addProcessor(p1)
      .addProcessor(p2);

    Assert.assertTrue(processor.supports(new Message()));
  }

  @Test
  public void shouldNotSupportMessage() throws Exception {
    Processor p1 = mock(Processor.class);

Examples of org.mokai.connector.smpp.SmppConnector.supports()

  @Test
  public void testSupport() throws Exception {
    SmppConnector connector = new SmppConnector();

    Assert.assertFalse(connector.supports(new Message()));
    Assert.assertFalse(connector.supports(new Message().setProperty("to", "")));
    Assert.assertTrue(connector.supports(new Message().setProperty("to", "3")));
    Assert.assertTrue(connector.supports(new Message().setProperty("to", "5730021111111111")));
    Assert.assertFalse(connector.supports(new Message().setProperty("to", "5730021111111111a")));
    Assert.assertFalse(connector.supports(new Message().setProperty("to", "5730021111111111.")));
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.