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 booleanisEnabled(CentralDogmaConfig config) Returnstrueif thisPluginis enabled.start(PluginContext context) Invoked when thisPluginis supposed to be started.stop(PluginContext context) Invoked when thisPluginis supposed to be stopped.target(CentralDogmaConfig config) Returns thePluginTargetwhich specifies the replicas that thisPluginis applied to.
-
Method Details
-
target
Returns thePluginTargetwhich specifies the replicas that thisPluginis applied to. -
start
Invoked when thisPluginis supposed to be started.- Parameters:
context- the context which consists of the objects required to execute thisPlugin
-
stop
Invoked when thisPluginis supposed to be stopped.- Parameters:
context- the context which consists of the objects required to execute thisPlugin
-
isEnabled
Returnstrueif thisPluginis enabled. -
configType
Class<?> configType()Returns the type of the configuration for thisPlugin.
-