org.apache.servicemix.tck
Class SenderPojo

java.lang.Object
  extended by org.apache.servicemix.jbi.management.BaseLifeCycle
      extended by org.apache.servicemix.components.util.PojoSupport
          extended by 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 $

Field Summary
protected  javax.jbi.component.ComponentContext context
           
protected  boolean done
           
static String ENDPOINT
           
protected  QName interfaceName
           
protected  List messages
           
protected  int numMessages
           
static QName SERVICE
           
 
Fields inherited from class org.apache.servicemix.components.util.PojoSupport
logger
 
Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
currentState, INITIALIZED, listener
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
SHUTDOWN, STARTED, STOPPED, UNKNOWN
 
Constructor Summary
SenderPojo()
           
SenderPojo(QName interfaceName)
           
 
Method Summary
 QName getInterfaceName()
           
 int getNumMessages()
           
 void init(javax.jbi.component.ComponentContext ctx)
          Called when the Component is initialized
 int messagesReceived()
           
 void sendMessages(int messageCount)
           
 void sendMessages(int messageCount, boolean sync)
           
 void sendMesssages()
           
 void setInterfaceName(QName interfaceName)
           
 void setNumMessages(int numMessages)
           
 
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
 

Field Detail

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
Constructor Detail

SenderPojo

public SenderPojo()

SenderPojo

public SenderPojo(QName interfaceName)
Method Detail

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.