Class 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 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. using RegistryKey.subKeys() or RegistryKey.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.