|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.entity.software.MachineLifecycleEffectorTasks
brooklyn.entity.chef.ChefLifecycleEffectorTasks
@Beta public class ChefLifecycleEffectorTasks extends MachineLifecycleEffectorTasks
Creates effectors to start, restart, and stop processes using Chef.
Instances of this should use the ChefConfig config attributes to configure startup, and invoke usePidFile(String) or useService(String) to determine check-running and stop behaviour. Alternatively this can be subclassed and postStartCustom() and stopProcessesAtMachine() overridden.
Field Summary | |
---|---|
protected java.lang.String |
pidFile
|
protected java.lang.String |
serviceName
|
protected java.lang.String |
windowsServiceName
|
Fields inherited from class MachineLifecycleEffectorTasks | |
---|---|
LOCATIONS |
Constructor Summary | |
ChefLifecycleEffectorTasks()
|
Method Summary | |
---|---|
void
|
attachLifecycleEffectors(Entity entity)
|
protected void
|
postStartCustom()
|
protected java.lang.String
|
startProcessesAtMachine(Supplier machineS)
|
protected void
|
startWithChefSoloAsync()
|
protected void
|
startWithKnifeAsync()
|
protected java.lang.String
|
stopProcessesAtMachine()
|
protected boolean
|
tryCheckStartPid()
|
protected boolean
|
tryCheckStartService()
|
protected boolean
|
tryCheckStartWindowsService()
|
protected boolean
|
tryStopPid()
|
protected boolean
|
tryStopService()
|
protected boolean
|
tryStopWindowsService()
|
ChefLifecycleEffectorTasks
|
usePidFile(java.lang.String pidFile)
|
ChefLifecycleEffectorTasks
|
useService(java.lang.String serviceName)
|
ChefLifecycleEffectorTasks
|
useWindowsService(java.lang.String serviceName)
|
Field Detail |
---|
protected java.lang.String pidFile
protected java.lang.String serviceName
protected java.lang.String windowsServiceName
Constructor Detail |
---|
public ChefLifecycleEffectorTasks()
Method Detail |
---|
@Override public void attachLifecycleEffectors(Entity entity)
protected void postStartCustom()
protected String startProcessesAtMachine(SuppliermachineS) { protected java.lang.String startProcessesAtMachine(Supplier machineS)
protected void startWithChefSoloAsync()
protected void startWithKnifeAsync()
if (!result) { protected java.lang.String stopProcessesAtMachine()
protected boolean tryCheckStartPid()
protected boolean tryCheckStartService()
protected boolean tryCheckStartWindowsService()
protected boolean tryStopPid()
protected boolean tryStopService()
protected boolean tryStopWindowsService()
public ChefLifecycleEffectorTasks usePidFile(java.lang.String pidFile)
public ChefLifecycleEffectorTasks useService(java.lang.String serviceName)
public ChefLifecycleEffectorTasks useWindowsService(java.lang.String serviceName)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.