Package org.jitterbit.integration.client.server

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


    public String getServerName() {
        return loginConfiguration.getServerName();
    }

    public ServerInfo getServerInfo() {
        return new ServerInfo(getServerId(), getServerName());
    }
View Full Code Here


        }
    }

    private void appendServerVersionToDetails(StringBuilder details) {
        details.append(KongaIoUtils.LINE_BREAK).append("Server version: ");
        ServerInfo info = connectionService.getCurrentServerInfo();
        if (info == null) {
            details.append("[Not connected]");
        } else {
            details.append(info.getVersion());
        }
    }
View Full Code Here

        details.append(SystemUtils.OS_NAME);
        details.append(" - Java ").append(SystemUtils.JAVA_VERSION);
    }

    private void appendServerPlatormInfoToDetails(StringBuilder details) {
        ServerInfo info = connectionService.getCurrentServerInfo();
        if (info != null) {
            details.append(KongaIoUtils.LINE_BREAK).append("Server platform: ");
            ServerPlatform platform = info.getPlatform();
            details.append(platform.getOS());
            details.append(KongaIoUtils.LINE_BREAK).append(platform.getSystemInfo());
        }
    }
View Full Code Here

        loginService.addLoginListener(new LoginListener.Adapter() {

            @Override
            public void postLogin(LoginEvent evt) {
                LoginInfo loginInfo = evt.getInfo();
                ServerInfo serverInfo = loginInfo.getServerInfo();
                DriverCacheRefresher cacheRefresher = new DriverCacheRefresher(cache, serverInfo);
                cacheRefresher.start();
            }
        });
    }
View Full Code Here

    private final DataFile data;

    public LoadSourceDataResultImpl(WsLoadSourceResult wsResult, ServerGuid serverId, String serverName,
                    TransformationId txId) {
        KongaGuid guid = KongaGuid.createGuid(wsResult.getGuid());
        ServerInfo serverInfo = new ServerInfo(serverId, serverName);
        id = new SourceDataIdentifier(serverInfo, guid);
        this.txId = txId;
        data = getDataFile(wsResult);
    }
View Full Code Here

    public void requestFocus() {
        viewer.requestFocus();
    }

    private void layoutViewer(KnownServer server) {
        ServerInfo info = server.getServerInfo();
        viewer.addRow(PackageResources.Viewer.NAME, info.getName(), ClientIcons.SERVER_16);
        viewer.addRow(PackageResources.Viewer.VERSION, info.getVersion());
        viewer.addRow(PackageResources.Viewer.ID, info.getGuid());
        viewer.addRow(PackageResources.Viewer.OS, info.getPlatform().getOS());
        viewer.addRow(PackageResources.Viewer.FIRST_LOGIN, server.getDateOfFirstLogin());
        viewer.addRow(PackageResources.Viewer.LATEST_LOGIN, server.getDateOfLatestLogin());
        viewer.addRow(PackageResources.Viewer.LATEST_USER, server.getLatestUser(), ClientIcons.USER_16);
    }
View Full Code Here

            if( dbInfo == null ) {
                // The callback has already been notified.
                return;
            }
            // Call the web service.
            ServerInfo serverInfo = getConfiguration().getServerInfo();
            WsDatabaseDriverInfo driverInfo = dbInfo.getDrivers(userName, password);
            List<OdbcDriverDescriptor> drivers = translateRetrievedDriverInfo(driverInfo);
            callback.driversRetrieved(drivers, serverInfo);
        } catch (RemoteException e) {
            callback.caught(convert(e));
View Full Code Here

              for( CWsdlFile existingDep : existingDependencies ) {
                ServerFile file = ServerFile.fromPathAndHash(existingDep.getWsdlLocator(), existingDep.getMD5());
                existingDependenciesList.add(file);
              }
            }
      ServerInfo server = new ServerInfo(serverId, serverName);
      ServerFile uploadedFile = ServerFile.fromPathAndCompressedContents(wsdlLocator, md5, compressedBase64contents);
      ServerFileUploadResult result = new ServerFileUploadResult(server, uploadedFile, missingDependencies, existingDependenciesList);
      callback.fileWasUploaded(result);
    }
        catch (RemoteException e) {
View Full Code Here

            org.jitterbit.integration.server.implementation.webservice.interchange.webservice.client.WebServiceInfoProvider infoProvider = getProvider(callback);
            if( infoProvider == null ) {
                // The callback has already been notified.
                return;
            }
      ServerInfo serverInfo = getConfiguration().getServerInfo();
      CWsdlFiles cwsdlFiles = infoProvider.getWsdlFiles(user, password);

      if ( Thread.interrupted() ) {
        callback.cancelled();
        return;
View Full Code Here

    try {
            WsKeyValuePairs keyValues = createKeyValuePairsToSendToServer();
            AuthenticateResult ws_res = locator.getkonga_authenticate().loginWithVersionAndKeyValues(
                            userName, password, version, keyValues);
            AuthenticateResultImpl result = new AuthenticateResultImpl(ws_res);
            keyValuesHandler.handle(new ServerInfo(result.serverGuid(), credentials.getServer()), result.keyValues());
            return result;
    } catch (RemoteException e) {
            // XXX: This is to deal with the backwards compatibility issue introduced
            // in version 1.2: From this version on the client sends its version
            // to the server on login. If the user tries to login to a pre-1.2 server,
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.