Java 类com.intellij.util.io.socketConnection.ConnectionStatus 实例源码

项目:intellij-ce-playground    文件:ServerSocketConnectionImpl.java   
private void waitForConnection() throws IOException {
  addThreadToInterrupt();
  try {
    setStatus(ConnectionStatus.WAITING_FOR_CONNECTION, null);
    LOG.debug("waiting for connection on port " + getPort());

    final Socket socket = myServerSocket.accept();
    try {
      attachToSocket(socket);
    }
    finally {
      socket.close();
    }
  }
  finally {
    myServerSocket.close();
    removeThreadToInterrupt();
  }
}
项目:tools-idea    文件:ServerSocketConnectionImpl.java   
private void waitForConnection() throws IOException {
  addThreadToInterrupt();
  try {
    setStatus(ConnectionStatus.WAITING_FOR_CONNECTION, null);
    LOG.debug("waiting for connection on port " + getPort());

    final Socket socket = myServerSocket.accept();
    try {
      attachToSocket(socket);
    }
    finally {
      socket.close();
    }
  }
  finally {
    myServerSocket.close();
    removeThreadToInterrupt();
  }
}
项目:consulo    文件:ServerSocketConnectionImpl.java   
private void waitForConnection() throws IOException {
  addThreadToInterrupt();
  try {
    setStatus(ConnectionStatus.WAITING_FOR_CONNECTION, null);
    LOG.debug("waiting for connection on port " + getPort());

    final Socket socket = myServerSocket.accept();
    try {
      attachToSocket(socket);
    }
    finally {
      socket.close();
    }
  }
  finally {
    myServerSocket.close();
    removeThreadToInterrupt();
  }
}
项目:intellij-ce-playground    文件:ServerSocketConnectionImpl.java   
public void open() throws IOException {
  myServerSocket = createSocket();
  setPort(myServerSocket.getLocalPort());
  ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
    public void run() {
      try {
        waitForConnection();
      }
      catch (IOException e) {
        LOG.info(e);
        setStatus(ConnectionStatus.CONNECTION_FAILED, "Connection failed: " + e.getMessage());
      }
    }
  });
}
项目:tools-idea    文件:ServerSocketConnectionImpl.java   
public void open() throws IOException {
  myServerSocket = createSocket();
  setPort(myServerSocket.getLocalPort());
  ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
    public void run() {
      try {
        waitForConnection();
      }
      catch (IOException e) {
        LOG.info(e);
        setStatus(ConnectionStatus.CONNECTION_FAILED, "Connection failed: " + e.getMessage());
      }
    }
  });
}
项目:consulo    文件:ServerSocketConnectionImpl.java   
public void open() throws IOException {
  myServerSocket = createSocket();
  setPort(myServerSocket.getLocalPort());
  ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
    public void run() {
      try {
        waitForConnection();
      }
      catch (IOException e) {
        LOG.info(e);
        setStatus(ConnectionStatus.CONNECTION_FAILED, "Connection failed: " + e.getMessage());
      }
    }
  });
}