Brooklyn

brooklyn.entity.chef
[Java] Class ChefLifecycleEffectorTasks

java.lang.Object
  brooklyn.entity.software.MachineLifecycleEffectorTasks
      brooklyn.entity.chef.ChefLifecycleEffectorTasks
All Implemented Interfaces:
ChefConfig

@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.

Since:
0.6.0


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)

 
Methods inherited from class MachineLifecycleEffectorTasks
attachLifecycleEffectors, entity, getLocation, newRestartEffector, newRestartEffectorTask, newStartEffector, newStartEffectorTask, newStopEffector, newStopEffectorTask, obtainProvisioningFlags, postStartAtMachineAsync, postStartCustom, preStartAtMachineAsync, preStartCustom, preStopCustom, provisionAsync, restart, start, startInLocation, startInLocations, startProcessesAtMachine, stop, stopAnyProvisionedMachines, stopProcessesAtMachine
 

Field Detail

pidFile

protected java.lang.String pidFile


serviceName

protected java.lang.String serviceName


windowsServiceName

protected java.lang.String windowsServiceName


 
Constructor Detail

ChefLifecycleEffectorTasks

public ChefLifecycleEffectorTasks()


 
Method Detail

attachLifecycleEffectors

@Override
public void attachLifecycleEffectors(Entity entity)


postStartCustom

protected void postStartCustom()


startProcessesAtMachine

protected String startProcessesAtMachine(Supplier machineS) {
protected java.lang.String startProcessesAtMachine(Supplier machineS)


startWithChefSoloAsync

protected void startWithChefSoloAsync()


startWithKnifeAsync

protected void startWithKnifeAsync()


stopProcessesAtMachine

if (!result) {
protected java.lang.String stopProcessesAtMachine()


tryCheckStartPid

protected boolean tryCheckStartPid()


tryCheckStartService

protected boolean tryCheckStartService()


tryCheckStartWindowsService

protected boolean tryCheckStartWindowsService()


tryStopPid

protected boolean tryStopPid()


tryStopService

protected boolean tryStopService()


tryStopWindowsService

protected boolean tryStopWindowsService()


usePidFile

public ChefLifecycleEffectorTasks usePidFile(java.lang.String pidFile)


useService

public ChefLifecycleEffectorTasks useService(java.lang.String serviceName)


useWindowsService

public ChefLifecycleEffectorTasks useWindowsService(java.lang.String serviceName)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.