Package org.codehaus.wadi.servicespace

Examples of org.codehaus.wadi.servicespace.InvocationMetaData


        ServiceSpace serviceSpace = WADISessionManager.getServiceSpace();
        ServiceProxyFactory proxyFactory = serviceSpace.getServiceProxyFactory(NodeServiceTracker.NAME,
                new Class[] { NodeServiceTracker.class });

        InvocationMetaData invocationMetaData = proxyFactory.getInvocationMetaData();
        invocationMetaData.setOneWay(true);

        ServiceProxy proxy = proxyFactory.getProxy();

        return (NodeServiceTracker) proxy;
View Full Code Here


        NetworkConnectorTrackerProxy proxy = (NetworkConnectorTrackerProxy) mock(NetworkConnectorTrackerProxy.class,
            "NetworkConnectorTrackerProxy2");
        trackerProxyFactory.getProxy();
        modify().returnValue(proxy);
       
        InvocationMetaData invocationMetaData = (InvocationMetaData) mock(InvocationMetaData.class);
        proxy.getInvocationMetaData();
        modify().returnValue(invocationMetaData);
        invocationMetaData.setTargets(new Peer[] {joiningPeer});
       
        proxy.registerNetworkConnectorLocations("deploymentId", nodeName, Collections.singleton(new URI("ejbd://host:1")));
       
        startVerificationAndDoStartMonitor();
       
View Full Code Here

    protected ServiceProxyFactory newNetworkConnectorTrackerProxy() {
        ServiceSpace serviceSpace = sessionManager.getServiceSpace();
        ServiceProxyFactory proxyFactory = serviceSpace.getServiceProxyFactory(NetworkConnectorTracker.NAME,
            new Class[] { NetworkConnectorTracker.class });
        InvocationMetaData invocationMetaData = proxyFactory.getInvocationMetaData();
        invocationMetaData.setOneWay(true);
        return proxyFactory;
    }
View Full Code Here

    }

    public NodeService getNodeServiceProxy(Peer peer) {
        ServiceProxyFactory proxyFactory = serviceSpace.getServiceProxyFactory(NodeService.SERVICE_NAME,
            new Class[] { NodeService.class });
        InvocationMetaData invocationMetaData = proxyFactory.getInvocationMetaData();
        invocationMetaData.setTargets(new Peer[] {peer});
        return (NodeService) proxyFactory.getProxy();
    }
View Full Code Here

        Peer peer = (Peer) mock(Peer.class);
        ServiceProxyFactory proxyFactory =
            serviceSpace.getServiceProxyFactory(NodeService.SERVICE_NAME, new Class[] {NodeService.class});
        proxyFactory.getInvocationMetaData();

        InvocationMetaData invMetaData = (InvocationMetaData) intercept(InvocationMetaData.class, "InvocationMetaData");
        modify().returnValue(invMetaData);

        invMetaData.setTargets(new Peer[] {peer});
       
        proxyFactory.getProxy();
        modify().returnValue(nodeService);
       
        startVerification();
View Full Code Here

TOP

Related Classes of org.codehaus.wadi.servicespace.InvocationMetaData

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.