1 24 25 package org.objectweb.dream.protocol.utobcast; 26 27 import java.util.Map ; 28 29 import org.objectweb.dream.AbstractComponent; 30 import org.objectweb.dream.Pull; 31 import org.objectweb.dream.PullException; 32 import org.objectweb.dream.Push; 33 import org.objectweb.dream.PushException; 34 import org.objectweb.dream.message.Message; 35 import org.objectweb.dream.message.manager.MessageManager; 36 import org.objectweb.fractal.api.NoSuchInterfaceException; 37 import org.objectweb.fractal.api.control.IllegalBindingException; 38 import org.objectweb.fractal.api.control.IllegalLifeCycleException; 39 40 44 public class PendingMessagesDataStructureImpl extends AbstractComponent 45 implements 46 Push, 47 ReceiveAck, 48 Pull 49 { 50 51 55 59 public static final String PENDING_MESSAGES_OUT_ITF_NAME = "pending-messages-out"; 60 61 62 protected ProcessMembership processMembershipItf; 63 64 65 protected MessageManager messageManagerItf; 66 67 71 74 public PendingMessagesDataStructureImpl() 75 { 76 } 77 78 82 86 public void push(Message message, Map context) throws PushException 87 { 88 } 90 91 95 98 public Message pull(Map context) throws PullException 99 { 100 return null; 102 } 103 104 108 111 public void receiveAck(Message message) 112 { 113 } 115 116 120 124 public void bindFc(String clientItfName, Object serverItf) 125 throws NoSuchInterfaceException, IllegalBindingException, 126 IllegalLifeCycleException 127 { 128 super.bindFc(clientItfName, serverItf); 129 if (clientItfName.equals(ProcessMembership.ITF_NAME)) 130 { 131 processMembershipItf = (ProcessMembership) serverItf; 132 } 133 else if (clientItfName.equals(MessageManager.ITF_NAME)) 134 { 135 messageManagerItf = (MessageManager) serverItf; 136 } 137 138 } 139 140 143 public String [] listFc() 144 { 145 return new String []{ProcessMembership.ITF_NAME, MessageManager.ITF_NAME}; 146 } 147 148 } | Popular Tags |