Class RemoteTarget

java.lang.Object
io.jenkins.plugins.specsmonitor.RemoteTarget
All Implemented Interfaces:
Serializable

public class RemoteTarget extends Object implements Serializable
Operating system family and IP address of a node, used to offer remote access to it.
See Also:
  • Constructor Details

    • RemoteTarget

      public RemoteTarget(RemoteTarget.Family family, String ip)
      Parameters:
      ip - IP address of the node; it is dropped if it is not an IP literal because it comes from the node, which may not be trusted
  • Method Details

    • getFamily

      public RemoteTarget.Family getFamily()
    • getIp

      public String getIp()
      IP address of the node, or null if unknown.
    • isWindows

      public boolean isWindows()
      Whether the node can be reached with a Remote Desktop client.
    • isSshCapable

      public boolean isSshCapable()
      Whether the node can be reached with an SSH client.
    • getUriHost

      public String getUriHost()
      The address as used in a URI, with brackets around IPv6 literals.
    • getSshUri

      public String getSshUri()
      Link that opens the SSH client registered with the browser's operating system.
    • getRdpUri

      public String getRdpUri()
      Link that opens the Remote Desktop client registered for rdp://, such as the Microsoft Remote Desktop and Windows App clients. The built-in Windows client does not register it.
    • getSshCommand

      public String getSshCommand()
      Command to paste into a terminal.