Class RemoteAccessAction

java.lang.Object
io.jenkins.plugins.specsmonitor.RemoteAccessAction
All Implemented Interfaces:
Action, ModelObject

public class RemoteAccessAction extends Object implements Action
Adds a "Remote access" page to the computer page of a node with a button that opens a Remote Desktop session (Windows) or an SSH session (Linux and macOS).
  • Constructor Details

    • RemoteAccessAction

      public RemoteAccessAction(Computer computer)
  • Method Details

    • getComputer

      public Computer getComputer()
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • getTarget

      public RemoteTarget getTarget()
      Asks the node for its operating system and IP address. If the node is offline or does not answer, falls back to what the Connection monitor last collected, and returns null if there is none.
    • getConnectedUsers

      public List<ConnectedUsers.Session> getConnectedUsers()
      Asks the node which users are logged in right now. Returns null if the node is offline or does not answer, since there is no meaningful last known value.
    • doRdp

      public void doRdp(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException
      Sends an .rdp file that opens Remote Desktop Connection for a Windows node.
      Throws:
      IOException