Brooklyn

brooklyn.entity.basic
[Java] Interface SoftwareProcessDriver

brooklyn.entity.basic.SoftwareProcessDriver
  brooklyn.entity.drivers.EntityDriver
All Superinterfaces:
EntityDriver

public interface SoftwareProcessDriver
extends EntityDriver

The EntityDriver for a SoftwareProcessEntity.

In many cases it is cleaner to store entity lifecycle effectors (and sometimes other implementations) in a class to which the entity delegates. Classes implementing this interface provide this delegate, often inheriting utilities specific to a particular transport (e.g. ssh) shared among many different entities.

In this way, it is also possible for entities to cleanly support multiple mechanisms for start/stop and other methods.


Method Summary
EntityLocal getEntity()

The entity whose components we are controlling.

boolean isRunning()

Whether the entity components have started.

void kill()

Kills the process, ungracefully and immediately where possible (e.g. with `kill -9`).

void restart()

@see Startable#restart()

void start()

@see Startable#start(Collection)

void stop()

@see Startable#stop()

 
Methods inherited from interface EntityDriver
getLocation
 

Method Detail

getEntity

public EntityLocal getEntity()
The entity whose components we are controlling.


isRunning

public boolean isRunning()
Whether the entity components have started.


kill

public void kill()
Kills the process, ungracefully and immediately where possible (e.g. with `kill -9`).


restart

public void restart()
See Also:
Startable#restart()#restart()


start

public void start()
See Also:
Startable#start(Collection)#start(Collection)


stop

public void stop()
See Also:
Startable#stop()#stop()


 

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