Examples of AbstractServiceEndpoint


Examples of org.apache.servicemix.jbi.servicedesc.AbstractServiceEndpoint

     */
    public Document getEndpointDescriptor(ServiceEndpoint endpoint) throws JBIException {
        if (!(endpoint instanceof AbstractServiceEndpoint)) {
            throw new JBIException("Descriptors can not be queried for external endpoints");
        }
        AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoint;
        // TODO: what if the endpoint is linked or dynamic
        ComponentMBeanImpl component = getComponent(se.getComponentNameSpace());
        return component.getComponent().getServiceDescription(endpoint);
    }
View Full Code Here

Examples of org.apache.servicemix.jbi.servicedesc.AbstractServiceEndpoint

            }
        };
        container.addListener(endpointListener);
        // add endpoints that were registered before we added the listener
        for (Endpoint mbean : container.getRegistry().getEndpointRegistry().getEndpointMBeans()) {
            AbstractServiceEndpoint endpoint =
                (AbstractServiceEndpoint) container.getEndpoint(container.getComponent(mbean.getComponentName()).getContext(),
                                                                mbean.getServiceName(), mbean.getEndpointName());
            createEndpointStats(container, endpoint);
        }
    }
View Full Code Here

Examples of org.apache.servicemix.jbi.servicedesc.AbstractServiceEndpoint

     */
    public Document getEndpointDescriptor(ServiceEndpoint endpoint) throws JBIException {
        if (endpoint instanceof AbstractServiceEndpoint == false) {
            throw new JBIException("Descriptors can not be queried for external endpoints");
        }
        AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoint;
        // TODO: what if the endpoint is linked or dynamic
        ComponentMBeanImpl component = getComponent(se.getComponentNameSpace());
        return component.getComponent().getServiceDescription(endpoint);
    }
View Full Code Here

Examples of org.apache.servicemix.jbi.servicedesc.AbstractServiceEndpoint

            }
        }
    }
   
    protected void onEndpointRegistered(EndpointEvent event) {
        AbstractServiceEndpoint endpoint = (AbstractServiceEndpoint) event.getEndpoint();
        String key = EndpointSupport.getUniqueKey(endpoint);
        ComponentStats compStats = (ComponentStats) componentStats.get(endpoint.getComponentNameSpace().getName());
        EndpointStats stats = new EndpointStats(endpoint, compStats.getMessagingStats());
        endpointStats.putIfAbsent(key, stats);
        // Register MBean
        ManagementContext context= container.getManagementContext();
        try {
View Full Code Here

Examples of org.apache.servicemix.jbi.servicedesc.AbstractServiceEndpoint

            }
        }
    }
   
    protected void onEndpointUnregistered(EndpointEvent event) {
        AbstractServiceEndpoint endpoint = (AbstractServiceEndpoint) event.getEndpoint();
        String key = EndpointSupport.getUniqueKey(endpoint);
        EndpointStats stats = (EndpointStats) endpointStats.remove(key);
        // Register MBean
        ManagementContext context= container.getManagementContext();
        try {
View Full Code Here

Examples of org.mule.jbi.servicedesc.AbstractServiceEndpoint

  protected ServiceEndpoint[] getPossibleEndpoints(MessageExchange me, ServiceEndpoint[] endpoints) {
    List result = new ArrayList();

    for (int i = 0; i < endpoints.length; i++) {
      AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoints[i];
      String compName = se.getComponent();
      RegistryComponent compInfo = container.getRegistry().getComponent(compName);
      if (me.getRole() == MessageExchange.Role.CONSUMER) {
        if (((Component)compInfo.getComponent()).isExchangeWithConsumerOkay(se, me)) {
          result.add(se);
        }
View Full Code Here

Examples of org.mule.jbi.servicedesc.AbstractServiceEndpoint

      throw new JBIException("Endpoint is already registered");
    }
    if (!(endpoint instanceof InternalEndpointImpl)) {
      throw new IllegalArgumentException("endpoint should be a " + InternalEndpointImpl.class.getName());
    }
    AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoint;
    se.setActive(true);
    this.internalEndpoints.add(se);
  }
View Full Code Here

Examples of org.mule.jbi.servicedesc.AbstractServiceEndpoint

      throw new JBIException("Endpoint is not registered");
    }
    if (!(endpoint instanceof InternalEndpointImpl)) {
      throw new IllegalArgumentException("endpoint should be a " + InternalEndpointImpl.class.getName());
    }
    AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoint;
    se.setActive(false);
    this.internalEndpoints.remove(se);
  }
View Full Code Here

Examples of org.mule.jbi.servicedesc.AbstractServiceEndpoint

      throw new JBIException("Endpoint is already registered");
    }
    if (!(endpoint instanceof ExternalEndpointImpl)) {
      throw new IllegalArgumentException("endpoint should be a " + ExternalEndpointImpl.class.getName());
    }
    AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoint;
    se.setActive(true);
    this.externalEndpoints.add(se);
  }
View Full Code Here

Examples of org.mule.jbi.servicedesc.AbstractServiceEndpoint

      throw new JBIException("Endpoint is not registered");
    }
    if (!(endpoint instanceof ExternalEndpointImpl)) {
      throw new IllegalArgumentException("endpoint should be a " + ExternalEndpointImpl.class.getName());
    }
    AbstractServiceEndpoint se = (AbstractServiceEndpoint) endpoint;
    se.setActive(false);
    this.externalEndpoints.remove(se);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.