Interface Plugin
- All Known Implementing Classes:
AllReplicasPlugin
,XdsKubernetesEndpointFetchingPlugin
public interface Plugin
An interface which defines callbacks for a plug-in. If you want to initialize a
Plugin
by configuring
the Central Dogma server (e.g. adding a service for your plugin), use AllReplicasPlugin
.-
Method Summary
Modifier and TypeMethodDescriptionClass
<?> Returns the type of the configuration for thisPlugin
.default boolean
isEnabled
(CentralDogmaConfig config) Returnstrue
if thisPlugin
is enabled.start
(PluginContext context) Invoked when thisPlugin
is supposed to be started.stop
(PluginContext context) Invoked when thisPlugin
is supposed to be stopped.target
(CentralDogmaConfig config) Returns thePluginTarget
which specifies the replicas that thisPlugin
is applied to.
-
Method Details
-
target
Returns thePluginTarget
which specifies the replicas that thisPlugin
is applied to. -
start
Invoked when thisPlugin
is supposed to be started.- Parameters:
context
- the context which consists of the objects required to execute thisPlugin
-
stop
Invoked when thisPlugin
is supposed to be stopped.- Parameters:
context
- the context which consists of the objects required to execute thisPlugin
-
isEnabled
Returnstrue
if thisPlugin
is enabled. -
configType
Class<?> configType()Returns the type of the configuration for thisPlugin
.
-