Package org.jitterbit.integration.client.server

Examples of org.jitterbit.integration.client.server.ServerInfo


        public boolean matches(ServerGuid guid) {
            return guid.equals(serverInfo.getGuid());
        }

        public ServerInfo toServerInfo() {
            return new ServerInfo(serverInfo.getGuid(), name, serverInfo.getVersion());
        }
View Full Code Here


        wsBaseResult.setErrors(wsTestResult.getErrors());
        wsBaseResult.setGeneralKeyValues(wsTestResult.getGeneralKeyValues());
        wsBaseResult.setResult(wsTestResult.getIntermediateResult());
        wsBaseResult.setWarnings(wsTestResult.getWarnings());
        TestResult baseImpl = TestResultBuilder.build(wsBaseResult, serverId, serverName, debuggeeId, targetNodePath);
        return new ResultImpl(baseImpl, wsTestResult, new ServerInfo(serverId, serverName));
    }
View Full Code Here

            FileManager fileMgr = getFileManager(callback);
            if (fileMgr == null) {
                // The callback has already been notified.
                return;
            }
            ServerInfo server = getConfiguration().getServerInfo();
            // Call web service.
            CDownloadedFile requestedFile = new CDownloadedFile();
            requestedFile.setPath(path);
            CFileDownloadResult downloadResult = fileMgr.downloadFile(getConfiguration().getUserName(),
                            getConfiguration().getPassword(), requestedFile);
View Full Code Here

        super(server, true);
    }

    @Override
    public String getDisplayName() {
        ServerInfo server = getUserObject();
        return (server != null ? server.getName() : DISCONNECTED);
    }
View Full Code Here

    public String get() {
        return tooltip;
    }
   
    private static String createToolTip(KnownServer server) {
        ServerInfo info = server.getServerInfo();
        Map<Object, Object> pairs = getServerInfoMap(info);
        putPair(pairs, "ServerToolTip.LastConnected", server.getDateOfLatestLogin());
        putPair(pairs, "ServerToolTip.User", server.getLatestUser());
        return KeyValueToolTip.createTable(pairs);
    }
View Full Code Here

            org.jitterbit.integration.server.implementation.webservice.interchange.xml.client.XmlInfoProvider xmlInfo = getXmlInfoProvider(callback);
            if (xmlInfo == null) {
                // The callback has already been notified.
                return;
            }
            ServerInfo serverInfo = getConfiguration().getServerInfo();
            CXmlStructureFile[] structureFiles = xmlInfo.getXmlStructureFiles(getConfiguration().getUserName(),
                            getConfiguration().getPassword());

            Map<String, ServerFileFolder> folderMap = Maps.newHashMap();
            // Build folder structure for the client.
View Full Code Here

            org.jitterbit.integration.server.implementation.webservice.interchange.xml.client.XmlInfoProvider xmlInfo = getXmlInfoProvider(callback);
            if (xmlInfo == null) {
                // The callback has already been notified.
                return;
            }
            ServerInfo server = new ServerInfo(getConfiguration().getServerId(), getConfiguration().getServerName());

            // If this call succeeds we know that the file exists.
            String sEncodedContents = ZipUtils.deflateAndBase64EncodeFileContents(localFilePath);

            File file = new File(localFilePath);
View Full Code Here

            org.jitterbit.integration.server.implementation.webservice.interchange.db.client.JdbcInfoProvider provider = getProvider(callback);
            if (provider == null) {
                // The callback has already been notified.
                return;
            }
            ServerInfo serverInfo = getConfiguration().getServerInfo();
            if (Thread.currentThread().isInterrupted()) {
                callback.cancelled();
                return;
            }
            WsJdbcDriverInfo wsData = provider.getDrivers(user, password);
View Full Code Here

        if (r.nextInt(100) < 1) {
            callback.caught(new IntegrationServerException("This is a mock error."));
        } else {
            try {
                PluginAsXml[] xml = { loadMockPluginDescription() };
                ServerInfo server = getMockServer();
                callback.pluginInfoDownloaded(server, xml);
            } catch (Exception ex) {
                callback.caught(ex);
            }
        }
View Full Code Here

        File file = new File(uri);
        return new DefaultPluginAsXml(KongaIoUtils.read(file));
    }

    private ServerInfo getMockServer() {
        return new ServerInfo(new ServerGuid(UUID.randomUUID().toString()), "Sandbox Server",
                        VersionFactory.newVersion(2, 0, 0));
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.server.ServerInfo

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.