Package com.hellblazer.slp

Examples of com.hellblazer.slp.ServiceScope.register()


        ServiceURL url2 = new ServiceURL("service:http://foo.bar/one");

        localScope.addServiceListener(serviceListener, "(" + SERVICE_TYPE
                                                       + "=service:http)");

        UUID reference1 = localScope.register(url1,
                                              new HashMap<String, String>());
        localScope.register(url2, new HashMap<String, String>());
        localScope.setProperties(reference1, new HashMap<String, String>());
        localScope.unregister(reference1);
View Full Code Here


        localScope.addServiceListener(serviceListener, "(" + SERVICE_TYPE
                                                       + "=service:http)");

        UUID reference1 = localScope.register(url1,
                                              new HashMap<String, String>());
        localScope.register(url2, new HashMap<String, String>());
        localScope.setProperties(reference1, new HashMap<String, String>());
        localScope.unregister(reference1);

        ArgumentCaptor<ServiceEvent> eventCaptor = ArgumentCaptor.forClass(ServiceEvent.class);
        verify(serviceListener, new Times(4)).serviceChanged(eventCaptor.capture());
View Full Code Here

                                                 executor,
                                                 Generators.randomBasedGenerator());
        ServiceURL url1 = new ServiceURL("service:http://foo.bar/one");
        ServiceURL url2 = new ServiceURL("service:http://foo.bar/two");

        UUID reference1 = localScope.register(url1,
                                              new HashMap<String, String>());
        String serviceType = "service:http";
        assertEquals(url1, localScope.getServiceReference(serviceType).getUrl());

        localScope.register(url2, new HashMap<String, String>());
View Full Code Here

        UUID reference1 = localScope.register(url1,
                                              new HashMap<String, String>());
        String serviceType = "service:http";
        assertEquals(url1, localScope.getServiceReference(serviceType).getUrl());

        localScope.register(url2, new HashMap<String, String>());
        List<ServiceReference> references = localScope.getServiceReferences(serviceType,
                                                                            "");
        assertNotNull(references);
        assertEquals(2, references.size());
        Set<ServiceURL> urls = new HashSet<ServiceURL>();
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.