org.drools.camel.component
Class DroolsEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.drools.camel.component.DroolsEndpoint
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton

public class DroolsEndpoint
extends org.apache.camel.impl.DefaultEndpoint


Nested Class Summary
static class DroolsEndpoint.Action
          An ENUM to define which action should be executed by the producer into this end point
 
Field Summary
 DroolsEndpoint.Action action
           
 String channel
           
 org.apache.camel.spi.DataFormat dataFormat
           
 String dataFormatName
           
 String entryPoint
           
 org.drools.runtime.CommandExecutor executor
           
 String ksessionId
           
 GridNode node
           
static Pattern p
           
 
Constructor Summary
DroolsEndpoint(String endpointUri, String remaining, DroolsComponent component)
           
 
Method Summary
protected  void configure(DroolsComponent component, String uri)
           
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.Exchange createExchange(Object pojo)
           
 org.apache.camel.Producer createProducer()
           
 DroolsEndpoint.Action getAction()
           
 String getChannel()
           
 ClassLoader getClassLoader(org.drools.runtime.CommandExecutor exec)
           
 org.drools.runtime.CommandExecutor getCommandExecutor(String name)
           
 String getDataFormat()
           
 String getEntryPoint()
           
static String getExecuteNodeId(String uri)
           
 org.drools.runtime.CommandExecutor getExecutor()
           
 GridNode getGridNode()
           
 String getKsessionId()
           
static String getKsessionId(String uri)
           
 String getLookup(String body)
           
 boolean isSingleton()
           
 void setAction(DroolsEndpoint.Action action)
           
 void setAction(String action)
           
 void setChannel(String channel)
           
 void setDataFormat(String dataFormatName)
           
 void setEntryPoint(String entryPoint)
           
 void setKsessionId(String ksession)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

p

public static final Pattern p

ksessionId

public String ksessionId

executor

public org.drools.runtime.CommandExecutor executor

node

public GridNode node

dataFormatName

public String dataFormatName

dataFormat

public org.apache.camel.spi.DataFormat dataFormat

action

public DroolsEndpoint.Action action

entryPoint

public String entryPoint

channel

public String channel
Constructor Detail

DroolsEndpoint

public DroolsEndpoint(String endpointUri,
                      String remaining,
                      DroolsComponent component)
               throws URISyntaxException
Throws:
URISyntaxException
Method Detail

createConsumer

public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
                                         throws Exception
Throws:
Exception

createProducer

public org.apache.camel.Producer createProducer()
                                         throws Exception
Throws:
Exception

isSingleton

public boolean isSingleton()

getKsessionId

public String getKsessionId()

setKsessionId

public void setKsessionId(String ksession)

getExecutor

public org.drools.runtime.CommandExecutor getExecutor()

getGridNode

public GridNode getGridNode()

configure

protected void configure(DroolsComponent component,
                         String uri)

getExecuteNodeId

public static final String getExecuteNodeId(String uri)

getKsessionId

public static final String getKsessionId(String uri)

getDataFormat

public String getDataFormat()

setDataFormat

public void setDataFormat(String dataFormatName)

getLookup

public String getLookup(String body)

getCommandExecutor

public org.drools.runtime.CommandExecutor getCommandExecutor(String name)

getClassLoader

public ClassLoader getClassLoader(org.drools.runtime.CommandExecutor exec)

getAction

public DroolsEndpoint.Action getAction()

setAction

public void setAction(DroolsEndpoint.Action action)

setAction

public void setAction(String action)

getEntryPoint

public String getEntryPoint()

setEntryPoint

public void setEntryPoint(String entryPoint)

getChannel

public String getChannel()

setChannel

public void setChannel(String channel)

createExchange

public org.apache.camel.Exchange createExchange(Object pojo)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.