Examples of publish()


Examples of org.wso2.carbon.cloud.csg.agent.CSGServicePublisher.publish()

     * @param serverName  the serverName to publish
     * @throws CSGException throws in case of an error
     */
    public void publishService(String serviceName, String serverName) throws CSGException {
        CSGServicePublisher servicePublisher = new CSGAgentConfigLayer().getCSGServicePublisher();
        if (servicePublisher.publish(serviceName, serverName)) {
            log.info("The service '" + serviceName + "', published sucessfully");
        } else {
            handleException("Cloud not publish the service");
        }
    }
View Full Code Here

Examples of org.wso2.carbon.event.client.broker.BrokerClient.publish()

       
       
        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMElement ele = fac.createOMElement(new QName("http://wso2.org","foo"));
        ele.setText("hello");
        brokerClient.publish(topic, ele);
       
        Thread.sleep(3000);

    }
View Full Code Here

Examples of org.wso2.carbon.event.core.EventBroker.publish()

                SuperTenantCarbonContext.startTenantFlow();
                int tenantId = SuperTenantCarbonContext.getCurrentContext(PublisherUtils.getConfigurationContext()).getTenantId();
                SuperTenantCarbonContext.getCurrentContext().setTenantId(tenantId);
                SuperTenantCarbonContext.getCurrentContext().getTenantDomain(true);

                eb.publish(message, ActivityPublisherConstants.BAM_REG_PATH);

            } catch (EventBrokerException e) {
                log.error("Can not publish the message ", e);
            } finally {
                SuperTenantCarbonContext.endTenantFlow();
View Full Code Here

Examples of org.xmlBlaster.client.I_XmlBlasterAccess.publish()

               content = "";

            log.info("Publishing '" + key + "'");
            MsgUnit msgUnit = new MsgUnit(glob, key, content.getBytes(), qos);
            try {
               PublishReturnQos prq = xmlBlaster.publish(msgUnit);
               log.fine("Success: Publishing done, returned oid=" + prq.getKeyOid());
            } catch(XmlBlasterException e) {
               log.warning("XmlBlasterException: " + e.getMessage());
            }
         }
View Full Code Here

Examples of org.xmlBlaster.contrib.I_ChangePublisher.publish()

                           String sqlTopic = getStringAttribute(SQL_TOPIC_ATTR, null, description);
                           HashMap map = new HashMap();
                           map.put(STATEMENT_ID_ATTR, statementId);
                           if (ex != null)
                              map.put(ReplicationConstants.EXCEPTION_ATTR, ex.getMessage());
                           momEngine.publish(sqlTopic, response, map);
                        }
                        else
                           log.info("statement '" + sql + "' resulted in response '" + new String(response));
                        if (ex != null) // now that we notified the server we can throw the exception
                           throw ex;
View Full Code Here

Examples of org.xmlBlaster.j2ee.k2.client.BlasterConnection.publish()

         try {
            conn = factory.getConnection();
            String c = "<content>"+i+"</content>";
            String k = "<key oid='"+i+"' contentMime='text/xml'><TestLocalProtocol-AGENT id='"+i+"' type='generic'/></key>";
            log.info("Key: " +k);
            conn.publish(new MsgUnit(k, c.getBytes(), null));
         } catch(XmlBlasterException e) {
            log.warning("XmlBlasterException: " + e.getMessage());
            assertTrue("publish - XmlBlasterException: " + e.getMessage(), false);
         }finally {
           
View Full Code Here

Examples of org.xmlBlaster.test.util.Client.publish()

         boolean consumable = true;
         int session = 1;
         Client pub1 = new Client(this.global, "pub1", responses);
         pub1.init("testConsumableQueue", null, consumable, session);

         pub1.publish("firstMessage");

         Client sub1 = new Client(this.global, "sub1", responses);
         assertEquals("wrong number of initial responses", 0, responses.size());

         synchronized(responses) {
View Full Code Here

Examples of org.zanata.webtrans.server.TranslationWorkspace.publish()

                new EditorClientId(httpSessionId, generateEditorClientNum());
        workspace
                .addEditorClient(httpSessionId, editorClientId, person.getId());
        // Send EnterWorkspace event to clients
        EnterWorkspace event = new EnterWorkspace(editorClientId, person);
        workspace.publish(event);

        HLocale locale =
                localeServiceImpl.getByLocaleId(workspaceId.getLocaleId());
        HProject project =
                projectDAO.getBySlug(workspaceId.getProjectIterationId()
View Full Code Here

Examples of org.zkoss.zk.ui.event.EventQueue.publish()

          map.put("title", "Zksample2 Notification");
          map.put("message", "<br>Hello i'm a notification based on ZK-Gritter.<br><br>Many thanks to gekkio for writting the implementation.");
          map.put("autoClosing", false);
          EventQueue eq;
          eq = EventQueues.lookup("ApplicationEventQueue", EventQueues.APPLICATION, false);
          eq.publish(new Event("APPLICATION_NOTIFICATION", null, map));

          // notification with title + message + image
          map = new HashMap<String, Object>(0);
          map.put("title", "WOW !!!");
          map.put("message",
View Full Code Here

Examples of org.zkoss.zss.engine.RefBook.publish()

  public static void notifyCellChanges(Book book, Set<Ref> all) {
    if (all != null) {
      for(Ref ref : all) {
        final RefSheet refSheet = ref.getOwnerSheet();
        final RefBook refBook = refSheet.getOwnerBook();
        refBook.publish(new SSDataEvent(SSDataEvent.ON_CONTENTS_CHANGE, ref, SSDataEvent.MOVE_NO));
      }
    }
  }
 
  public static void notifySizeChanges(Book book, Set<Ref> all) {
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.