Package org.rioproject.deploy

Examples of org.rioproject.deploy.ServiceBeanInstantiator


                               final MarshalledObject handback,
                               final ResourceCapability resourceCapability,
                               final List<DeployedService> deployedServices,
                               final int serviceLimit,
                               final long duration) throws LeaseDeniedException, RemoteException {
        ServiceBeanInstantiator instantiator;

        try {
            instantiator = sbi.get();
        } catch (IOException e) {
            throw new LeaseDeniedException("Error calling MarshalledObject.get(), "+e.getLocalizedMessage());
        } catch (ClassNotFoundException e) {
            throw new LeaseDeniedException("Could not load ServiceBeanInstantiator, "+e.getLocalizedMessage());
        }

        if(instantiator instanceof RemoteMethodControl)
            instantiator = (ServiceBeanInstantiator)instantiatorPreparer.prepareProxy(instantiator);
        String name;
        try {
            name = instantiator.getName();
        } catch(Throwable t) {
            name = "Cybernode";
        }

        Uuid uuid=instantiator.getInstantiatorUuid();
        InstantiatorResource resource = new InstantiatorResource(sbi,
                                                                 instantiator,
                                                                 name,
                                                                 uuid,
                                                                 handback,
View Full Code Here


     */
    void handleFeedback(final ServiceBeanInstantiator resource,
                        final ResourceCapability updatedCapabilities,
                        final List<DeployedService> deployedServices,
                        final int serviceLimit) throws UnknownLeaseException, RemoteException {
        ServiceBeanInstantiator preparedResource = resource;
        if(resource instanceof RemoteMethodControl)
            preparedResource = (ServiceBeanInstantiator)instantiatorPreparer.prepareProxy(resource);
        if(logger.isTraceEnabled())
            logger.trace("Calling {}", selector.getClass().getName());
        ServiceResource[] svcResources = selector.getServiceResources();
View Full Code Here

TOP

Related Classes of org.rioproject.deploy.ServiceBeanInstantiator

Copyright © 2018 www.massapicom. 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.