Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
264,200 | void (final @NotNull DeploymentTask<D> task, final java.util.function.@NotNull Consumer<? super String> onDeploymentStarted) { connectIfNeeded(new ConnectionCallbackBase<>() { @Override public void connected(@NotNull ServerRuntimeInstance<D> instance) { LocalDeploymentImpl<?> deployment = new LocalDeploymentImpl<>(inst... | deploy |
264,201 | void (@NotNull ServerRuntimeInstance<D> instance) { LocalDeploymentImpl<?> deployment = new LocalDeploymentImpl<>(instance, ServerConnectionImpl.this, DeploymentStatus.DEPLOYING, null, null, task); String deploymentName = deployment.getName(); myAllDeployments.addLocal(deployment); DeploymentLogManagerImpl logManager =... | connected |
264,202 | DeploymentLogManager (@NotNull Project project, @NotNull Deployment deployment) { LogManagersForProject forProject = myPerProjectLogManagers.computeIfAbsent(project, LogManagersForProject::new); return forProject.findOrCreateManager(deployment); } | getOrCreateLogManager |
264,203 | void (final @NotNull Runnable onFinished) { connectIfNeeded(new ConnectionCallbackBase<>() { @Override public void connected(@NotNull ServerRuntimeInstance<D> instance) { computeDeployments(instance, onFinished); } }); } | computeDeployments |
264,204 | void (@NotNull ServerRuntimeInstance<D> instance) { computeDeployments(instance, onFinished); } | connected |
264,205 | void (ServerRuntimeInstance<D> instance, final Runnable onFinished) { instance.computeDeployments(new ServerRuntimeInstance.ComputeDeploymentsCallback() { private final List<DeploymentImpl<?>> myCollectedDeployments = Collections.synchronizedList(new ArrayList<>()); @Override public void addDeployment(@NotNull String d... | computeDeployments |
264,206 | void (@NotNull String deploymentName) { addDeployment(deploymentName, null); } | addDeployment |
264,207 | void (@NotNull String deploymentName, @Nullable DeploymentRuntime deploymentRuntime) { addDeployment(deploymentName, deploymentRuntime, null, null); } | addDeployment |
264,208 | Deployment (@NotNull String name, @Nullable DeploymentRuntime runtime, @Nullable DeploymentStatus status, @Nullable @Nls String statusText) { if (status == null) { status = DeploymentStatus.DEPLOYED; } DeploymentImpl<?> result = myAllDeployments.updateRemoteState(name, runtime, status, statusText); if (result == null) ... | addDeployment |
264,209 | void () { synchronized (myCollectedDeployments) { myAllDeployments.replaceRemotesWith(myCollectedDeployments); } myEventDispatcher.queueDeploymentsChanged(ServerConnectionImpl.this); onFinished.run(); } | succeeded |
264,210 | void (@NotNull String errorMessage) { myAllDeployments.replaceRemotesWith(Collections.emptyList()); myStatusText = CloudBundle.message("ServerConnectionImpl.error.cannot.obtain.deployments", errorMessage); myEventDispatcher.queueConnectionStatusChanged(ServerConnectionImpl.this); myEventDispatcher.queueDeploymentsChang... | errorOccurred |
264,211 | void (@NotNull Deployment deployment, final @Nullable DeploymentRuntime runtime) { String deploymentName = deployment.getName(); final MyDeployments.UndeployTransition undeployInProgress = myAllDeployments.startUndeploy(deploymentName); myEventDispatcher.queueDeploymentsChanged(this); final List<LoggingHandlerImpl> han... | undeploy |
264,212 | void () { logConsumer.consume("'" + deploymentName + "' has been undeployed successfully."); Set<String> namesToDispose = new LinkedHashSet<>(); namesToDispose.add(deploymentName); if (undeployInProgress != null) { undeployInProgress.succeeded(); undeployInProgress.getSubDeployments().forEach(deployment -> namesToDispo... | succeeded |
264,213 | void (@NotNull String errorMessage) { logConsumer.consume("Failed to undeploy '" + deploymentName + "': " + errorMessage); if (undeployInProgress != null) { undeployInProgress.failed(); } myEventDispatcher.queueDeploymentsChanged(ServerConnectionImpl.this); } | errorOccurred |
264,214 | void (@NotNull DeploymentImpl deployment) { disposeAllLogs(deployment.getName()); } | disposeAllLogs |
264,215 | void (@NotNull String deploymentName) { myPerProjectLogManagers.values().forEach(nextForProject -> nextForProject.disposeManager(deploymentName)); } | disposeAllLogs |
264,216 | Collection<Deployment> () { return myAllDeployments.listDeployments(); } | getDeployments |
264,217 | void () { if (myMessageBusConnection == null) { myMessageBusConnection = ApplicationManager.getApplication().getMessageBus().connect(); myMessageBusConnection.subscribe(ProjectCloseListener.TOPIC, new ProjectCloseListener() { @Override public void projectClosed(@NotNull Project project) { onProjectClosed(project); } })... | setupProjectListener |
264,218 | void (@NotNull Project project) { onProjectClosed(project); } | projectClosed |
264,219 | void (final ServerConnector.ConnectionCallback<D> callback) { final ServerRuntimeInstance<D> instance = myRuntimeInstance; if (instance != null) { callback.connected(instance); return; } setStatus(ConnectionStatus.CONNECTING); myConnector.connect(new ServerConnector.ConnectionCallback<>() { @Override public void connec... | connectIfNeeded |
264,220 | void (@NotNull ServerRuntimeInstance<D> instance) { setStatus(ConnectionStatus.CONNECTED); myRuntimeInstance = instance; setupProjectListener(); callback.connected(instance); } | connected |
264,221 | void (@NotNull @Nls String errorMessage) { setStatus(ConnectionStatus.DISCONNECTED, errorMessage); myRuntimeInstance = null; callback.errorOccurred(errorMessage); } | errorOccurred |
264,222 | void (final ConnectionStatus status) { setStatus(status, null); } | setStatus |
264,223 | void (final ConnectionStatus status, @Nls String statusText) { myStatus = status; myStatusText = statusText; myEventDispatcher.queueConnectionStatusChanged(this); } | setStatus |
264,224 | void (@NotNull DeploymentImpl deployment, @Nullable DeploymentRuntime deploymentRuntime, @NotNull DeploymentStatus oldStatus, @NotNull DeploymentStatus newStatus, @Nullable @Nls String statusText) { if (myAllDeployments.updateAnyState(deployment, deploymentRuntime, oldStatus, newStatus, statusText)) { myEventDispatcher... | changeDeploymentState |
264,225 | void (@NotNull Project project) { myPerProjectLogManagers.remove(project); boolean hasChanged = myAllDeployments.removeAllLocalForProject(project); if (hasChanged) { myEventDispatcher.queueDeploymentsChanged(this); } } | onProjectClosed |
264,226 | DeploymentLogManagerImpl (@NotNull Deployment deployment) { return myLogManagers.computeIfAbsent(deployment.getName(), this::newDeploymentLogManager); } | findOrCreateManager |
264,227 | DeploymentLogManagerImpl (String deploymentName) { return new DeploymentLogManagerImpl(myProject, new ChangeListener()); } | newDeploymentLogManager |
264,228 | void (@NotNull String deploymentName) { DeploymentLogManagerImpl manager = myLogManagers.remove(deploymentName); if (manager != null) { manager.disposeLogs(); } } | disposeManager |
264,229 | void () { for (DeploymentLogManagerImpl nextManager : myLogManagers.values()) { nextManager.disposeLogs(); } } | disposeAllLogs |
264,230 | void (@NotNull String errorMessage) { } | errorOccurred |
264,231 | void (@NotNull DeploymentRuntime deploymentRuntime) { myDeployment.changeState(myDeployment.getStatus(), DeploymentStatus.DEPLOYING, null, deploymentRuntime); } | started |
264,232 | Deployment (@NotNull DeploymentRuntime deploymentRuntime) { myLoggingHandler.printlnSystemMessage("'" + myDeploymentName + "' has been deployed successfully."); myDeployment.changeState(DeploymentStatus.DEPLOYING, DeploymentStatus.DEPLOYED, null, deploymentRuntime); myEventDispatcher.queueDeploymentsChanged(ServerConne... | succeeded |
264,233 | void (@NotNull @Nls String errorMessage) { myLoggingHandler.printlnSystemMessage("Failed to deploy '" + myDeploymentName + "': " + errorMessage); myAllDeployments.updateAnyState(myDeployment, null, DeploymentStatus.DEPLOYING, DeploymentStatus.NOT_DEPLOYED, errorMessage); myEventDispatcher.queueDeploymentsChanged(Server... | errorOccurred |
264,234 | void (@NotNull @Nls String errorMessage, @NotNull DeploymentRuntime failedDeployment) { myLoggingHandler.printlnSystemMessage("Failed to deploy '" + myDeploymentName + "': " + errorMessage); myDeployment.changeState(DeploymentStatus.DEPLOYING, DeploymentStatus.NOT_DEPLOYED, errorMessage, failedDeployment); myEventDispa... | errorOccurred |
264,235 | void () { myEventDispatcher.queueDeploymentsChanged(ServerConnectionImpl.this); } | run |
264,236 | void (@NotNull LocalDeploymentImpl<?> deployment) { synchronized (myLock) { myLocalDeployments.put(deployment.getName(), deployment); myCachedAllDeployments = null; } } | addLocal |
264,237 | void (@NotNull Collection<? extends DeploymentImpl> newDeployments) { synchronized (myLock) { myRemoteDeployments.clear(); myCachedAllDeployments = null; for (DeploymentImpl<?> deployment : newDeployments) { myRemoteDeployments.put(deployment.getName(), deployment); } } } | replaceRemotesWith |
264,238 | boolean (@NotNull DeploymentImpl deployment, @Nullable DeploymentRuntime deploymentRuntime, @NotNull DeploymentStatus oldStatus, @NotNull DeploymentStatus newStatus, @Nullable @Nls String statusText) { synchronized (myLock) { return deployment.changeState(oldStatus, newStatus, statusText, deploymentRuntime); } } | updateAnyState |
264,239 | Collection<Deployment> () { synchronized (myLock) { if (myCachedAllDeployments == null) { Collection<Deployment> result = doListDeployments(); myCachedAllDeployments = List.copyOf(result); } return myCachedAllDeployments; } } | listDeployments |
264,240 | Collection<Deployment> () { //assumed myLock Map<Deployment, DeploymentImpl<?>> orderedDeployments = new TreeMap<>(myDeploymentComparator); List<LocalDeploymentImpl<?>> matchedLocalsBefore = new ArrayList<>(); for (LocalDeploymentImpl<?> localDeployment : myLocalDeployments.values()) { if (localDeployment.hasRemoteDelo... | doListDeployments |
264,241 | boolean (@NotNull Project project) { synchronized (myLock) { boolean hasChanged = false; for (Iterator<LocalDeploymentImpl<?>> it = myLocalDeployments.values().iterator(); it.hasNext(); ) { LocalDeploymentImpl<?> nextLocal = it.next(); if (nextLocal.getDeploymentTask().getProject() == project) { it.remove(); hasChanged... | removeAllLocalForProject |
264,242 | List<Deployment> (@NotNull Deployment root) { DeepChildrenCollector collector = new DeepChildrenCollector(root.getRuntime()); synchronized (myLock) { for (LocalDeploymentImpl<?> nextLocal : myLocalDeployments.values()) { collector.visitDeployment(nextLocal); } for (DeploymentImpl<?> nextRemote : myRemoteDeployments.val... | collectDeepChildren |
264,243 | void () { synchronized (myLock) { if (tryChangeToTerminalState(DeploymentStatus.NOT_DEPLOYED, true) || myDeployment.getRuntime() == null) { forgetDeployment(myDeployment); for (Deployment nextImplicitlyUndeployed : mySubDeployments) { if (nextImplicitlyUndeployed != myDeployment) { forgetDeployment(nextImplicitlyUndepl... | succeeded |
264,244 | void () { synchronized (myLock) { tryChangeToTerminalState(DeploymentStatus.DEPLOYED, false); } } | failed |
264,245 | Iterable<Deployment> () { return mySubDeployments; } | getSubDeployments |
264,246 | boolean (DeploymentStatus terminalState, boolean forgetRuntime) { //assumed myLock DeploymentRuntime targetRuntime = forgetRuntime ? null : myDeployment.getRuntime(); return myDeployment.changeState(DeploymentStatus.DEPLOYING, terminalState, null, targetRuntime); } | tryChangeToTerminalState |
264,247 | void (@NotNull Deployment deployment) { synchronized (myLock) { String deploymentName = deployment.getName(); myLocalDeployments.remove(deploymentName); myRemoteDeployments.remove(deploymentName); } } | forgetDeployment |
264,248 | void (@NotNull Deployment deployment) { if (isUnderRootRuntime(deployment.getRuntime())) { myCollectedChildren.add(deployment); } } | visitDeployment |
264,249 | boolean (@Nullable DeploymentRuntime runtime) { if (runtime == null) { return false; } if (runtime == myRootRuntime) { return true; } return mySettledStatuses.computeIfAbsent(runtime, rt -> this.isUnderRootRuntime(rt.getParent())); } | isUnderRootRuntime |
264,250 | List<Deployment> () { return Collections.unmodifiableList(myCollectedChildren); } | getChildDeployments |
264,251 | DeploymentSource () { return mySource; } | getSource |
264,252 | D () { return myConfiguration; } | getConfiguration |
264,253 | Project () { return myProject; } | getProject |
264,254 | boolean () { return myDebugConnector != null; } | isDebugMode |
264,255 | ExecutionEnvironment () { return myExecutionEnvironment; } | getExecutionEnvironment |
264,256 | String () { return myName; } | getName |
264,257 | DeploymentStatus () { return myState.getStatus(); } | getStatus |
264,258 | String () { String statusText = myState.getStatusText(); return statusText != null ? statusText : myState.getStatus().getPresentableText(); } | getStatusText |
264,259 | DeploymentRuntime () { return myState.getRuntime(); } | getRuntime |
264,260 | DeploymentTask<D> () { return myDeploymentTask; } | getDeploymentTask |
264,261 | DeploymentLogManager (@NotNull Project project) { return myConnection.getOrCreateLogManager(project, this); } | getOrCreateLogManager |
264,262 | void () { myConnection.disposeAllLogs(this); } | disposeAllLogs |
264,263 | void (@NotNull final DeploymentStatus status, @Nullable @Nls final String statusText) { myConnection.changeDeploymentState(this, getRuntime(), myState.getStatus(), status, statusText); } | setStatus |
264,264 | DeploymentRuntime () { DeploymentRuntime runtime = getRuntime(); return runtime == null ? null : runtime.getParent(); } | getParentRuntime |
264,265 | boolean (@NotNull DeploymentStatus oldStatus, @NotNull DeploymentStatus newStatus, @Nullable @Nls String statusText, @Nullable DeploymentRuntime runtime) { if (myState.getStatus() == oldStatus) { myState = new DeploymentState(newStatus, statusText, runtime); return true; } return false; } | changeState |
264,266 | String () { return myPresentableName == null ? getName() : myPresentableName; } | getPresentableName |
264,267 | void (@Nls String presentableName) { myPresentableName = presentableName; } | setPresentableName |
264,268 | DeploymentStatus () { return myStatus; } | getStatus |
264,269 | String () { return myStatusText; } | getStatusText |
264,270 | DeploymentRuntime () { return myRuntime; } | getRuntime |
264,271 | void (DeploymentImpl remoteDeployment) { myRemoteDeployment = remoteDeployment; String presentableName = null; if (remoteDeployment != null) { DeploymentRuntime deploymentRuntime = remoteDeployment.getRuntime(); DeploymentTask<D> task = getDeploymentTask(); if (deploymentRuntime != null) { presentableName = myServerIns... | setRemoteDeployment |
264,272 | DeploymentTask<D> () { return Objects.requireNonNull(super.getDeploymentTask()); } | getDeploymentTask |
264,273 | boolean () { return myRemoteDeployment == null || super.getStatus().isTransition(); } | isLocalState |
264,274 | DeploymentStatus () { return isLocalState() ? super.getStatus() : myRemoteDeployment.getStatus(); } | getStatus |
264,275 | String () { return isLocalState() ? super.getStatusText() : myRemoteDeployment.getStatusText(); } | getStatusText |
264,276 | DeploymentRuntime () { return isLocalState() ? null : myRemoteDeployment.getRuntime(); } | getRemoteRuntime |
264,277 | boolean (@NotNull DeploymentStatus oldStatus, @NotNull DeploymentStatus newStatus, @Nullable String statusText, @Nullable DeploymentRuntime runtime) { boolean result = super.changeState(oldStatus, newStatus, statusText, runtime); if (result && myRemoteDeployment != null) { myRemoteDeployment.changeState(myRemoteDeploym... | changeState |
264,278 | boolean () { return myRemoteDeployment != null; } | hasRemoteDeloyment |
264,279 | boolean () { return myClosed; } | isClosed |
264,280 | void () { myClosed = true; } | close |
264,281 | void (@NotNull TerminalListener.TtyResizeHandler resizeHandler) { myResizeHandler = resizeHandler; } | setResizeHandler |
264,282 | TerminalHandlerBase (@NotNull String presentableName, @NotNull Project project, @NotNull InputStream terminalOutput, @NotNull OutputStream terminalInput) { return new ConsoleTerminalHandlerImpl(presentableName, project, terminalOutput, terminalInput); } | createTerminal |
264,283 | boolean () { return false; } | isTtySupported |
264,284 | void () { disposeLogs(); } | dispose |
264,285 | Project () { return myProject; } | getProject |
264,286 | DeploymentLogManagerImpl (boolean mainHandlerVisible) { myMainHandlerVisible = mainHandlerVisible; return this; } | withMainHandlerVisible |
264,287 | boolean () { return myMainHandlerVisible; } | isMainHandlerVisible |
264,288 | LoggingHandlerImpl () { return myMainLoggingHandler; } | getMainLoggingHandler |
264,289 | LoggingHandler (@NotNull String presentableName) { synchronized (myLogsDisposed) { if (myLogsDisposed.get()) { throw new IllegalStateException("Already disposed, can't add " + presentableName); } LoggingHandlerImpl handler = new LoggingHandlerImpl.Colored(presentableName, myProject); addAdditionalLoggingHandler(handler... | addAdditionalLog |
264,290 | void (@NotNull String presentableName) { synchronized (myAdditionalLoggingHandlers) { myAdditionalLoggingHandlers.removeIf(next -> presentableName.equals(next.getPresentableName())); } myChangeListener.run(); } | removeAdditionalLog |
264,291 | LoggingHandler (@NotNull String presentableName) { synchronized (myAdditionalLoggingHandlers) { for (LoggingHandlerBase next : myAdditionalLoggingHandlers) { if (next instanceof LoggingHandler && presentableName.equals(next.getPresentableName())) { return (LoggingHandler)next; } } return addAdditionalLog(presentableNam... | findOrCreateAdditionalLog |
264,292 | TerminalHandler (@NotNull final @Nls String presentableName, InputStream terminalOutput, OutputStream terminalInput) { synchronized (myLogsDisposed) { if (myLogsDisposed.get()) { return null; } TerminalHandlerBase handler = CloudTerminalProvider.getInstance().createTerminal(presentableName, myProject, terminalOutput, t... | addTerminal |
264,293 | boolean () { return CloudTerminalProvider.getInstance().isTtySupported(); } | isTtySupported |
264,294 | void (LoggingHandlerBase loggingHandler) { Disposer.register(myLogsDisposable, loggingHandler); synchronized (myAdditionalLoggingHandlers) { myAdditionalLoggingHandlers.add(loggingHandler); } myChangeListener.run(); } | addAdditionalLoggingHandler |
264,295 | List<LoggingHandlerBase> () { List<LoggingHandlerBase> result; synchronized (myAdditionalLoggingHandlers) { result = new ArrayList<>(myAdditionalLoggingHandlers); } return result; } | getAdditionalLoggingHandlers |
264,296 | void () { synchronized (myLogsDisposed) { if (!myLogsDisposed.getAndSet(true)) { Disposer.dispose(myLogsDisposable); } } } | disposeLogs |
264,297 | void () { } | destroyProcessImpl |
264,298 | void () { } | detachProcessImpl |
264,299 | boolean () { return false; } | detachIsDefault |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.