org.ow2.petals.se.rmi
Class RmiComponent

java.lang.Object
  extended by org.ow2.petals.se.rmi.RmiComponent
All Implemented Interfaces:
javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle

public class RmiComponent
extends java.lang.Object
implements javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle

Class FrontEngine.java.

Author:
Nicolas Salatge - EBM Websourcing, Roland NAUDIN - EBM Websourcing

Constructor Summary
RmiComponent()
          Default Constructor.
 
Method Summary
 javax.jbi.messaging.DeliveryChannel getChannel()
          get the delivery channel.
 javax.jbi.component.ComponentContext getContext()
          get the context.
 javax.management.ObjectName getExtensionMBeanName()
          Get the extension MBean name.
 javax.jbi.component.ComponentLifeCycle getLifeCycle()
          Get the component life cycle.
 java.util.logging.Logger getLogger()
          get the component logger.
 java.util.Map<java.lang.String,javax.jbi.messaging.MessageExchange> getMessages()
          get messaging.
 org.objectweb.petals.tools.rmi.server.remote.interfaces.RemoteComponentContext getRmiComponentContext()
          Get the RMI component context.
 org.objectweb.petals.tools.rmi.server.remote.interfaces.RemoteDeliveryChannel getRmiDeliveryChannel()
          get the rmi delivery channel.
 org.w3c.dom.Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
          Get the description of service.
 javax.jbi.component.ServiceUnitManager getServiceUnitManager()
          Get the service unit manager.
 void init(javax.jbi.component.ComponentContext context)
          Init the component.
 boolean isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange)
          Test if exchange with consumer is ok.
 boolean isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange)
          Test if exchange with provider is ok.
 javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
          Resolve the endpoint reference.
 void shutDown()
          This function allows to try to shutdown RMI component
 void start()
          start the component.
 void stop()
          stop the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiComponent

public RmiComponent()
Default Constructor.

Method Detail

getLogger

public java.util.logging.Logger getLogger()
get the component logger.

Returns:
the component logger

getMessages

public java.util.Map<java.lang.String,javax.jbi.messaging.MessageExchange> getMessages()
get messaging.

Returns:
the messages

start

public void start()
           throws javax.jbi.JBIException
start the component.

Specified by:
start in interface javax.jbi.component.ComponentLifeCycle
Throws:
javax.jbi.JBIException - impossible to start the component.

getRmiComponentContext

public org.objectweb.petals.tools.rmi.server.remote.interfaces.RemoteComponentContext getRmiComponentContext()
Get the RMI component context.

Returns:
the RMI component context

getRmiDeliveryChannel

public org.objectweb.petals.tools.rmi.server.remote.interfaces.RemoteDeliveryChannel getRmiDeliveryChannel()
get the rmi delivery channel.

Returns:
the rmi delivery channel

stop

public void stop()
          throws javax.jbi.JBIException
stop the component.

Specified by:
stop in interface javax.jbi.component.ComponentLifeCycle
Throws:
javax.jbi.JBIException - impossible to start the component.

getServiceDescription

public org.w3c.dom.Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
Get the description of service.

Specified by:
getServiceDescription in interface javax.jbi.component.Component
Parameters:
endpoint - the endpoint
Returns:
the description

getLifeCycle

public javax.jbi.component.ComponentLifeCycle getLifeCycle()
Get the component life cycle.

Specified by:
getLifeCycle in interface javax.jbi.component.Component
Returns:
the component life cylce

getServiceUnitManager

public javax.jbi.component.ServiceUnitManager getServiceUnitManager()
Get the service unit manager.

Specified by:
getServiceUnitManager in interface javax.jbi.component.Component
Returns:
the service unit manager

isExchangeWithConsumerOkay

public boolean isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint,
                                          javax.jbi.messaging.MessageExchange exchange)
Test if exchange with consumer is ok.

Specified by:
isExchangeWithConsumerOkay in interface javax.jbi.component.Component
Parameters:
endpoint - the endpoint
exchange - the exchange
Returns:
true if ok

isExchangeWithProviderOkay

public boolean isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint,
                                          javax.jbi.messaging.MessageExchange exchange)
Test if exchange with provider is ok.

Specified by:
isExchangeWithProviderOkay in interface javax.jbi.component.Component
Parameters:
endpoint - the endpoint
exchange - the exchange
Returns:
true if ok

resolveEndpointReference

public javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
Resolve the endpoint reference.

Specified by:
resolveEndpointReference in interface javax.jbi.component.Component
Parameters:
epr - the document fragment
Returns:
the service endpoint

getExtensionMBeanName

public javax.management.ObjectName getExtensionMBeanName()
Get the extension MBean name.

Specified by:
getExtensionMBeanName in interface javax.jbi.component.ComponentLifeCycle
Returns:
the extension Mbean name

init

public void init(javax.jbi.component.ComponentContext context)
          throws javax.jbi.JBIException
Init the component.

Specified by:
init in interface javax.jbi.component.ComponentLifeCycle
Parameters:
context - the context
Throws:
javax.jbi.JBIException - impossible to init the component

getContext

public javax.jbi.component.ComponentContext getContext()
get the context.

Returns:
the component context

getChannel

public javax.jbi.messaging.DeliveryChannel getChannel()
get the delivery channel.

Returns:
the delivery channel

shutDown

public void shutDown()
              throws javax.jbi.JBIException
This function allows to try to shutdown RMI component

Specified by:
shutDown in interface javax.jbi.component.ComponentLifeCycle
Throws:
javax.jbi.JBIException - unexpected event occurred during shutdown component process.


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.