Package org.jboss.jms.wireformat

Source Code of org.jboss.jms.wireformat.ConnectionFactoryGetTopologyRequest

/*    */ package org.jboss.jms.wireformat;
/*    */
/*    */ import java.io.DataInputStream;
/*    */ import java.io.DataOutputStream;
/*    */ import org.jboss.jms.delegate.ConnectionFactoryEndpoint;
/*    */ import org.jboss.messaging.util.Version;
/*    */
/*    */ public class ConnectionFactoryGetTopologyRequest extends RequestSupport
/*    */ {
/*    */   public ConnectionFactoryGetTopologyRequest()
/*    */   {
/*    */   }
/*    */
/*    */   public ConnectionFactoryGetTopologyRequest(String objectId)
/*    */   {
/* 52 */     super(objectId, 105, Version.instance().getProviderIncrementingVersion());
/*    */   }
/*    */
/*    */   public void write(DataOutputStream os)
/*    */     throws Exception
/*    */   {
/* 60 */     super.write(os);
/* 61 */     os.flush();
/*    */   }
/*    */
/*    */   public void read(DataInputStream is) throws Exception
/*    */   {
/* 66 */     super.read(is);
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 71 */     ConnectionFactoryEndpoint endpoint = (ConnectionFactoryEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 74 */     if (endpoint == null)
/*    */     {
/* 76 */       throw new IllegalStateException("Cannot find object with ID " + this.objectId + " in dispatcher");
/*    */     }
/*    */
/* 79 */     return new ConnectionFactoryGetTopologyResponse(endpoint.getTopology());
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.jms.wireformat.ConnectionFactoryGetTopologyRequest
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.jms.wireformat.ConnectionFactoryGetTopologyRequest

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.