Examples of connect()


Examples of org.eclipse.ecf.presence.bot.impl.IMBot.connect()

    for (Iterator it = bots.values().iterator(); it.hasNext();) {
      IIMBotEntry entry = (IIMBotEntry) it.next();
      // Create default im bot
      IMBot bot = new IMBot(entry);
      // connect
      bot.connect();
    }

    while (true) {
      try {
        Thread.sleep(100);
View Full Code Here

Examples of org.eclipse.ecf.presence.chatroom.IChatRoomContainer.connect()

    final IChatRoomInvitationSender invitationSender = chat0.getInvitationSender();
    assertNotNull(invitationSender);
    final IChatRoomInfo roomInfo = chat0.getChatRoomInfo(CHAT_ROOM_NAME);
    if (roomInfo == null) return;
    final IChatRoomContainer chatRoomContainer = roomInfo.createChatRoomContainer();
    chatRoomContainer.connect(roomInfo.getRoomID(), null);
    invitationSender.sendInvitation(roomInfo.getRoomID(), getClient(1).getConnectedID(), null, "this is an invitation");
    try {
      synchronized (synchObject) {
        synchObject.wait(WAITTIME);
      }
View Full Code Here

Examples of org.eclipse.ecf.provider.dnssd.DnsSdDiscoveryAdvertiser.connect()

   * for that domain and the underlying ddns call fails
   * @throws ContainerConnectException
   */
  public void testRegisterServiceWithoutHostKey() throws ContainerConnectException {
    final DnsSdDiscoveryAdvertiser advertiser = new DnsSdDiscoveryAdvertiser();
    advertiser.connect(null, null);
   
    try {
      advertiser.registerService(serviceInfo);
    } catch(ECFRuntimeException e) {
      advertiser.disconnect();
View Full Code Here

Examples of org.eclipse.egit.core.test.TestRepository.connect()

  @Before
  public void setUp() throws Exception {
    super.setUp();

    TestRepository testRepo = new TestRepository(gitDir);
    testRepo.connect(project.project);
    repo = RepositoryMapping.getMapping(project.project).getRepository();

    // make initial commit
    new Git(repo).commit().setAuthor("JUnit", "junit@jgit.org")
        .setMessage("Initall commit").call();
View Full Code Here

Examples of org.eclipse.jdt.internal.launching.SocketAttachConnector.connect()

    args.put(KEY_HOSTNAME, host);
    args.put(KEY_PORT, String.valueOf(port));

    SocketAttachConnector connector = new SocketAttachConnector();
    try {
      connector.connect(args, monitor, launch);
    } catch (CoreException e) {
      throw new RuntimeException(
          "Debug VM not available at " + host + ":" + port + ". " +
          "Check hostname and port number.");
    }
View Full Code Here

Examples of org.eclipse.jdt.launching.IVMConnector.connect()

    if (host != null && port != null) {
      argMap.put("hostname", host); //$NON-NLS-1$
      argMap.put("port", port); //$NON-NLS-1$

      setSourceLocator(launch);
      connector.connect(argMap, monitor, launch);
      addDebuggerConnectionListener(configuration.getAttribute(DEBUGGER_CONNECTION_ID, (String) null), launch);
    }
    else {
      CloudFoundryPlugin
          .logError("Failed to launch debug configuration. IP and host for application instance cannot be resolved."); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jdt.ui.IWorkingCopyManager.connect()

   */
  public void run(IAction action) {
    IWorkingCopyManager manager = JavaUI.getWorkingCopyManager();
    IEditorInput editorInput = editor.getEditorInput();
    try {
      manager.connect(editorInput);
      ICompilationUnit workingCopy = manager.getWorkingCopy(editorInput);

      CreateDialog dialog = new CreateDialog(new Shell(), new BuilderGenerator());
      dialog.show(workingCopy);

View Full Code Here

Examples of org.eclipse.jetty.rhttp.client.JettyClient.connect()

            httpClient.start();
            try
            {
                String targetId = "1";
                final RHTTPClient client1 = new JettyClient(httpClient, address, server.getContext().getContextPath()+GatewayServer.DFT_CONNECT_PATH, targetId);
                client1.connect();
                try
                {
                    final RHTTPClient client2 = new JettyClient(httpClient, address, server.getContext().getContextPath()+GatewayServer.DFT_CONNECT_PATH, targetId);
                    try
                    {
View Full Code Here

Examples of org.eclipse.jetty.rhttp.client.RHTTPClient.connect()

            httpClient.start();
            try
            {
                String targetId = "1";
                final RHTTPClient client1 = new JettyClient(httpClient, address, server.getContext().getContextPath()+GatewayServer.DFT_CONNECT_PATH, targetId);
                client1.connect();
                try
                {
                    final RHTTPClient client2 = new JettyClient(httpClient, address, server.getContext().getContextPath()+GatewayServer.DFT_CONNECT_PATH, targetId);
                    try
                    {
View Full Code Here

Examples of org.eclipse.jetty.spdy.client.SPDYClient.connect()

        {
            Session session = serverSessions.get(host);
            if (session == null)
            {
                SPDYClient client = factory.newSPDYClient(version);
                session = client.connect(address, sessionListener);
                if (LOG.isDebugEnabled())
                    LOG.debug("Proxy session connected to {}", address);
                Session existing = serverSessions.putIfAbsent(host, session);
                if (existing != null)
                {
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.