1 10 11 package org.mule.umo.provider; 12 13 import org.mule.umo.MessagingException; 14 import org.mule.umo.UMOComponent; 15 import org.mule.umo.UMOException; 16 import org.mule.umo.endpoint.UMOEndpoint; 17 import org.mule.umo.endpoint.UMOImmutableEndpoint; 18 import org.mule.umo.lifecycle.Disposable; 19 import org.mule.umo.lifecycle.Initialisable; 20 21 import java.beans.ExceptionListener ; 22 import java.io.InputStream ; 23 import java.io.OutputStream ; 24 25 32 public interface UMOConnector extends Disposable, Initialisable 33 { 34 public static final int INT_VALUE_NOT_SET = -1; 35 36 46 UMOMessageReceiver registerListener(UMOComponent component, UMOEndpoint endpoint) throws Exception ; 47 48 55 void unregisterListener(UMOComponent component, UMOEndpoint endpoint) throws Exception ; 56 57 60 boolean isStarted(); 61 62 66 boolean isDisposed(); 67 68 72 boolean isDisposing(); 73 74 84 UMOMessageAdapter getMessageAdapter(Object message) throws MessagingException; 85 86 97 UMOStreamMessageAdapter getStreamMessageAdapter(InputStream in, OutputStream out) 98 throws MessagingException; 99 100 103 String getName(); 104 105 108 void setName(String newName); 109 110 113 String getProtocol(); 114 115 118 boolean supportsProtocol(String protocol); 119 120 129 UMOMessageDispatcher getDispatcher(UMOImmutableEndpoint endpoint) throws UMOException; 130 131 135 void setExceptionListener(ExceptionListener listener); 136 137 141 ExceptionListener getExceptionListener(); 142 143 146 void handleException(Exception exception); 147 148 154 void setDispatcherFactory(UMOMessageDispatcherFactory factory); 155 156 162 UMOMessageDispatcherFactory getDispatcherFactory(); 163 164 public void startConnector() throws UMOException; 165 166 public void stopConnector() throws UMOException; 167 168 public boolean isRemoteSyncEnabled(); 169 } 170 | Popular Tags |