public interface PluginInterface
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(net.roboconf.core.model.beans.Instance instance)
Deploys an instance.
|
String |
getPluginName() |
void |
initialize(net.roboconf.core.model.beans.Instance instance)
Initializes the plug-in for this instance.
|
void |
setNames(String applicationName,
String rootInstanceName)
Sets the names (useful for debug and analyzing logs).
|
void |
start(net.roboconf.core.model.beans.Instance instance)
Starts an instance.
|
void |
stop(net.roboconf.core.model.beans.Instance instance)
Stops an instance.
|
void |
undeploy(net.roboconf.core.model.beans.Instance instance)
Undeploys an instance.
|
void |
update(net.roboconf.core.model.beans.Instance instance,
net.roboconf.core.model.beans.Import importChanged,
net.roboconf.core.model.beans.Instance.InstanceStatus statusChanged)
Updates an instance.
|
void initialize(net.roboconf.core.model.beans.Instance instance)
throws PluginException
As an example, in Puppet, this method install all the modules that will be used by the manifest(s).
instance - PluginExceptionvoid deploy(net.roboconf.core.model.beans.Instance instance)
throws PluginException
instance - the instance to deployPluginExceptionvoid start(net.roboconf.core.model.beans.Instance instance)
throws PluginException
instance - the instance to startPluginExceptionvoid update(net.roboconf.core.model.beans.Instance instance,
net.roboconf.core.model.beans.Import importChanged,
net.roboconf.core.model.beans.Instance.InstanceStatus statusChanged)
throws PluginException
instance - the instance to updateimportChanged - the changed import, if any (null if no change)statusChanged - the new status of the instance that triggered the update, when applicable (null if N/A)PluginExceptionvoid stop(net.roboconf.core.model.beans.Instance instance) throws PluginException
instance - the instance to stopPluginExceptionvoid undeploy(net.roboconf.core.model.beans.Instance instance)
throws PluginException
instance - the instance to undeployPluginExceptionvoid setNames(String applicationName, String rootInstanceName)
applicationName - the application namerootInstanceName - the root instance nameString getPluginName()
Copyright © 2017. All rights reserved.