|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.component.framework.process.ExternalListenerManager
public class ExternalListenerManager
This manager is used to enable a binding component to handle external service call. It manages listeners for external services (start and stop).
| Constructor Summary | |
|---|---|
ExternalListenerManager(AbstractComponent component)
Creates a new instance of ExternalListenerManager |
|
| Method Summary | |
|---|---|
void |
createListeners(java.lang.String serviceUnitName,
java.util.List<org.ow2.petals.component.framework.jbidescriptor.generated.Consumes> consumesList)
|
void |
removeListeners(java.lang.String serviceUnitName)
Remove the SU bound listeners. |
void |
startListening(java.lang.String serviceUnitName)
Start a listener for each given consumes. |
void |
stopListening(java.lang.String serviceUnitName)
Stop all external listeners related to the given SU. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExternalListenerManager(AbstractComponent component)
ExternalListenerManager
componentConfiguration - component - componentContext - deliveryChannel - logger - | Method Detail |
|---|
public void createListeners(java.lang.String serviceUnitName,
java.util.List<org.ow2.petals.component.framework.jbidescriptor.generated.Consumes> consumesList)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
public void startListening(java.lang.String serviceUnitName)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException
serviceUnitName - name of the service unit to startconsumes - the consumes nodes defining external services to listen. Not
null
org.ow2.petals.component.framework.api.exception.PEtALSCDKException - if an error occurs during listener starting
public void stopListening(java.lang.String serviceUnitName)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException
serviceUnitName - name of the service unit to start
org.ow2.petals.component.framework.api.exception.PEtALSCDKException - if an error occurs during listener startingpublic void removeListeners(java.lang.String serviceUnitName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||