Package io.jenkins.plugins.specsmonitor
Class RemoteTarget
java.lang.Object
io.jenkins.plugins.specsmonitor.RemoteTarget
- All Implemented Interfaces:
Serializable
Operating system family and IP address of a node, used to offer remote access to it.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOperating system family of a node. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIp()IP address of the node, ornullif unknown.Link that opens the Remote Desktop client registered forrdp://, such as the Microsoft Remote Desktop and Windows App clients.Command to paste into a terminal.Link that opens the SSH client registered with the browser's operating system.The address as used in a URI, with brackets around IPv6 literals.booleanWhether the node can be reached with an SSH client.booleanWhether the node can be reached with a Remote Desktop client.
-
Constructor Details
-
RemoteTarget
- 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
-
getIp
IP address of the node, ornullif 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
The address as used in a URI, with brackets around IPv6 literals. -
getSshUri
Link that opens the SSH client registered with the browser's operating system. -
getRdpUri
Link that opens the Remote Desktop client registered forrdp://, such as the Microsoft Remote Desktop and Windows App clients. The built-in Windows client does not register it. -
getSshCommand
Command to paste into a terminal.
-