Brooklyn

brooklyn.entity.basic
[Java] Class AbstractSoftwareProcessDriver

java.lang.Object
  brooklyn.entity.basic.AbstractSoftwareProcessDriver
All Implemented Interfaces:
SoftwareProcessDriver

public abstract class AbstractSoftwareProcessDriver

An abstract implementation of the SoftwareProcessDriver.


Field Summary
protected EntityLocal entity

 
Constructor Summary
AbstractSoftwareProcessDriver(EntityLocal entity, Location location)

 
Method Summary
void customize()

EntityLocal getEntity()

Location getLocation()

java.io.InputStream getResource(java.lang.String url)

void install()

void kill()

void launch()

void postLaunch()

Implement this method in child classes to add some post-launch behavior

void restart()

void start()

Start the entity.

void stop()

protected void waitForConfigKey(ConfigKey configKey)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

entity

protected final EntityLocal entity


 
Constructor Detail

AbstractSoftwareProcessDriver

public AbstractSoftwareProcessDriver(EntityLocal entity, Location location)


 
Method Detail

customize

public void customize()


getEntity

public EntityLocal getEntity()


getLocation

public Location getLocation()


getResource

public java.io.InputStream getResource(java.lang.String url)


install

public void install()


kill

@Override
public void kill()


launch

public void launch()


postLaunch

public void postLaunch()
Implement this method in child classes to add some post-launch behavior


restart

de
	public
public void restart()


start

de
	public
public void start()
Start the entity. this installs, configures and launches the application process. However, users can also call the install(), customize() and launch() steps independently. The postLaunch() will be called after the launch() metheod is executed, but the process may not be completely initialised at this stage, so care is required when implementing these stages.
See Also:
stop()


stop

de
	public
public void stop()


waitForConfigKey

protected void waitForConfigKey(ConfigKey configKey)


 

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