org.apache.servicemix.tck
Class SenderComponent

java.lang.Object
  extended by org.apache.servicemix.jbi.management.BaseLifeCycle
      extended by org.apache.servicemix.components.util.PojoSupport
          extended by org.apache.servicemix.components.util.ComponentSupport
              extended by org.apache.servicemix.tck.SenderComponent
All Implemented Interfaces:
javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle, javax.jbi.management.LifeCycleMBean, MBeanInfoProvider, Sender

public class SenderComponent
extends ComponentSupport
implements Sender

Version:
$Revision: 2153 $

Field Summary
static String ENDPOINT
           
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
SenderComponent()
           
 
Method Summary
 String getMessage()
           
 org.apache.servicemix.jbi.api.EndpointResolver getResolver()
           
 void sendMessages(int messageCount)
           
 void sendMessages(int messageCount, boolean sync)
           
 void setMessage(String message)
           
 void setResolver(org.apache.servicemix.jbi.api.EndpointResolver resolver)
           
 
Methods inherited from class org.apache.servicemix.components.util.ComponentSupport
createComponentLifeCycle, createInOnlyExchange, createInOnlyExchange, createInOnlyExchange, createInOptionalOutExchange, createInOutExchange, createInOutExchange, createRobustInOnlyExchange, createServiceUnitManager, creatInOutExchange, forwardToExchange, forwardToExchange, getInMessage, getLifeCycle, getMessageTransformer, getServiceDescription, getServiceUnitManager, initializeServiceUnitManager, invoke, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, propagateCorrelationId, resolveEndpointReference, setMessageTransformer
 
Methods inherited from class org.apache.servicemix.components.util.PojoSupport
answer, done, fail, fail, getBody, getContext, getDeliveryChannel, getDescription, getEndpoint, getExchangeFactory, getExtensionMBeanName, getService, init, 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
start, stop
 

Field Detail

SERVICE

public static final QName SERVICE

ENDPOINT

public static final String ENDPOINT
See Also:
Constant Field Values
Constructor Detail

SenderComponent

public SenderComponent()
Method Detail

getResolver

public org.apache.servicemix.jbi.api.EndpointResolver getResolver()

setResolver

public void setResolver(org.apache.servicemix.jbi.api.EndpointResolver resolver)

sendMessages

public void sendMessages(int messageCount)
                  throws javax.jbi.JBIException
Specified by:
sendMessages in interface Sender
Throws:
javax.jbi.JBIException

sendMessages

public void sendMessages(int messageCount,
                         boolean sync)
                  throws javax.jbi.JBIException
Specified by:
sendMessages in interface Sender
Throws:
javax.jbi.JBIException

getMessage

public String getMessage()

setMessage

public void setMessage(String message)


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.