Package io.jenkins.plugins.specsmonitor
Class RemoteAccessAction
java.lang.Object
io.jenkins.plugins.specsmonitor.RemoteAccessAction
- All Implemented Interfaces:
Action,ModelObject
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).
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoRdp(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Sends an.rdpfile that opens Remote Desktop Connection for a Windows node.Asks the node which users are logged in right now.Asks the node for its operating system and IP address.
-
Constructor Details
-
RemoteAccessAction
-
-
Method Details
-
getComputer
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
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 returnsnullif there is none. -
getConnectedUsers
Asks the node which users are logged in right now. Returnsnullif 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.rdpfile that opens Remote Desktop Connection for a Windows node.- Throws:
IOException
-