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.Push; 31 import org.objectweb.dream.PushException; 32 import org.objectweb.dream.message.Message; 33 import org.objectweb.dream.message.manager.MessageManager; 34 import org.objectweb.fractal.api.NoSuchInterfaceException; 35 import org.objectweb.fractal.api.control.IllegalBindingException; 36 import org.objectweb.fractal.api.control.IllegalLifeCycleException; 37 38 43 public class BAKImpl extends AbstractComponent implements Push 44 { 45 46 50 51 protected ProcessMembership processMembershipItf; 52 53 54 protected MessageManager messageManagerItf; 55 56 60 63 public BAKImpl() 64 { 65 } 66 67 71 75 public void push(Message message, Map context) throws PushException 76 { 77 } 79 80 84 88 public void bindFc(String clientItfName, Object serverItf) 89 throws NoSuchInterfaceException, IllegalBindingException, 90 IllegalLifeCycleException 91 { 92 super.bindFc(clientItfName, serverItf); 93 if (clientItfName.equals(ProcessMembership.ITF_NAME)) 94 { 95 processMembershipItf = (ProcessMembership) serverItf; 96 } 97 else if (clientItfName.equals(MessageManager.ITF_NAME)) 98 { 99 messageManagerItf = (MessageManager) serverItf; 100 } 101 } 102 103 106 public String [] listFc() 107 { 108 return new String []{ProcessMembership.ITF_NAME, MessageManager.ITF_NAME}; 109 } 110 111 } | Popular Tags |