Uses of Class
org.metricshub.winrm.exceptions.WindowsRemoteException
Packages that use WindowsRemoteException
Package
Description
-
Uses of WindowsRemoteException in org.metricshub.winrm
Methods in org.metricshub.winrm that throw WindowsRemoteExceptionModifier and TypeMethodDescriptionstatic StringShellFileCopy.copyLocalFilesToRemote(WindowsRemoteExecutor windowsRemoteExecutor, String command, List<String> localFiles, long timeout) Copy the specified local files to a temporary directory on the remote host through the WinRM command shell, and return the command updated so that each reference to a local file path points to the corresponding remote copy.static voidShellFileCopy.copyLocalFileToRemoteFile(WindowsRemoteExecutor windowsRemoteExecutor, Path localPath, String remoteFile, long timeout) Copy one local file to an explicit path on the remote host through the WinRM command shell, creating the destination directory when needed.static voidWindowsTempShare.createRemoteDirectory(WindowsRemoteExecutor windowsRemoteExecutor, String remotePath, long timeout, long start) Create the remote directory.WindowsRemoteExecutor.executeCommand(String command, String workingDirectory, Charset charset, long timeout) Execute the command on the remoteWindowsRemoteExecutor.executeWql(String wqlQuery, long timeout) Execute a WQL query and process its result.WindowsRemoteExecutor.executeWql(String namespace, String wqlQuery, long timeout, int maxElements, long pullTimeout) Execute a WQL query with explicit enumeration parameters: the WMI namespace, the WS-EnumerationMaxElementsbatch size, and the per-PullMaxTime.WmiHelper.executeWqlInCimv2(WindowsRemoteExecutor windowsRemoteExecutor, String wqlQuery, long timeout) Execute one of the library's internal housekeeping WQL queries (encoding detection, Windows directory discovery) explicitly in the "ROOT\\CIMV2" namespace — where the standardWin32_*classes live — regardless of the executor's configured default namespace, which the caller may have pointed at a custom namespace.static WindowsTempShareWindowsTempShare.getOrCreateShare(WindowsRemoteExecutor windowsRemoteExecutor, long timeout, ShareRemoteDirectoryConsumer<WindowsRemoteExecutor, String, String, Long> shareRemoteDirectory) Get the existing share on the host or create it if absent.static StringWindowsTempShare.getWindowsDirectory(WindowsRemoteExecutor windowsRemoteExecutor, long timeout) Get the Windows directory.static CharsetWindowsRemoteProcessUtils.getWindowsEncodingCharset(WindowsRemoteExecutor windowsRemoteExecutor, long timeout) Deprecated.default voidCommandCursor.interrupt()Interrupt the command the way a console Ctrl+C would — the WSMan Signal operation with thectrl_ccode.CommandCursor.next()Block until the remote command produces output (or completes), for at most one per-round-trip timeout.WqlCursor.next()Advance to the next row, issuing the next WS-Enumeration Pull when the current page is exhausted.default CommandCursor.ChunkCommandCursor.poll(long maxWaitMillis) Bounded variant ofCommandCursor.next(): block at most the given wait for output.default CommandCursor.ChunkCommandCursor.poll(long askMillis, long maxWaitMillis) Cadence variant ofCommandCursor.poll(long): ask the server to answer withinaskMillis— the polling cadence — while allowing the answer itself up tomaxWaitMillisto arrive.default voidCommandCursor.send(byte[] data, boolean end) Feed standard input to the running command — the WSMan Send operation, carrying the bytes to the command'sstdinstream.default CommandCursorWindowsRemoteExecutor.startCommand(String command, String workingDirectory, long timeout) Start a command on the remote host and return aCommandCursorover its raw output: chunks can be consumed as the WSMan Receive responses arrive, before the command exits.default CommandCursorWindowsRemoteExecutor.startCommand(String command, String workingDirectory, long timeout, boolean consoleModeStdin) Variant ofWindowsRemoteExecutor.startCommand(String, String, long)making theWINRS_CONSOLEMODE_STDINoption explicit.default WqlCursorWindowsRemoteExecutor.streamWql(String namespace, String wqlQuery, long timeout, int maxElements, long pullTimeout) Start a WQL enumeration and return a lazyWqlCursorover its rows: rows can be consumed as the WS-Enumeration pages arrive, and memory stays bounded by one page. -
Uses of WindowsRemoteException in org.metricshub.winrm.command
Methods in org.metricshub.winrm.command that throw WindowsRemoteExceptionModifier and TypeMethodDescriptionstatic WindowsRemoteCommandResultWinRMCommandExecutor.execute(String command, WinRMHttpProtocolEnum protocol, String hostname, Integer port, String username, char[] password, String workingDirectory, long timeout, List<String> localFileToCopyList, Path ticketCache, List<AuthenticationEnum> authentications) Execute a command on a remote Windows system and return an object with the output of the command. -
Uses of WindowsRemoteException in org.metricshub.winrm.exceptions
Subclasses of WindowsRemoteException in org.metricshub.winrm.exceptions -
Uses of WindowsRemoteException in org.metricshub.winrm.light
Methods in org.metricshub.winrm.light that throw WindowsRemoteExceptionModifier and TypeMethodDescriptionLightWinRMService.executeCommand(String command, String workingDirectory, Charset charset, long timeout) LightWinRMService.executeWql(String wqlQuery, long timeout) LightWinRMService.executeWql(String namespace, String wqlQuery, long timeout, int maxElements, long pullTimeout) LightWinRMService.startCommand(String command, String workingDirectory, long timeout) LightWinRMService.startCommand(String command, String workingDirectory, long timeout, boolean consoleModeStdin) LightWinRMService.streamWql(String namespace, String wqlQuery, long timeout, int maxElements, long pullTimeout)
CodeSetis the remote machine's ANSI code page, whilecmd.exewrites its output in the console (OEM) code page — the two differ on every non-English locale.