Examples of publish()


Examples of org.nasutekds.server.replication.service.ReplicationBroker.publish()

        AddMsg addMsg =
          new AddMsg(gen.newChangeNumber(), addDn, stringUID(sequence+1),
                     stringUID(sequence),
                     entry.getObjectClassAttribute(),
                     entry.getAttributes(), null );
        broker.publish(addMsg);

        ModifyMsg modifyMsg =
          new ModifyMsg(gen.newChangeNumber(), DN.decode(addDn),
                        generatemods("description", "test"),
                        stringUID(sequence+1));
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.EndpointImpl.publish()

                                                            impl);
            }
            EndpointImpl ep = new EndpointImpl(bus, impl, null, ref);
           
            //doesn't really matter what URL is used here
            ep.publish("http://localhost" + (urlPat.charAt(0) == '/' ? "" : "/") + urlPat);
        } catch (ClassNotFoundException ex) {
            // TODO Auto-generated catch block
            ex.printStackTrace();
        } catch (InstantiationException ex) {
            // TODO Auto-generated catch block
View Full Code Here

Examples of org.openiaml.docs.generation.LoadFileMetrics.FileMetricAccumulator.publish()

        loader.load(factory, root);
        acc.add(loader);
      }
     
      // publish total metrics
      acc.publish(factory, root);
    }
   
    // file metrics of just /src folders in tests
    {
      FileMetricAccumulator acc = new FileMetricAccumulator(".src");
View Full Code Here

Examples of org.pentaho.platform.api.engine.IPentahoPublisher.publish()

    assertEquals(
        Messages.getInstance().getString( "PluginAdapter.USER_REFRESH_PLUGINS" ), asPublisher.getDescription() ); //$NON-NLS-1$
    assertNotSame( "!PluginAdapter.USER_REFRESH_PLUGINS!", asPublisher.getName() ); //$NON-NLS-1$

    String str = asPublisher.publish( session, ILogger.DEBUG );
    // If we see 'Discovered plugin' anywhere in the result string we know that the plugin adapter was able to invoke
    // the plugin manager properly
    assertTrue( "Result string '" + str + "' did not contain 'Discovered plugin'",
        str.indexOf( "Discovered plugin" ) > 0 );
  }
View Full Code Here

Examples of org.pentaho.platform.api.repository.ISolutionRepository.publish()

      ISolutionFile fileToSave = repository.getSolutionFile(fullPath, ISolutionRepository.ACTION_UPDATE);



      if (fileToSave != null || (!repository.resourceExists(filePath) && parentFile != null)) {
        repository.publish(base, '/' + parentPath, action, content.getBytes() , true);
        log.debug(PluginConfig.PLUGIN_NAME + " : Published " + solution + " / " + path + " / " + action );
      } else {
        throw new Exception("Error ocurred while saving query to solution repository");
      }
      return Response.ok().build();
View Full Code Here

Examples of org.pentaho.platform.engine.core.system.GlobalListsPublisher.publish()

    assertEquals( Messages.getInstance().getString( "GlobalListsPublisher.USER_SYSTEM_SETTINGS" ), globals.getName() );
    assertEquals( Messages.getInstance().getString( "GlobalListsPublisher.USER_DESCRIPTION" ), globals.getDescription() );
    assertTrue( !globals.getName().startsWith( "!" ) );
    assertTrue( !globals.getDescription().startsWith( "!" ) );
    assertNotNull( globals.getLogger() );
    String resultMsg = globals.publish( session );
    assertEquals( Messages.getInstance().getString( "GlobalListsPublisher.USER_SYSTEM_SETTINGS_UPDATED" ), resultMsg );

    assertEquals( 0, engine.executeCount );
    PentahoSystem.setSessionStartupActions( actions );
    IParameterProvider globalParams = PentahoSystem.getGlobalParameters();
View Full Code Here

Examples of org.richfaces.application.push.TopicsContext.publish()

        public void notify(Object payload) {
            TopicsContext topicsContext = getBeanReference(TopicsContext.class);
            TopicKeyResolver topicKeyResolver = getBeanReference(TopicKeyResolver.class);
            TopicKey topicKey = topicKeyResolver.resolveTopicKey(pushAnnotation);
            try {
                topicsContext.publish(topicKey, payload);
            } catch (MessageException e) {
                throw new PushCDIMessageException("Message wasn't successfully deliver", e);
            }
        }
View Full Code Here

Examples of org.springframework.data.redis.connection.RedisConnection.publish()

          Thread.sleep(100);
        } catch (InterruptedException e) {
          e.printStackTrace();
        }

        con.publish(expectedChannel.getBytes(), expectedMessage.getBytes());

        try {
          Thread.sleep(100);
        } catch (InterruptedException e) {
          e.printStackTrace();
View Full Code Here

Examples of org.vertx.java.core.eventbus.EventBus.publish()

                eventBus.send(address, body, new CamelReplyHandler(exchange, callback));
                return false;
            } else {
                if (pubSub) {
                    LOG.debug("Publishing to: {} with body: {}", address, body);
                    eventBus.publish(address, body);
                } else {
                    LOG.debug("Sending to: {} with body: {}", address, body);
                    eventBus.send(address, body);
                }
                callback.done(true);
View Full Code Here

Examples of org.wso2.carbon.broker.core.BrokerService.publish()

                if (output.getBrokerName() != null) {
                    BrokerService brokerService = CEPServiceValueHolder.getInstance().getBrokerService();
                    BrokerConfigurationHelper brokerConfigurationHelper = new BrokerConfigurationHelper();
                    BrokerConfiguration brokerConfiguration =
                            brokerConfigurationHelper.getBrokerConfiguration(output.getBrokerName(), tenantId);
                    brokerService.publish(brokerConfiguration,
                            output.getTopic(),
                            omElementToSend);
                }
            }
        } catch (BrokerEventProcessingException 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.