Package com.esri.gpt.catalog.harvest.protocols

Examples of com.esri.gpt.catalog.harvest.protocols.HarvestProtocolAgp2Agp


      if (title.length() == 0) {
        // if no title, create one using host URL
        if (!(record.getProtocol() instanceof HarvestProtocolAgp2Agp)) {
          title = record.getHostUrl();
        } else {
          HarvestProtocolAgp2Agp p = (HarvestProtocolAgp2Agp)record.getProtocol();
          title = p.getSourceHost() + " -> " + p.getDestinationHost();
        }
        ProtocolInvoker.setLockTitle(record.getProtocol(), false);
      }
      record.setName(title);
    }
View Full Code Here


  @Override
  public IValidator create(HrRecord record) {
    if (record!=null && getProtocolClass().isInstance(record.getProtocol())) {
      String url = record.getHostUrl();
      HarvestProtocolAgp2Agp protocol = (HarvestProtocolAgp2Agp) record.getProtocol();
      return new Agp2AgpValidator(url, protocol);
    }
    return null;
  }
View Full Code Here

*/
public class Agp2AgpRelaxedProtocolFactory extends Agp2AgpProtocolFactory {

  @Override
  public Protocol newProtocol() {
    return new HarvestProtocolAgp2Agp(false);
  }
View Full Code Here

    return HarvestProtocolAgp2Agp.NAME;
  }

  @Override
  public Protocol newProtocol() {
    return new HarvestProtocolAgp2Agp(true);
  }
View Full Code Here

    final ReportBuilder rp = helper.getReportBuilder();

    try {
      Protocol protocol = getExecutionUnit().getRepository().getProtocol();
      if (protocol instanceof HarvestProtocolAgp2Agp) {
        HarvestProtocolAgp2Agp agp2agp = (HarvestProtocolAgp2Agp)protocol;
        AgpSource source = agp2agp.getSource();
        AgpDestination destination = agp2agp.getDestination();
        AgpPush agpPush = new AgpPush(source, destination) {
          private long counter;
         
          @Override
          protected boolean syncItem(AgpItem sourceItem) throws Exception {
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.harvest.protocols.HarvestProtocolAgp2Agp

Copyright © 2018 www.massapicom. 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.