public final class RegistryEntry
extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RegistryEntry.Builder
Builder.
|
Modifier and Type | Method and Description |
---|---|
String |
getLookupKey()
Gets the lookup key.
|
String |
getName()
Gets the name.
|
String |
getPath()
Gets the path.
|
URI |
getURI()
Gets the URI.
|
boolean |
isPrivate()
Asks if this entry is private.
|
boolean |
isRemote()
Asks if remote.
|
Remote |
lookup(String sessionMode,
Logger logger)
Performs a lookup of the registry entry.
|
static RegistryEntry.Builder |
newBuilder()
Returns a new builder.
|
static void |
setRegistry(Registry registry,
boolean registryIsPrivate)
Sets the registry connection informations.
|
String |
toString() |
@Nonnull @CheckReturnValue public static RegistryEntry.Builder newBuilder()
public static void setRegistry(@Nonnull Registry registry, boolean registryIsPrivate)
registry
- The registry.registryIsPrivate
- True if the registry is private.@Nonnull @CheckReturnValue public String getLookupKey()
@Nonnull @CheckReturnValue public String getName()
@Nonnull @CheckReturnValue public String getPath()
@Nonnull @CheckReturnValue public URI getURI()
public boolean isPrivate()
An entry is private if it does not specify a registry location and if the local registry is private.
public boolean isRemote()
An entry is remote if the registry is not located on the local machine.
@Nonnull @CheckReturnValue public Remote lookup(@Nonnull String sessionMode, Logger logger) throws AccessException, RemoteException, NotBoundException
sessionMode
- The session mode name.logger
- The logger.NotBoundException
- When the server name is not currently bound.RemoteException
- When the communication with the registry failed.AccessException
- When access is denied.public String toString()
toString
in class Object
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.