⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 i_xmlblasterconnection.java

📁 java开源的企业总线.xmlBlaster
💻 JAVA
字号:
/*------------------------------------------------------------------------------Name:      I_XmlBlasterConnection.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE fileComment:   Native Interface to xmlBlasterAuthor:    xmlBlaster@marcelruff.info------------------------------------------------------------------------------*/package org.xmlBlaster.client.protocol;import org.xmlBlaster.client.qos.ConnectReturnQos;import org.xmlBlaster.util.XmlBlasterException;import org.xmlBlaster.util.plugin.I_Plugin;import org.xmlBlaster.util.qos.address.Address;import org.xmlBlaster.util.xbformat.I_ProgressListener;/** * This is the client interface to xmlBlaster. * <p /> * All protocol drivers are accessed through these methods. * We need it to decouple the protocol specific stuff * (like RemoteException from RMI or CORBA exceptions) from * our java client code. * <p /> * Note that you don't need this code, you can access xmlBlaster * with your own lowlevel RMI or CORBA coding as well. * <p /> * If you are interested in a failsafe client connection, consider * using XmlBlasterAccess.java which implements some nice features. * <p> * The plugins which implement this interface do NOT need to be thread safe. * </p> * * @see org.xmlBlaster.client.XmlBlasterAccess * * @author <a href="mailto:xmlBlaster@marcelruff.info">Marcel Ruff</a>. */public interface I_XmlBlasterConnection extends I_Plugin{   /**    * Initialize the driver and verify if the remote side is reachable on the low-level protocol layer.     * Calling this method multiple times will do noting if a low level connection is available.    * @param  address Contains the remote address,    *         e.g. the host and port where the remote server listens    * @exception XmlBlasterException ErrorCode.COMMUNICATION* if the server is not reachable,    *            in this case we can poll for the server.<br />    *            Other errors if for example a malformed address is passed, in this case we stop    *            and give up.    */   public void connectLowlevel(Address address) throws XmlBlasterException;   /**    * Login and authenticate, the authentication schema is transported in the qos.     * You are allowed to call connect multiple times, for example if the physical connection    * is still OK or again OK and you need to re-configure.    * @param connectQos The authentication and other informations (ConnectQos encrypted)    * @return ConnectReturnQos XML string    */   public String connect(String connectQos) throws XmlBlasterException;   /**    * Pass the driver the decrypted and parsed ConnectReturnQos directly after a connect.     * Some driver take the secretSessionId from it or a returned remote address    */   public void setConnectReturnQos(ConnectReturnQos connectReturnQos) throws XmlBlasterException;   /**    * Logout from xmlBlaster.     * @param disconnectQos The QoS or null    */   public boolean disconnect(String disconnectQos) throws XmlBlasterException;   // Could make sense to the SOCKET driver, returns new SocketCallbackImpl   //public I_CallbackServer getCbServerInstance() throws XmlBlasterException;   /**    * @return The connection protocol name "IOR" or "RMI" etc.    */   public String getProtocol();   public void shutdown() throws XmlBlasterException;   /**     * Reset the driver on problems.     * This method is called by the dispatcher framework on transition to POLLING,    * the protocol plugin must be able to establish a new connection after this call    * with a call to connectLowLevel().    */   public void resetConnection();   public boolean isLoggedIn();   /**    * Ping the server on physical level and/or application level (see AvailabilityChecker).     * This ping must be successful if the client can reach the server,    * with or without authentication (with or without connect()).    * @return The StatusQosData string    */   public String ping(String qos) throws XmlBlasterException;   public java.lang.String subscribe(java.lang.String xmlKey, java.lang.String qos) throws XmlBlasterException;   public org.xmlBlaster.util.MsgUnitRaw[] get(java.lang.String xmlKey, java.lang.String qos) throws XmlBlasterException;   public String[] unSubscribe(java.lang.String xmlKey, java.lang.String qos) throws XmlBlasterException;   /**    * @param The msgUnit which is encrypted if a security plugin is activated    */   public String publish(org.xmlBlaster.util.MsgUnitRaw msgUnit) throws XmlBlasterException;   public void publishOneway(org.xmlBlaster.util.MsgUnitRaw [] msgUnitArr) throws XmlBlasterException;   public String[] publishArr(org.xmlBlaster.util.MsgUnitRaw[] msgUnitArr) throws XmlBlasterException;   public java.lang.String[] erase(java.lang.String xmlKey, java.lang.String qos) throws XmlBlasterException;      /**    * Register a listener for to receive information about the progress of incoming data.     * Only one listener is supported, the last call overwrites older calls.    * @param listener Your listener, pass 0 to unregister.    * @return The previously registered listener or 0    */   public I_ProgressListener registerProgressListener(I_ProgressListener listener);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -