Skip to content

Commit

Permalink
moved some more classes around
Browse files Browse the repository at this point in the history
  • Loading branch information
purplefox committed Jan 6, 2010
1 parent cd38ce5 commit 8329331
Show file tree
Hide file tree
Showing 421 changed files with 596 additions and 604 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

import java.util.Date;

import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.*;
import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.common.example.SpawnedVMSupport;
import org.hornetq.integration.transports.netty.NettyConnectorFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import java.util.HashSet;

import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.core.config.Configuration;
import org.hornetq.core.config.impl.ConfigurationImpl;
import org.hornetq.core.server.HornetQServer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import java.util.Date;
import java.util.HashMap;

import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.*;
import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.core.config.Configuration;
import org.hornetq.core.config.impl.ConfigurationImpl;
import org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

import java.util.Date;

import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.*;
import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.integration.bootstrap.HornetQBootstrapServer;
import org.hornetq.integration.transports.netty.NettyConnectorFactory;

Expand Down
4 changes: 2 additions & 2 deletions examples/core/perf/src/org/hornetq/core/example/PerfBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
import java.util.concurrent.atomic.AtomicLong;
import java.util.logging.Logger;

import org.hornetq.api.core.Message;
import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.*;
import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.api.core.message.Message;
import org.hornetq.integration.transports.netty.NettyConnectorFactory;
import org.hornetq.integration.transports.netty.TransportConstants;
import org.hornetq.utils.TokenBucketLimiter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;

import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.ClientSessionFactory;
import org.hornetq.api.core.client.HornetQClient;
import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.api.jms.HornetQJMSClient;
import org.hornetq.integration.transports.netty.NettyConnectorFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import javax.naming.Context;
import javax.naming.InitialContext;

import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.core.config.Configuration;
import org.hornetq.core.config.impl.ConfigurationImpl;
import org.hornetq.core.server.HornetQServer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import javax.jms.Session;
import javax.jms.TextMessage;

import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.jms.HornetQJMSClient;
import org.hornetq.common.example.HornetQExample;
import org.hornetq.integration.transports.netty.NettyConnectorFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
package org.hornetq.jms.example;

import org.hornetq.api.SimpleString;
import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.api.core.interceptor.Interceptor;
import org.hornetq.api.core.message.Message;
import org.hornetq.api.core.HornetQException;
import org.hornetq.api.core.Interceptor;
import org.hornetq.api.core.Message;
import org.hornetq.core.remoting.Packet;
import org.hornetq.core.remoting.RemotingConnection;
import org.hornetq.core.remoting.impl.wireformat.SessionSendMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import javax.jms.TextMessage;
import javax.naming.InitialContext;

import org.hornetq.api.core.message.Message;
import org.hornetq.api.core.Message;
import org.hornetq.common.example.HornetQExample;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
import javax.jms.Session;
import javax.naming.InitialContext;

import org.hornetq.api.core.Message;
import org.hornetq.api.core.client.ClientSession;
import org.hornetq.api.core.client.SendAcknowledgementHandler;
import org.hornetq.api.core.message.Message;
import org.hornetq.common.example.HornetQExample;
import org.hornetq.jms.client.HornetQSession;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import javax.jms.TransactionRolledBackException;
import javax.naming.InitialContext;

import org.hornetq.api.core.message.Message;
import org.hornetq.api.core.Message;
import org.hornetq.common.example.HornetQExample;

/**
Expand Down
5 changes: 0 additions & 5 deletions src/main/org/hornetq/api/SimpleString.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
*
*/

