Package org.kie.server.controller.api
Interface KieServerController
-
public interface KieServerControllerKieServer facing controller that allows KieServers to inform about its availability. Upon connection it will receive KieServerSetup instance known to the controller. If none is available an empty one will be provided.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description KieServerSetupconnect(org.kie.server.api.model.KieServerInfo serverInfo)Entry point for for KieServer to connect(and register if done for the first time).voiddisconnect(org.kie.server.api.model.KieServerInfo serverInfo)Notifies controller that server is going down.default KieServerSetupupdate(org.kie.server.api.model.KieServerStateInfo containerSpec)Entry point for for KieServer to update its status information.
-
-
-
Method Detail
-
connect
KieServerSetup connect(org.kie.server.api.model.KieServerInfo serverInfo)
Entry point for for KieServer to connect(and register if done for the first time). At the same time, when given KieServerInstance has been already added a KieServerSetup with data will be returned. Otherwise empty (or default) KieServerSetup will be provided.- Parameters:
serverInfo- representation of minimal set of information about KieServer- Returns:
- KieServer configuration
-
update
default KieServerSetup update(org.kie.server.api.model.KieServerStateInfo containerSpec)
Entry point for for KieServer to update its status information.- Parameters:
serverInfo- representation of minimal set of information about KieServer
-
disconnect
void disconnect(org.kie.server.api.model.KieServerInfo serverInfo)
Notifies controller that server is going down.- Parameters:
serverInfo- representation of minimal set of information about KieServer
-
-