org.apache.servicemix.tck
Class SenderPojo
java.lang.Object
org.apache.servicemix.jbi.management.BaseLifeCycle
org.apache.servicemix.components.util.PojoSupport
org.apache.servicemix.tck.SenderPojo
- All Implemented Interfaces:
- javax.jbi.component.ComponentLifeCycle, javax.jbi.management.LifeCycleMBean, MBeanInfoProvider, Sender
public class SenderPojo
- extends PojoSupport
- implements javax.jbi.component.ComponentLifeCycle, Sender
- Version:
- $Revision: 564607 $
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Methods inherited from class org.apache.servicemix.components.util.PojoSupport |
answer, done, fail, fail, getBody, getContext, getDeliveryChannel, getDescription, getEndpoint, getExchangeFactory, getExtensionMBeanName, getService, init, isInAndOut, send, sendSync, sendSync, setBody, setEndpoint, setExtensionMBeanName, setService, shutDown |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
firePropertyChanged, getAttributeInfos, getCurrentState, getName, getObjectToManage, getOperationInfos, getSubType, getType, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jbi.component.ComponentLifeCycle |
getExtensionMBeanName, shutDown, start, stop |
SERVICE
public static final QName SERVICE
ENDPOINT
public static final String ENDPOINT
- See Also:
- Constant Field Values
interfaceName
protected QName interfaceName
numMessages
protected int numMessages
context
protected javax.jbi.component.ComponentContext context
messages
protected List messages
done
protected boolean done
SenderPojo
public SenderPojo()
SenderPojo
public SenderPojo(QName interfaceName)
init
public void init(javax.jbi.component.ComponentContext ctx)
throws javax.jbi.JBIException
- Description copied from class:
PojoSupport
- Called when the Component is initialized
- Specified by:
init in interface javax.jbi.component.ComponentLifeCycle- Overrides:
init in class PojoSupport
- Throws:
javax.jbi.JBIException
messagesReceived
public int messagesReceived()
sendMesssages
public void sendMesssages()
throws javax.jbi.messaging.MessagingException
- Throws:
javax.jbi.messaging.MessagingException
sendMessages
public void sendMessages(int messageCount)
throws javax.jbi.messaging.MessagingException
- Specified by:
sendMessages in interface Sender
- Throws:
javax.jbi.messaging.MessagingException
sendMessages
public void sendMessages(int messageCount,
boolean sync)
throws javax.jbi.messaging.MessagingException
- Specified by:
sendMessages in interface Sender
- Throws:
javax.jbi.messaging.MessagingException
getInterfaceName
public QName getInterfaceName()
setInterfaceName
public void setInterfaceName(QName interfaceName)
getNumMessages
public int getNumMessages()
setNumMessages
public void setNumMessages(int numMessages)
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.