// TODO - implement an intern() method like in java.lang.String, since many Strings e.g. addresses, queue names, remote node ids are duplicated heavily
//in bindings taking up more memory than they should
//Intern can be called when receiving a sent message at the server (destination)
//Also when receiving bindings remotely via bridge, the address, queue name and node id can be interned
//
public class SimpleString implements CharSequence, Serializable, Comparable<SimpleString>
{
private static final long serialVersionUID = 4204223851422244307L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* permissions and limitations under the License.
*/

package org.hornetq.api.core.buffers;
package org.hornetq.api.core;

import java.nio.ByteBuffer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* permissions and limitations under the License.
*/

package org.hornetq.api.core.buffers;
package org.hornetq.api.core;

import java.nio.ByteBuffer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* permissions and limitations under the License.
*/

package org.hornetq.api.core.exception;
package org.hornetq.api.core;

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
* permissions and limitations under the License.
*/

package org.hornetq.api.core.interceptor;
package org.hornetq.api.core;

import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.core.remoting.Packet;
import org.hornetq.core.remoting.RemotingConnection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
* permissions and limitations under the License.
*/

package org.hornetq.api.core.message;
package org.hornetq.api.core;

import java.util.Map;
import java.util.Set;

import org.hornetq.api.SimpleString;
import org.hornetq.api.core.buffers.HornetQBuffer;

/**
* A Message is a routable instance that has a payload.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* permissions and limitations under the License.
*/

package org.hornetq.api.core.message;
package org.hornetq.api.core;

/**
* A PropertyConversionException is thrown by Message methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package org.hornetq.api.core.config;
package org.hornetq.api.core;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.hornetq.api.core.buffers.HornetQBuffer;
import org.hornetq.utils.UUIDGenerator;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/hornetq/api/core/buffers/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*
* <h2>Usage</h2>
*
* Always use the static methods declared at {@link org.hornetq.api.core.buffers.HornetQBuffers} to create the buffers.
* Always use the static methods declared at {@link org.hornetq.api.core.HornetQBuffers} to create the buffers.
*/
package org.hornetq.api.core.buffers;

2 changes: 1 addition & 1 deletion src/main/org/hornetq/api/core/client/ClientConsumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package org.hornetq.api.core.client;

import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.api.core.HornetQException;

/**
* A ClientConsumer receives messages from HornetQ queues.
Expand Down
4 changes: 2 additions & 2 deletions src/main/org/hornetq/api/core/client/ClientMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import java.io.InputStream;
import java.io.OutputStream;

import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.api.core.message.Message;
import org.hornetq.api.core.HornetQException;
import org.hornetq.api.core.Message;

/**
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/org/hornetq/api/core/client/ClientProducer.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
package org.hornetq.api.core.client;

import org.hornetq.api.SimpleString;
import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.api.core.message.Message;
import org.hornetq.api.core.HornetQException;
import org.hornetq.api.core.Message;

/**
* A ClientProducer is ised to send messages to a specific address. Messages are then routed on the server to any queues
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/hornetq/api/core/client/ClientSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import javax.transaction.xa.XAResource;

import org.hornetq.api.SimpleString;
import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.api.core.HornetQException;

/**
* A ClientSession is a single-thread object required for producing and consuming messages.
Expand Down
10 changes: 5 additions & 5 deletions src/main/org/hornetq/api/core/client/ClientSessionFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
import java.util.List;

import org.hornetq.api.Pair;
import org.hornetq.api.core.HornetQException;
import org.hornetq.api.core.Interceptor;
import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.loadbalance.ConnectionLoadBalancingPolicy;
import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.api.core.interceptor.Interceptor;

/**
* A ClientSessionFactory is the entry point to create and configure HornetQ resources to produce and consume messages.
Expand Down Expand Up @@ -410,7 +410,7 @@ ClientSession createSession(String username,
* assign a group ID to the messages they sent.
*
* if <code>true</code>, a random unique group ID is created and set on each message for the property
* {@link org.hornetq.api.core.message.Message#HDR_GROUP_ID}.
* {@link org.hornetq.api.core.Message#HDR_GROUP_ID}.
* Default value is {@link HornetQClient#DEFAULT_AUTO_GROUP}.
*
* @return whether producers will automatically assign a group ID to their messages
Expand All @@ -426,7 +426,7 @@ ClientSession createSession(String username,
void setAutoGroup(boolean autoGroup);

/**
* Returns the group ID that will be eventually set on each message for the property {@link org.hornetq.api.core.message.Message#HDR_GROUP_ID}.
* Returns the group ID that will be eventually set on each message for the property {@link org.hornetq.api.core.Message#HDR_GROUP_ID}.
*
* Default value is is <code>null</code> and no group ID will be set on the messages.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
import java.util.concurrent.TimeUnit;

import org.hornetq.api.Pair;
import org.hornetq.api.core.HornetQException;
import org.hornetq.api.core.Interceptor;
import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.loadbalance.ConnectionLoadBalancingPolicy;
import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.api.core.interceptor.Interceptor;
import org.hornetq.core.client.impl.ClientSessionFactoryInternal;
import org.hornetq.core.client.impl.FailoverManager;
import org.hornetq.core.client.impl.FailoverManagerImpl;
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/hornetq/api/core/client/HornetQClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
package org.hornetq.api.core.client;

import org.hornetq.api.Pair;
import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy;
import org.hornetq.api.core.config.TransportConfiguration;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package org.hornetq.api.core.client;

import org.hornetq.api.core.message.Message;
import org.hornetq.api.core.Message;

/**
* A SendAcknowledgementHandler notifies a client when an message sent asynchronously has been received by the server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package org.hornetq.api.core.client;

import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.api.core.HornetQException;
import org.hornetq.core.remoting.FailureListener;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import javax.management.MBeanOperationInfo;

import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.api.core.HornetQException;
import org.hornetq.core.config.Configuration;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import java.util.Map;

import org.hornetq.api.SimpleString;
import org.hornetq.api.core.message.Message;
import org.hornetq.api.core.Message;
import org.hornetq.core.logging.Logger;
import org.hornetq.utils.json.JSONArray;
import org.hornetq.utils.json.JSONObject;
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/hornetq/api/jms/HornetQJMSClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
package org.hornetq.api.jms;

import org.hornetq.api.Pair;
import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.ClientSessionFactory;
import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.jms.HornetQConnectionFactory;
import org.hornetq.jms.HornetQQueue;
import org.hornetq.jms.HornetQTopic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class JMSManagementHelper

// Static --------------------------------------------------------

private static org.hornetq.api.core.message.Message getCoreMessage(final Message jmsMessage)
private static org.hornetq.api.core.Message getCoreMessage(final Message jmsMessage)
{
if (jmsMessage instanceof HornetQMessage == false)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

import javax.management.MBeanOperationInfo;

import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.ClientSessionFactory;
import org.hornetq.api.core.config.TransportConfiguration;
import org.hornetq.api.core.management.Operation;
import org.hornetq.api.core.management.Parameter;
import org.hornetq.spi.core.remoting.ConnectorFactory;
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/hornetq/core/asyncio/AsynchronousFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import java.nio.ByteBuffer;

import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.api.core.HornetQException;

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

import org.hornetq.api.core.exception.HornetQException;
import org.hornetq.api.core.HornetQException;
import org.hornetq.core.asyncio.AIOCallback;
import org.hornetq.core.asyncio.AsynchronousFile;
import org.hornetq.core.asyncio.BufferCallback;
Expand Down
Loading

0 comments on commit 8329331

Please sign in to comment.