Examples of MksServerInfo


Examples of org.intellij.vcs.mks.model.MksServerInfo

            final StringTokenizer tok2 = new StringTokenizer(tok.nextToken(), ":");
            if (tok2.countTokens() != 2) {
                throw new IllegalArgumentException(
                        "bad server list, it has to be a comma separated list of <host:port>, example \"myServer1:7001,myServer2:7001\"");
            }
            ret.add(new MksServerInfo("anon", tok2.nextToken(), tok2.nextToken()));
        }
        return ret;

    }
View Full Code Here

Examples of org.intellij.vcs.mks.model.MksServerInfo

    }

    public static void main(final String[] args) {
        final JFrame frame = new JFrame("MksConfigurableForm");
        final MksConfiguration config = new MksConfiguration();
        config.serverIsSiServer(new MksServerInfo("anon", "ignoredServer", "7001"), false);
        frame.setContentPane(new MksConfigurableForm(config).mainPanel);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setVisible(true);
    }
View Full Code Here

Examples of org.intellij.vcs.mks.model.MksServerInfo

      int refreshedSandbox = 0;
      final Map<MksServerInfo, Map<String, MksChangePackage>> changePackagesPerServer =
          getChangePackages(progress, errors, servers);
      updateChangeListNames(changePackagesPerServer);
      for (MksSandboxInfo sandbox : sandboxesToRefresh) {
        @Nullable MksServerInfo sandboxServer = serversByHostAndPort.get(sandbox.hostAndPort);
        if (sandboxServer == null) {
          logger.warn("sandbox [" + sandbox.sandboxPath + "] bound to unknown or not connected server["
              + sandbox.hostAndPort + "], skipping");
          continue;
        }
View Full Code Here

Examples of org.intellij.vcs.mks.model.MksServerInfo

import java.util.Set;

public class ListChangePackagesTest extends AbstractAPITest {

    public void testCommand() {
        ListChangePackagesAPICommand command = new ListChangePackagesAPICommand(new ArrayList<VcsException>(), getMksCLIConfiguration(), new MksServerInfo(mksuser, mkshost, mksport))
        {
            @Override
            protected MKSAPIHelper getAPIHelper() {
                return apiHelper;
            }
View Full Code Here

Examples of org.intellij.vcs.mks.model.MksServerInfo

        } catch (IOException e) {
            //noinspection ThrowableInstanceNeverThrown
            errors.add(new VcsException(e));
        }
        if (exitValue == 0) {
            server = new MksServerInfo(user, host, port);
        }
    }
View Full Code Here

Examples of org.intellij.vcs.mks.model.MksServerInfo

        Matcher matcher = pattern.matcher(line);
        if (matcher.matches()) {
          String user = matcher.group(1);
          String host = matcher.group(2);
          String port = matcher.group(3);
          tempServers.add(new MksServerInfo(user, host, port));
        } else {
          LOGGER.error("unexpected command output {" + line + "}, expected [user@host:port]");
          //noinspection ThrowableInstanceNeverThrown
          errors.add(new VcsException("ListServers : unexpected line structure " + line));
        }
View Full Code Here

Examples of org.intellij.vcs.mks.model.MksServerInfo

                final WorkItem workItem = workItems.next();

                String username = workItem.getField("username").getValueAsString();
                String hostname = workItem.getField("hostname").getValueAsString();
                String port = workItem.getField("portnumber").getValueAsString();
                MksServerInfo server = new MksServerInfo(username, hostname, port);
                tempServers.add(server);
            }
        }  catch (APIException e) {
            errors.add(new VcsException(e));
        } finally {
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.