Examples of PublishMethod


Examples of com.socrata.datasync.PublishMethod

        if (!PublishMethod.replace.name().equalsIgnoreCase(action) && job.getPublishViaFTP()) {
            JobStatus status = JobStatus.PUBLISH_ERROR;
            status.setMessage("FTP does not currently support upsert, append or delete");
            return status;
        }
        PublishMethod publishMethod = job.getPublishMethod();
        if (publishMethod != null && !action.equalsIgnoreCase(publishMethod.name())) {
            JobStatus status = JobStatus.PUBLISH_ERROR;
            status.setMessage("Conflicting Publish Methods: " +
                    "The publish method selected was '" + publishMethod.name() +
                    "', but the 'action' option in the control file specifies the publish method as '" + action + ".");
            return status;
        }
        String rowIdentifier = DatasetUtils.getRowIdentifierName(schema);
        if (rowIdentifier == null && PublishMethod.delete.name().equalsIgnoreCase(action)) {
View Full Code Here

Examples of com.socrata.datasync.PublishMethod

        if (job.getSinkSetID().equals("") && !sinkSetIDTextField.isEditable()){
            sinkSetIDTextField.setText(DEFAULT_DESTINATION_SET_ID);
        } else {
            sinkSetIDTextField.setText(job.getSinkSetID());
        }
        PublishMethod jobPublishMethod = job.getPublishMethod();
        publishMethodComboBox.setSelectedItem(jobPublishMethod);
        PublishDataset jobPublishDataset = job.getPublishDataset();
        publishDatasetComboBox.setSelectedItem(jobPublishDataset);

        jobFileLocation = job.getPathToSavedFile();
View Full Code Here

Examples of net.xeoh.plugins.remote.PublishMethod

    final DiscoveredPlugin constructPlugins(final String hostAddress,
                                            final Collection<ExportedPlugin> plugins,
                                            final int pingTime) {
        // If it is, construct required data.
        for (ExportedPlugin p : plugins) {
            final PublishMethod method = PublishMethod.valueOf(p.exportMethod);
            final URI uri = p.exportURI;

            String _newURI = "";

            _newURI += uri.getScheme();
View Full Code Here

Examples of net.xeoh.plugins.remote.PublishMethod

            this.manager = (RemoteManagerEndpoint) in.readObject();

            // read DiscoveredPlugin
            URI uri = (URI) in.readObject();
            int dist = (Integer) in.readObject();
            PublishMethod method = (PublishMethod) in.readObject();
            int numCaps = (Integer) in.readObject();
            List<String> caps = new ArrayList<String>();
            for (int i = 0; i < numCaps; ++i)
                caps.add((String) in.readObject());
View Full Code Here

Examples of net.xeoh.plugins.remote.PublishMethod

                    continue;
                }

                // If it is, construct required data.
                for (final ExportedPlugin p : exportInfo.allExported) {
                    final PublishMethod method = PublishMethod.valueOf(p.exportMethod);
                    final URI uri = p.exportURI;

                    String _newURI = "";

                    _newURI += uri.getScheme();
View Full Code Here

Examples of net.xeoh.plugins.remote.PublishMethod

            final Collection<DiscoveredPlugin> discover = this.remoteDiscovery.discover(Plugin.class);

            this.logger.fine("Found " + discover.size() + " plugins");

            for (final DiscoveredPlugin discoveredPlugin : discover) {
                final PublishMethod method = discoveredPlugin.getPublishMethod();
                final URI publishURI = discoveredPlugin.getPublishURI();

                this.logger.fine("-> Found " + publishURI);

                final boolean a = method.toString().equals(protocol);
                final boolean b = path.equals(publishURI.getPath());

                if (a && b) {
                    this.logger.fine("Returning " + publishURI);
                    return publishURI.toString();
View Full Code Here

Examples of net.xeoh.plugins.remote.PublishMethod

                // If the plugin in not exported, do nothing
                if (!exportInfo.isExported) continue;

                // If it is, construct required data.
                for (ExportedPlugin p : exportInfo.allExported) {
                    final PublishMethod method = PublishMethod.valueOf(p.exportMethod);
                    final URI uri = p.exportURI;

                    String _newURI = "";

                    _newURI += uri.getScheme();
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.