From do-not-reply at jboss.org Thu Nov 24 07:24:55 2011
Content-Type: multipart/mixed; boundary="===============2237577148058658422=="
MIME-Version: 1.0
From: do-not-reply at jboss.org
To: hornetq-commits at lists.jboss.org
Subject: [hornetq-commits] JBoss hornetq SVN: r11754 - in
trunk/hornetq-core/src/main/java/org/hornetq: core/config and 2 other
directories.
Date: Thu, 24 Nov 2011 07:24:54 -0500
Message-ID: <201111241224.pAOCOsVQ031159@svn01.web.mwc.hst.phx2.redhat.com>
--===============2237577148058658422==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: borges
Date: 2011-11-24 07:24:54 -0500 (Thu, 24 Nov 2011)
New Revision: 11754
Modified:
trunk/hornetq-core/src/main/java/org/hornetq/api/core/TransportConfigura=
tion.java
trunk/hornetq-core/src/main/java/org/hornetq/core/config/ClusterConnecti=
onConfiguration.java
trunk/hornetq-core/src/main/java/org/hornetq/core/protocol/core/Channel.=
java
trunk/hornetq-core/src/main/java/org/hornetq/core/server/HornetQServer.j=
ava
Log:
Improve Javadocs
Modified: trunk/hornetq-core/src/main/java/org/hornetq/api/core/TransportCo=
nfiguration.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/hornetq-core/src/main/java/org/hornetq/api/core/TransportConfigur=
ation.java 2011-11-24 12:24:34 UTC (rev 11753)
+++ trunk/hornetq-core/src/main/java/org/hornetq/api/core/TransportConfigur=
ation.java 2011-11-24 12:24:54 UTC (rev 11754)
@@ -19,19 +19,21 @@
import org.hornetq.utils.UUIDGenerator;
=
/**
- * A TransportConfiguration is used by a client to specify a connections t=
o a server and its backup if one exists.
+ * A TransportConfiguration is used by a client to specify connections to =
a server and its backup if
+ * one exists.
+ *
+ * Typically the constructors take the class name and parameters for neede= d to create the + * connection. These will be different dependent on which connector is bei= ng used, i.e. Netty or + * InVM etc. For example: *
- * Typically the constructors take the class name and parameters for neede= d to create the connection. These will be - * different dependent on which connector is being used, i.e. Netty or InV= M etc. For example:
- * HashMap map =3D new HashMap();
- * map.put("host", "localhost");
- * map.put("port", 5445);
- * TransportConfiguration config =3D new TransportConfiguration(InVMConnec=
torFactory.class.getName(), map);
- * ClientSessionFactory sf =3D new ClientSessionFactoryImpl(config);
- *
+ * HashMap<String, Object> map =3D new HashMap<String, Object>= (); + * map.put("host", "localhost"); + * map.put("port", 5445); + * TransportConfiguration config =3D new TransportConfiguration(InVMConnec= torFactory.class.getName(), map); + * ClientSessionFactory sf =3D new ClientSessionFactoryImpl(config); + ** @author Tim Fox */ public class TransportConfiguration implements Serializable Modified: trunk/hornetq-core/src/main/java/org/hornetq/core/config/ClusterC= onnectionConfiguration.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hornetq-core/src/main/java/org/hornetq/core/config/ClusterConnect= ionConfiguration.java 2011-11-24 12:24:34 UTC (rev 11753) +++ trunk/hornetq-core/src/main/java/org/hornetq/core/config/ClusterConnect= ionConfiguration.java 2011-11-24 12:24:54 UTC (rev 11754) @@ -23,10 +23,6 @@ * A ClusterConnectionConfiguration * * @author Tim Fox - * = - * Created 13 Jan 2009 09:42:17 - * - * */ public class ClusterConnectionConfiguration implements Serializable { Modified: trunk/hornetq-core/src/main/java/org/hornetq/core/protocol/core/C= hannel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hornetq-core/src/main/java/org/hornetq/core/protocol/core/Channel= .java 2011-11-24 12:24:34 UTC (rev 11753) +++ trunk/hornetq-core/src/main/java/org/hornetq/core/protocol/core/Channel= .java 2011-11-24 12:24:54 UTC (rev 11754) @@ -36,7 +36,7 @@ * @return the id */ long getID(); - = + /** For protocol check */ boolean supports(byte packetID); = @@ -46,7 +46,7 @@ * @param packet the packet to send */ void send(Packet packet); - = + /** * sends a packet on this channel using batching algorithm if appropria= te * @@ -71,8 +71,8 @@ Packet sendBlocking(Packet packet) throws HornetQException; = /** - * sets the {@link org.hornetq.core.protocol.core.ChannelHandler} that = this channel should forward received packets to. - * + * Sets the {@link org.hornetq.core.protocol.core.ChannelHandler} that = this channel should + * forward received packets to. * @param handler the handler */ void setHandler(ChannelHandler handler); @@ -134,7 +134,7 @@ Lock getLock(); = /** - * returns the Remoting Connection being used by the channel + * returns the {@link CoreRemotingConnection} being used by the channel */ CoreRemotingConnection getConnection(); = Modified: trunk/hornetq-core/src/main/java/org/hornetq/core/server/HornetQS= erver.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hornetq-core/src/main/java/org/hornetq/core/server/HornetQServer.= java 2011-11-24 12:24:34 UTC (rev 11753) +++ trunk/hornetq-core/src/main/java/org/hornetq/core/server/HornetQServer.= java 2011-11-24 12:24:54 UTC (rev 11754) @@ -48,19 +48,28 @@ import org.hornetq.utils.ExecutorFactory; = /** - * This interface defines the internal interface of the HornetQ Server exp= osed to other components of the server. The - * external management interface of the HornetQ Server is defined by the H= ornetQServerManagement interface This - * interface is never exposed outside the HornetQ server, e.g. by JMX or o= ther means - * + * This interface defines the internal interface of the HornetQ Server exp= osed to other components + * of the server. + *
+ * The external management interface of the HornetQ Server is defined by t= he HornetQServerManagement + * interface. + *
+ * This interface is never exposed outside the HornetQ server, e.g. by JMX= or other means * @author Tim Fox * @author Andy Taylor */ public interface HornetQServer extends HornetQComponent { = - /** This method was created mainly for testing but it may be used in sc= enarios where - * you need to have more than one Server inside the same VM. - * This identity will be exposed on logs what may help you to debug is= sues on the log traces and debugs.*/ + /** + * Sets the server identity. + *
+ * The identity will be exposed on logs. It may help to debug issues on= the log traces and + * debugs. + *
+ * This method was created mainly for testing but it may be used in sce= narios where you need to + * have more than one Server inside the same VM. + */ void setIdentity(String identity); = String getIdentity(); @@ -85,9 +94,7 @@ = /** * Returns the resource to manage this HornetQ server. - * - * Using this control will throw IllegalStateException if the - * server is not properly started. + * @throws IllegalStateException if the server is not properly started. */ HornetQServerControlImpl getHornetQServerControl(); = --===============2237577148058658422==--