Examples of publish()


Examples of com.netflix.eventbus.spi.EventBus.publish()

            .withEventBus(eventBus)
            .withEventType(String.class)
            .withExpectedCount(1)
            .build();
       
        eventBus.publish(new String("Foo"));
        Assert.assertTrue(bridge.await(3,  TimeUnit.SECONDS));       
        Assert.assertEquals(1, bridge.getConsumeCount());
        Assert.assertEquals(0, bridge.getConsumeErrorCount());
    }  
   
View Full Code Here

Examples of com.peterhi.working.Registry.publish()

  public static void main(String[] args) throws Exception {
    Registry registry = new Registry(22222);
    registry.run();
    AboutMe aboutMe = new AboutMeImpl(registry);
    registry.publish("aboutMe", AboutMe.class, aboutMe);
    Thread.sleep(5000);
    aboutMe.fireCallback("HUGO is the best!");
    Thread.sleep(5000);
    aboutMe.fireCallback("HUGO is the best 2!");
  }
View Full Code Here

Examples of com.restfb.DefaultFacebookClient.publish()

 
  @SuppressWarnings("unused")
  public static void publishScore(String score, String userId) {
    Long realScore = Long.valueOf(score);
    FacebookClient facebookClient = new DefaultFacebookClient(Constants.APP_ACCES_TOKEN);
    Boolean publishScoreResponse = facebookClient.publish(userId +"/scores", Boolean.class,
        Parameter.with("score", realScore.intValue()));
  }

  @SuppressWarnings("unused")
  public static void postScoreToWall(String username, String score) {
View Full Code Here

Examples of com.restfb.FacebookClient.publish()

 
  @SuppressWarnings("unused")
  public static void publishScore(String score, String userId) {
    Long realScore = Long.valueOf(score);
    FacebookClient facebookClient = new DefaultFacebookClient(Constants.APP_ACCES_TOKEN);
    Boolean publishScoreResponse = facebookClient.publish(userId +"/scores", Boolean.class,
        Parameter.with("score", realScore.intValue()));
  }

  @SuppressWarnings("unused")
  public static void postScoreToWall(String username, String score) {
View Full Code Here

Examples of com.socrata.api.SodaImporter.publish()

        //Import a CSV and set the rowIdentifier to be ID
        final DatasetInfo dataset = importer.createViewFromCsv(name, description, CRIMES_CSV_HEADER, "ID");
        TestCase.assertNotNull(dataset);
        TestCase.assertNotNull(dataset.getId());
        importer.publish(dataset.getId());

        try {

            //
            //Verify the row we expect is really there.
View Full Code Here

Examples of com.socrata.api.SodaWorkflow.publish()

          privateMetadata.put("contactEmail", contactInfo);

          updater.updateDatasetInfo(datasetInfo);

          if (!StringUtils.isBlank(workingCopyDatasetId)) {
            workflower.publish(datasetInfo.getId());
            workingCopyDatasetId = null;
          }
          noExceptions = true;
        }
      }
View Full Code Here

Examples of com.sun.enterprise.admin.wsmgmt.registry.RegistryAccessObject.publish()

                _logger.fine("WebServiceMgrBackend.publishToRegistry: Web Service " +
                        " Description unspecified. Setting a default description: "+
                        DEFAULT_DESCRIPTION);
                description = DEFAULT_DESCRIPTION;
            }
            published = rao.publish(registryLocations, webServiceName, lbhost,
                    ilbport, ilbsslport, categories, organization, description,
                    wsdl);
            if (published == false){
                String errorMessage =
                        _stringMgr.getString("WebServiceMgrBackend.PublishFailure",
View Full Code Here

Examples of com.sun.enterprise.ee.admin.lbadmin.writer.LbConfigPublisher.publish()

                    lbs.getLoadBalancerByName(lbName);
            if(lb == null)
                throw new MBeanException(new Exception("No Loadbalancer configured by name " + lbName));
            configName = lb.getLbConfigName();
            LbConfigPublisher lbp = new LbConfigPublisher(ctx, configName, lbName);
            lbp.publish();
            _logger.log(Level.INFO, _sMgr.getString(
                    "http_lb_admin.ExportConfig", configName, lbName));
        } catch (Exception e) {
            String msg = _strMgr.getString("LbExportFailed",
                        configName, lbName);
View Full Code Here

Examples of com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish()

    public Endpoint createAndPublishEndpoint(String address,
                                             Object implementor) {
        Endpoint endpoint = new EndpointImpl(
            BindingID.parse(implementor.getClass()),
            implementor);
        endpoint.publish(address);
        return endpoint;
    }

    public EndpointReference readEndpointReference(final Source eprInfoset) {
        // EPR constructors are private, so we need privilege escalation.
View Full Code Here

Examples of com.sun.xml.ws.transport.http.server.EndpointImpl.publish()

    public Endpoint createAndPublishEndpoint(String address,
                                             Object implementor) {
        Endpoint endpoint = new EndpointImpl(
            BindingID.parse(implementor.getClass()),
            implementor);
        endpoint.publish(address);
        return endpoint;
    }

    public Endpoint createEndpoint(String bindingId, Object implementor, WebServiceFeature... features) {
        return new EndpointImpl(
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.