Examples of Protocol


Examples of betsy.bpel.virtual.common.Protocol

public class CommunicationTest {

    @Test
    public void testCommunication() throws Exception {
        Protocol protocol = new Protocol() {
            @Override
            public LogFilesResponse collectLogFilesOperation(LogFilesRequest request) throws CommunicationException {
                return new LogFilesResponse(new LinkedList<>());
            }
View Full Code Here

Examples of cascading.lingual.catalog.Protocol

  @Override
  protected boolean performRename( PlatformBroker platformBroker )
    {
    SchemaCatalog catalog = platformBroker.getSchemeCatalog();
    String schemaName = getOptions().getSchemaName();
    Protocol oldProtocol = getSource( platformBroker );
    Protocol newProtocol = Protocol.getProtocol( getOptions().getRenameName() );

    if( oldProtocol == null )
      return false;

    return catalog.renameProtocol( schemaName, oldProtocol, newProtocol );
View Full Code Here

Examples of com.alibaba.dubbo.rpc.Protocol

    public static void destroyAll() {
        AbstractRegistryFactory.destroyAll();
        ExtensionLoader<Protocol> loader = ExtensionLoader.getExtensionLoader(Protocol.class);
        for (String protocolName : loader.getLoadedExtensions()) {
            try {
                Protocol protocol = loader.getLoadedExtension(protocolName);
                if (protocol != null) {
                    protocol.destroy();
                }
            } catch (Throwable t) {
                logger.warn(t.getMessage(), t);
            }
        }
View Full Code Here

Examples of com.amazonaws.Protocol

    }

    private ClientConfiguration createConfiguration(boolean isSecure) {
        ClientConfiguration config = new ClientConfiguration();
        config.setUserAgent(USER_AGENT);
        Protocol protocol = isSecure ? Protocol.HTTPS : Protocol.HTTP;
        config.setProtocol(protocol);
        return config;
    }
View Full Code Here

Examples of com.betfair.cougar.api.export.Protocol

            bindServiceContextRoot(spec.getValue(), commandProcessor);
        }
    }

    private void bindServiceContextRoot(JettyHandlerSpecification spec, HttpCommandProcessor commandProcessor) {
        Protocol serviceProtocol = spec.getProtocol();
        String jettyContextRoot = spec.getJettyContextRoot();
        if (jettyContextRoot.endsWith("/")) {
            jettyContextRoot = jettyContextRoot.substring(0, jettyContextRoot.length()-1);
        }
View Full Code Here

Examples of com.bj58.spat.gaea.protocol.sfp.v1.Protocol

public class ProtocolHelperTest {

  @Test
  public void testFromBytes() throws Exception {
    RequestProtocol rp = new RequestProtocol("lookup", "methodname", null);
    Protocol p = new Protocol(101001, (byte)1, SDPType.Request, rp);
   
    byte[] buffer = p.toBytes();
   
    Protocol p2 = (Protocol)ProtocolHelper.fromBytes(buffer);
    Assert.assertEquals(rp.getLookup(), ((RequestProtocol)p2.getSdpEntity()).getLookup());
    Assert.assertEquals(rp.getMethodName(), ((RequestProtocol)p2.getSdpEntity()).getMethodName());
  }
View Full Code Here

Examples of com.comphenix.protocol.PacketType.Protocol

      clientMaps = temp;
    }
   
    for (int i = 0; i < protocols.length; i++) {
      Enum<?> enumProtocol = (Enum<?>) protocols[i];
      Protocol equivalent = Protocol.fromVanilla(enumProtocol);
     
      // Associate known types
      associatePackets(result, serverMaps.get(i), equivalent, Sender.SERVER);
      associatePackets(result, clientMaps.get(i), equivalent, Sender.CLIENT);
    }
View Full Code Here

Examples of com.compomics.util.pride.prideobjects.Protocol

     * @param evt
     */
    private void editProtocolJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editProtocolJButtonActionPerformed
        // get the selected protcol details
        String selectedProtocol = (String) protocolJComboBox.getSelectedItem();
        Protocol tempProtocol = prideObjectsFactory.getProtocols().get(selectedProtocol);
        if (tempProtocol == null) {
            tempProtocol = new Protocol("New protocol", null);
        }

        new NewProtocolDialog(this, true, tempProtocol);
    }//GEN-LAST:event_editProtocolJButtonActionPerformed
View Full Code Here

Examples of com.digitalpebble.storm.crawler.protocol.Protocol

                        + ", spinWaiting=" + spinWaiting + ", queueID="
                        + fit.queueID);

                try {

                    Protocol protocol = protocolFactory.getProtocol(new URL(
                            fit.url));

                    ProtocolResponse response = protocol
                            .getProtocolOutput(fit.url);

                    LOG.info("[Fetcher #" + taskIndex + "] Fetched " + fit.url
                            + " with status " + response.getStatusCode());
View Full Code Here

Examples of com.esri.gpt.control.webharvest.protocol.Protocol

      // Assembling records for each id
      record = new HrRecord();
      record.setHostUrl(rs.getString(2));

      String protocolDef = rs.getString(3);
      Protocol protocol = getRequestContext().getApplicationConfiguration()
          .getProtocolFactories().parseProtocol(protocolDef);
      try {
        record.setProtocol(protocol);
      } catch (IllegalArgumentException ex) {
        record.setProtocol(new HarvestProtocolNone());
      }
      record.setName(rs.getString(4));
      record.setUuid(rs.getString(5));
      LOG
          .info("Name = " + record.getName() + "protocol "
              + protocol.toString());
     
      // Attempting to marshall db with ids that have been given
      String id = Val.chkStr(rs.getString("ID"));
      String idValue = Val.chkStr(idFields.get(id));
      String docuuid = Val.chkStr(rs.getString("DOCUUID"));
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.