Class RemoteRegistryKey.Connector
- java.lang.Object
-
- com.github.robtimus.os.windows.registry.RemoteRegistryKey.Connector
-
- Enclosing class:
- RemoteRegistryKey
public static final class RemoteRegistryKey.Connector extends Object
A class for connecting to a registry key on a remote machine.- Author:
- Rob Spoor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteRegistryKeyat(String machineName)Connects to the registry key on a remote machine.
-
-
-
Method Detail
-
at
public RemoteRegistryKey at(String machineName)
Connects to the registry key on a remote machine. The returned registry key needs to be closed when it is no longer needed. There is no need to close any registry keys retrieved from it, e.g. usingRegistryKey.subKeys()orRegistryKey.resolve(String).- Parameters:
machineName- The machine name. This cannot be an IP address but must be a resolvable host name.- Returns:
- A reference to the registry on the given remote machine.
- Throws:
RegistryException- If the connection failed.
-
-