org.apache.camel.component.rmi
Class RmiEndpoint

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.component.rmi.RmiEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, HasId

public class RmiEndpoint
extends DefaultEndpoint

Version:

Constructor Summary
  RmiEndpoint()
           
  RmiEndpoint(String endpointUri)
           
protected RmiEndpoint(String endpointUri, RmiComponent component)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
protected  String createEndpointUri()
          A factory method to lazily create the endpointUri if none is specified
 Producer createProducer()
          Creates a new producer which is used send messages into the endpoint
 ClassLoader getClassLoader()
           
 String getMethod()
           
 String getName()
           
 int getPort()
           
 Registry getRegistry()
           
 List<Class<?>> getRemoteInterfaces()
           
 URI getUri()
           
 boolean isSingleton()
          Whether this class supports being singleton or not.
 void setClassLoader(ClassLoader classLoader)
           
 void setMethod(String method)
           
 void setPort(int port)
           
 void setRemoteInterfaces(Class<?>... remoteInterfaces)
           
 void setRemoteInterfaces(List<Class<?>> remoteInterfaces)
           
 void setUri(URI uri)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

RmiEndpoint

public RmiEndpoint()

RmiEndpoint

protected RmiEndpoint(String endpointUri,
                      RmiComponent component)
               throws URISyntaxException
Throws:
URISyntaxException

RmiEndpoint

public RmiEndpoint(String endpointUri)
            throws URISyntaxException
Throws:
URISyntaxException
Method Detail

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Whether this class supports being singleton or not.

Returns:
true to be a single shared instance, false to create new instances.

createEndpointUri

protected String createEndpointUri()
Description copied from class: DefaultEndpoint
A factory method to lazily create the endpointUri if none is specified

Overrides:
createEndpointUri in class DefaultEndpoint

createConsumer

public Consumer createConsumer(Processor processor)
Description copied from interface: Endpoint
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor

Parameters:
processor - the given processor
Returns:
a newly created consumer

createProducer

public Producer createProducer()
                        throws Exception
Description copied from interface: Endpoint
Creates a new producer which is used send messages into the endpoint

Returns:
a newly created producer
Throws:
Exception - can be thrown

getName

public String getName()

getRegistry

public Registry getRegistry()
                     throws RemoteException
Throws:
RemoteException

getRemoteInterfaces

public List<Class<?>> getRemoteInterfaces()

setRemoteInterfaces

public void setRemoteInterfaces(List<Class<?>> remoteInterfaces)

setRemoteInterfaces

public void setRemoteInterfaces(Class<?>... remoteInterfaces)

getClassLoader

public ClassLoader getClassLoader()

setClassLoader

public void setClassLoader(ClassLoader classLoader)

getPort

public int getPort()

setPort

public void setPort(int port)

getMethod

public String getMethod()

setMethod

public void setMethod(String method)

getUri

public URI getUri()

setUri

public void setUri(URI uri)


Apache CAMEL