@Unstable
public class RefreshRegistry
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
RefreshRegistry() |
| Modifier and Type | Method | Description |
|---|---|---|
static RefreshRegistry |
defaultRegistry() |
|
java.util.Collection<RefreshResponse> |
dispatch(java.lang.String identifier,
java.lang.String[] args) |
Lookup the responsible handler and return its result.
|
void |
register(java.lang.String identifier,
RefreshHandler handler) |
Registers an object as a handler for a given identity.
|
boolean |
unregister(java.lang.String identifier,
RefreshHandler handler) |
Remove the registered object for a given identity.
|
void |
unregisterAll(java.lang.String identifier) |
public static RefreshRegistry defaultRegistry()
public void register(java.lang.String identifier,
RefreshHandler handler)
identifier - a unique identifier for this resource,
such as org.apache.hadoop.blacklisthandler - the object to registerpublic boolean unregister(java.lang.String identifier,
RefreshHandler handler)
identifier - the resource to unregisterhandler - input handler.public void unregisterAll(java.lang.String identifier)
public java.util.Collection<RefreshResponse> dispatch(java.lang.String identifier, java.lang.String[] args)
identifier - the resource to refreshargs - the arguments to pass on, not including the program namejava.lang.IllegalArgumentException - on invalid identifierCopyright © 2008–2025 Apache Software Foundation. All rights reserved.