Examples of CommChannel


Examples of org.apache.ode.jacob.soup.CommChannel

        }

        Integer id = Integer.valueOf(exportId);
        ChannelFrame cframe = findChannelFrame(id);
        cframe.refCount--;
        CommChannel commChannel = new CommChannel(cframe.type);
        commChannel.setId(id);
        commChannel.setDescription("EXPORTED CHANNEL");
        return commChannel;
    }
View Full Code Here

Examples of org.apache.ode.jacob.soup.CommChannel

        protected Object replaceObject(Object obj) throws IOException {
            if (!Serializable.class.isAssignableFrom(obj.getClass()))
                return null;

            if (obj instanceof org.apache.ode.jacob.Channel) {
                CommChannel commChannel = (CommChannel) ChannelFactory.getBackend((Channel) obj);
                _serializedChannels.add(commChannel.getId());
                return new ChannelRef(commChannel.getType(), (Integer) commChannel.getId());
            } else if (_replacementMap != null && _replacementMap.isReplaceable(obj)) {
                Object replacement = _replacementMap.getReplacement(obj);
                if (__log.isDebugEnabled())
                    __log.debug("ReplacmentMap: getReplacement(" + obj + ") = " + replacement);
                return replacement;
View Full Code Here

Examples of org.apache.ode.jacob.soup.CommChannel

            if (obj instanceof ChannelRef) {
                // We know this is a channel reference, so we have to resolve
                // the channel.
                ChannelRef oref = (ChannelRef) obj;
                CommChannel channel = new CommChannel(oref._type);
                channel.setId(oref._id);
                _deserializedChannels.add(channel);
                resolved = ChannelFactory.createChannel(channel, channel.getType());
            } else if (_replacementMap != null && _replacementMap.isReplacement(obj)) {
                resolved = _replacementMap.getOriginal(obj);
                if (__log.isDebugEnabled()) {
                    __log.debug("ReplacementMap: getOriginal(" + obj + ") = " + resolved);
                }
View Full Code Here

Examples of org.apache.ode.jacob.soup.CommChannel

        protected Object replaceObject(Object obj) throws IOException {
            if (!Serializable.class.isAssignableFrom(obj.getClass()))
                return null;

            if (obj instanceof org.apache.ode.jacob.Channel) {
                CommChannel commChannel = (CommChannel) ChannelFactory.getBackend((Channel) obj);
                _serializedChannels.add(commChannel.getId());
                return new ChannelRef(commChannel.getType(), (Integer) commChannel.getId());
            } else if (_replacementMap != null && _replacementMap.isReplaceable(obj)) {
                Object replacement = _replacementMap.getReplacement(obj);
                if (__log.isDebugEnabled())
                    __log.debug("ReplacmentMap: getReplacement(" + obj + ") = " + replacement);
                return replacement;
View Full Code Here

Examples of org.apache.ode.jacob.soup.CommChannel

            if (obj instanceof ChannelRef) {
                // We know this is a channel reference, so we have to resolve
                // the channel.
                ChannelRef oref = (ChannelRef) obj;
                CommChannel channel = new CommChannel(oref._type);
                channel.setId(oref._id);
                _deserializedChannels.add(channel);
                resolved = ChannelFactory.createChannel(channel, channel.getType());
            } else if (_replacementMap != null && _replacementMap.isReplacement(obj)) {
                resolved = _replacementMap.getOriginal(obj);
                if (__log.isDebugEnabled()) {
                    __log.debug("ReplacementMap: getOriginal(" + obj + ") = " + resolved);
                }
View Full Code Here

Examples of org.apache.ode.jacob.soup.CommChannel

        }

        Integer id = Integer.valueOf(exportId);
        ChannelFrame cframe = findChannelFrame(id);
        cframe.refCount--;
        CommChannel commChannel = new CommChannel(cframe.type);
        commChannel.setId(id);
        commChannel.setDescription("EXPORTED CHANNEL");
        return commChannel;
    }
View Full Code Here

Examples of org.apache.ode.jacob.soup.CommChannel

        }

        Integer id = Integer.valueOf(exportId);
        ChannelFrame cframe = findChannelFrame(id);
        cframe.refCount--;
        CommChannel commChannel = new CommChannel(cframe.type);
        commChannel.setId(id);
        commChannel.setDescription("EXPORTED CHANNEL");
        return commChannel;
    }
View Full Code Here

Examples of org.apache.ode.jacob.soup.CommChannel

        protected Object replaceObject(Object obj) throws IOException {
            if (!Serializable.class.isAssignableFrom(obj.getClass()))
                return null;

            if (obj instanceof org.apache.ode.jacob.Channel) {
                CommChannel commChannel = (CommChannel) ChannelFactory.getBackend((Channel) obj);
                _serializedChannels.add(commChannel.getId());
                return new ChannelRef(commChannel.getType(), (Integer) commChannel.getId());
            } else if (_replacementMap != null && _replacementMap.isReplaceable(obj)) {
                Object replacement = _replacementMap.getReplacement(obj);
                if (__log.isDebugEnabled())
                    __log.debug("ReplacmentMap: getReplacement(" + obj + ") = " + replacement);
                return replacement;
View Full Code Here

Examples of org.apache.ode.jacob.soup.CommChannel

            if (obj instanceof ChannelRef) {
                // We know this is a channel reference, so we have to resolve
                // the channel.
                ChannelRef oref = (ChannelRef) obj;
                CommChannel channel = new CommChannel(oref._type);
                channel.setId(oref._id);
                _deserializedChannels.add(channel);
                resolved = ChannelFactory.createChannel(channel, channel.getType());
            } else if (_replacementMap != null && _replacementMap.isReplacement(obj)) {
                resolved = _replacementMap.getOriginal(obj);
                if (__log.isDebugEnabled()) {
                    __log.debug("ReplacementMap: getOriginal(" + obj + ") = " + resolved);
                }
View Full Code Here

Examples of org.apache.ode.jacob.soup.CommChannel

        protected Object replaceObject(Object obj) throws IOException {
            if (!Serializable.class.isAssignableFrom(obj.getClass()))
                return null;

            if (obj instanceof org.apache.ode.jacob.Channel) {
                CommChannel commChannel = (CommChannel) ChannelFactory.getBackend((Channel) obj);
                _serializedChannels.add(commChannel.getId());
                return new ChannelRef(commChannel.getType(), (Integer) commChannel.getId());
            } else if (_replacementMap != null && _replacementMap.isReplaceable(obj)) {
                Object replacement = _replacementMap.getReplacement(obj);
                if (__log.isDebugEnabled())
                    __log.debug("ReplacmentMap: getReplacement(" + obj + ") = " + replacement);
                return replacement;
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.