|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.ukn.hci.squidy.manager.model.Processable
public abstract class Processable
AbstractProcessable.
Date: Mar 14, 2009 Time: 1:43:46 PM
| Field Summary | |
|---|---|
protected boolean |
processing
|
static String |
PROPERTY_DELETE
|
static String |
PROPERTY_FAILURE_PUBLISH
|
static String |
PROPERTY_FAILURE_RESOLVE
|
static String |
PROPERTY_PROCESSING_START
|
static String |
PROPERTY_PROCESSING_STOP
|
| Constructor Summary | |
|---|---|
Processable()
Default constructor required for JAXB. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
void |
addSubProcessable(Processable processable)
Adds a sub processable to this processable. |
void |
delete()
Allows to delete the IProcessable implementing class. |
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
|
String |
getId()
|
Processable |
getParent()
|
Collection<Processable> |
getSubProcessables()
|
boolean |
isProcessing()
Whether the processing is already processing. |
protected void |
postStopSubProcessables()
Will be executed after sub-processables has been stopped. |
protected void |
preStartSubProcessables()
Will be executed before sub-processables will be started. |
void |
publishFailure(Throwable e)
|
void |
removeStateChangeListener(PropertyChangeListener listener)
|
void |
removeStateChangeListener(String propertyName,
PropertyChangeListener listener)
|
void |
removeSubProcessable(Processable processable)
Removes a sub processable of the sub processable collection. |
void |
resolveFailure()
|
void |
setId(String id)
|
void |
setParent(Processable parent)
|
void |
setSubProcessables(Collection<Processable> subProcessables)
|
void |
start()
Allows to start the IProcessable implementing class. |
void |
stop()
Allows to stop the IProcessable implementing class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.ukn.hci.squidy.manager.IProcessable |
|---|
process, publish, publish |
| Field Detail |
|---|
protected boolean processing
public static final String PROPERTY_DELETE
public static final String PROPERTY_FAILURE_PUBLISH
public static final String PROPERTY_FAILURE_RESOLVE
public static final String PROPERTY_PROCESSING_START
public static final String PROPERTY_PROCESSING_STOP
| Constructor Detail |
|---|
public Processable()
| Method Detail |
|---|
public final String getId()
public final void setId(String id)
id - the id to setpublic Processable getParent()
public void setParent(Processable parent)
parent - the parent to setpublic Collection<Processable> getSubProcessables()
public void setSubProcessables(Collection<Processable> subProcessables)
subProcessables - the subProcessables to setpublic void addSubProcessable(Processable processable)
IProcessable
addSubProcessable in interface IProcessable<Processable>processable - The sub processable.public void removeSubProcessable(Processable processable)
IProcessable
removeSubProcessable in interface IProcessable<Processable>processable - The sub processable that should be removed of the sub
processable collection.public boolean isProcessing()
IProcessable
isProcessing in interface IProcessable<Processable>
public void start()
throws ProcessException
ILaunchableIProcessable implementing class.
start in interface ILaunchableProcessException - Exception can occur while trying to start
the IProcessable.
public void stop()
throws ProcessException
ILaunchableIProcessable implementing class.
stop in interface ILaunchableProcessException - Exception can occur while trying to stop
the IProcessable.protected void preStartSubProcessables()
protected void postStopSubProcessables()
public void delete()
throws ProcessException
ILaunchableIProcessable implementing class.
delete in interface ILaunchableProcessException - Exception can occur while trying to stop
the IProcessable.public void publishFailure(Throwable e)
publishFailure in interface ILaunchablepublic void resolveFailure()
resolveFailure in interface ILaunchablepublic final void addPropertyChangeListener(PropertyChangeListener listener)
listener - PropertyChangeSupport.addPropertyChangeListener(PropertyChangeListener)
public final void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
propertyName - listener - PropertyChangeSupport.addPropertyChangeListener(String, PropertyChangeListener)public final void removeStateChangeListener(PropertyChangeListener listener)
listener - PropertyChangeSupport.removePropertyChangeListener(PropertyChangeListener)
public final void removeStateChangeListener(String propertyName,
PropertyChangeListener listener)
propertyName - listener - PropertyChangeSupport.removePropertyChangeListener(String, PropertyChangeListener)
public final void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
propertyName - oldValue - newValue - PropertyChangeSupport.firePropertyChange(String, Object, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||