Package org.apache.tuscany.sca.endpoint.tribes.AbstractReplicatedMap

Examples of org.apache.tuscany.sca.endpoint.tribes.AbstractReplicatedMap.MapEntry


            for (Object v : map.values()) {
                Endpoint endpoint = (Endpoint)v;
                // TODO: implement more complete matching
                logger.fine("Matching against - " + endpoint);
                if (endpoint.matches(uri)) {
                    MapEntry entry = map.getInternal(endpoint.getURI());
                    // if (!entry.isPrimary()) {
                    ((RuntimeEndpoint)endpoint).bind(registry, this);
                    // }
                    foundEndpoints.add(endpoint);
                    logger.fine("Found endpoint with matching service  - " + endpoint);
View Full Code Here


        }
        map.put(endpoint.getURI(), endpoint);
    }

    public void entryAdded(Object key, Object value) {
        MapEntry entry = (MapEntry)value;
        Endpoint newEp = (Endpoint)entry.getValue();
        if (!isLocal(entry)) {
            logger.info(id + " Remote endpoint added: " + entry.getValue());
        }
        endpointAdded(newEp);
    }
View Full Code Here

        }
        endpointAdded(newEp);
    }

    public void entryRemoved(Object key, Object value) {
        MapEntry entry = (MapEntry)value;
        if (!isLocal(entry)) {
            logger.info(id + " Remote endpoint removed: " + entry.getValue());
        }
        endpointRemoved((Endpoint)entry.getValue());
    }
View Full Code Here

        }
        endpointRemoved((Endpoint)entry.getValue());
    }

    public void entryUpdated(Object key, Object oldValue, Object newValue) {
        MapEntry oldEntry = (MapEntry)oldValue;
        MapEntry newEntry = (MapEntry)newValue;
        if (!isLocal(newEntry)) {
            logger.info(id + " Remote endpoint updated: " + newEntry.getValue());
        }
        Endpoint oldEp = (Endpoint)oldEntry.getValue();
        Endpoint newEp = (Endpoint)newEntry.getValue();
        endpointUpdated(oldEp, newEp);
    }
View Full Code Here

            for (Object v : map.values()) {
                Endpoint endpoint = (Endpoint)v;
                // TODO: implement more complete matching
                logger.fine("Matching against - " + endpoint);
                if (endpoint.matches(uri)) {
                    MapEntry entry = map.getInternal(endpoint.getURI());
                    // if (!entry.isPrimary()) {
                    ((RuntimeEndpoint)endpoint).bind(registry, this);
                    // }
                    foundEndpoints.add(endpoint);
                    logger.fine("Found endpoint with matching service  - " + endpoint);
View Full Code Here

        }
        map.put(endpoint.getURI(), endpoint);
    }

    public void entryAdded(Object key, Object value) {
        MapEntry entry = (MapEntry)value;
        Endpoint newEp = (Endpoint)entry.getValue();
        if (!isLocal(entry)) {
            logger.info(id + " Remote endpoint added: " + entry.getValue());
        }
        endpointAdded(newEp);
    }
View Full Code Here

        }
        endpointAdded(newEp);
    }

    public void entryRemoved(Object key, Object value) {
        MapEntry entry = (MapEntry)value;
        if (!isLocal(entry)) {
            logger.info(id + " Remote endpoint removed: " + entry.getValue());
        }
        endpointRemoved((Endpoint)entry.getValue());
    }
View Full Code Here

        }
        endpointRemoved((Endpoint)entry.getValue());
    }

    public void entryUpdated(Object key, Object oldValue, Object newValue) {
        MapEntry oldEntry = (MapEntry)oldValue;
        MapEntry newEntry = (MapEntry)newValue;
        if (!isLocal(newEntry)) {
            logger.info(id + " Remote endpoint updated: " + newEntry.getValue());
        }
        Endpoint oldEp = (Endpoint)oldEntry.getValue();
        Endpoint newEp = (Endpoint)newEntry.getValue();
        endpointUpdated(oldEp, newEp);
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.endpoint.tribes.AbstractReplicatedMap.MapEntry

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.