Permalink
Browse files

Rename package paxos -> pasc.paxos

  • Loading branch information...
1 parent c5fb897 commit 1573aface262f18f219a977f7ddacc8f85ae48d7 @dgomezferro committed May 4, 2012
Showing with 236 additions and 239 deletions.
  1. +12 −15 pom.xml
  2. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/client/Barrier.java
  3. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/client/ClientInterface.java
  4. +2 −2 src/main/java/com/yahoo/{ → pasc}/paxos/client/ClientState.java
  5. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/client/Connected.java
  6. +11 −11 src/main/java/com/yahoo/{ → pasc}/paxos/client/PaxosClient.java
  7. +7 −7 src/main/java/com/yahoo/{ → pasc}/paxos/client/PaxosClientHandler.java
  8. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/client/PaxosInterface.java
  9. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/client/SimpleClient.java
  10. +4 −4 src/main/java/com/yahoo/{ → pasc}/paxos/client/handlers/HelloHandler.java
  11. +4 −4 src/main/java/com/yahoo/{ → pasc}/paxos/client/handlers/ReplyHandler.java
  12. +5 −5 src/main/java/com/yahoo/{ → pasc}/paxos/client/handlers/SubmitHandler.java
  13. +4 −4 src/main/java/com/yahoo/{ → pasc}/paxos/client/handlers/TimeoutHandler.java
  14. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/client/messages/Received.java
  15. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/client/messages/Submit.java
  16. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/client/messages/Timeout.java
  17. +5 −5 src/main/java/com/yahoo/{ → pasc}/paxos/handlers/DigestHandler.java
  18. +4 −4 src/main/java/com/yahoo/{ → pasc}/paxos/handlers/PaxosHandler.java
  19. +10 −10 src/main/java/com/yahoo/{ → pasc}/paxos/handlers/acceptor/AcceptorAccept.java
  20. +5 −5 src/main/java/com/yahoo/{ → pasc}/paxos/handlers/acceptor/AcceptorPrepare.java
  21. +8 −8 src/main/java/com/yahoo/{ → pasc}/paxos/handlers/learner/Learner.java
  22. +9 −9 src/main/java/com/yahoo/{ → pasc}/paxos/handlers/learner/LearnerPreReply.java
  23. +5 −5 src/main/java/com/yahoo/{ → pasc}/paxos/handlers/proposer/ProposerPrepared.java
  24. +14 −14 src/main/java/com/yahoo/{ → pasc}/paxos/handlers/proposer/ProposerRequest.java
  25. +5 −5 src/main/java/com/yahoo/{ → pasc}/paxos/messages/Accept.java
  26. +2 −2 src/main/java/com/yahoo/{ → pasc}/paxos/messages/Accepted.java
  27. +2 −2 src/main/java/com/yahoo/{ → pasc}/paxos/messages/Digest.java
  28. +4 −4 src/main/java/com/yahoo/{ → pasc}/paxos/messages/Execute.java
  29. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/messages/Hello.java
  30. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/messages/InlineRequest.java
  31. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/messages/MessageType.java
  32. +2 −2 src/main/java/com/yahoo/{ → pasc}/paxos/messages/PaxosDescriptor.java
  33. +4 −4 src/main/java/com/yahoo/{ → pasc}/paxos/messages/PaxosMessage.java
  34. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/messages/PreReply.java
  35. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/messages/Prepare.java
  36. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/messages/Prepared.java
  37. +3 −3 src/main/java/com/yahoo/{ → pasc}/paxos/messages/Reply.java
  38. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/messages/Request.java
  39. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/messages/serialization/BufferPool.java
  40. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/messages/serialization/CRC32Pool.java
  41. +11 −11 src/main/java/com/yahoo/{ → pasc}/paxos/messages/serialization/ManualDecoder.java
  42. +10 −10 src/main/java/com/yahoo/{ → pasc}/paxos/messages/serialization/ManualEncoder.java
  43. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/messages/serialization/PureJavaCrc32.java
  44. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/server/ChannelDownstreamEventRunnable.java
  45. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/server/DownstreamExecutionHandler.java
  46. +20 −20 src/main/java/com/yahoo/{ → pasc}/paxos/server/PaxosServer.java
  47. +4 −4 src/main/java/com/yahoo/{ → pasc}/paxos/server/PipelineFactory.java
  48. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/server/ServerConnection.java
  49. +10 −10 src/main/java/com/yahoo/{ → pasc}/paxos/server/ServerHandler.java
  50. +8 −8 src/main/java/com/yahoo/{ → pasc}/paxos/server/tcp/TcpServer.java
  51. +5 −5 src/main/java/com/yahoo/{ → pasc}/paxos/server/udp/UdpServer.java
  52. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/state/ApplicationState.java
  53. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/state/ClientTimestamp.java
  54. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/state/DigestStore.java
  55. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/state/IidAcceptorsCounts.java
  56. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/state/IidRequest.java
  57. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/state/IndexIid.java
  58. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/state/InstanceRecord.java
  59. +2 −2 src/main/java/com/yahoo/{ → pasc}/paxos/state/PaxosState.java
  60. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/state/TimestampReply.java
  61. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/statemachine/EmptyStateMachine.java
  62. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/statemachine/StateMachine.java
  63. +1 −1 src/main/java/com/yahoo/{ → pasc}/paxos/util/Util.java
  64. +3 −3 src/test/java/com/yahoo/{ → pasc}/paxos/PaxosEnsemble.java
View
27 pom.xml
@@ -23,22 +23,19 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.11</version>
+ </plugin>
+
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-dependencies</id>
- <phase>package</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}</outputDirectory>
- <overWriteReleases>false</overWriteReleases>
- <overWriteSnapshots>true</overWriteSnapshots>
- </configuration>
- </execution>
- </executions>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
</plugin>
</plugins>
</build>
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client;
+package com.yahoo.pasc.paxos.client;
import java.io.IOException;
import java.util.Random;
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client;
+package com.yahoo.pasc.paxos.client;
public interface ClientInterface {
@@ -14,12 +14,12 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client;
+package com.yahoo.pasc.paxos.client;
import java.util.BitSet;
import com.yahoo.pasc.ProcessState;
-import com.yahoo.paxos.messages.Request;
+import com.yahoo.pasc.paxos.messages.Request;
public class ClientState implements ProcessState {
int clientId;
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client;
+package com.yahoo.pasc.paxos.client;
import com.yahoo.pasc.Message;
import com.yahoo.pasc.MessageDescriptor;
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client;
+package com.yahoo.pasc.paxos.client;
import java.net.InetSocketAddress;
import java.util.Random;
@@ -39,16 +39,16 @@
import org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor;
import com.yahoo.pasc.PascRuntime;
-import com.yahoo.paxos.client.handlers.HelloHandler;
-import com.yahoo.paxos.client.handlers.ReplyHandler;
-import com.yahoo.paxos.client.handlers.SubmitHandler;
-import com.yahoo.paxos.client.handlers.TimeoutHandler;
-import com.yahoo.paxos.client.messages.Submit;
-import com.yahoo.paxos.client.messages.Timeout;
-import com.yahoo.paxos.messages.Hello;
-import com.yahoo.paxos.messages.Reply;
-import com.yahoo.paxos.messages.serialization.ManualDecoder;
-import com.yahoo.paxos.messages.serialization.ManualEncoder;
+import com.yahoo.pasc.paxos.client.handlers.HelloHandler;
+import com.yahoo.pasc.paxos.client.handlers.ReplyHandler;
+import com.yahoo.pasc.paxos.client.handlers.SubmitHandler;
+import com.yahoo.pasc.paxos.client.handlers.TimeoutHandler;
+import com.yahoo.pasc.paxos.client.messages.Submit;
+import com.yahoo.pasc.paxos.client.messages.Timeout;
+import com.yahoo.pasc.paxos.messages.Hello;
+import com.yahoo.pasc.paxos.messages.Reply;
+import com.yahoo.pasc.paxos.messages.serialization.ManualDecoder;
+import com.yahoo.pasc.paxos.messages.serialization.ManualEncoder;
public class PaxosClient {
public static void main(String[] args) throws Exception {
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client;
+package com.yahoo.pasc.paxos.client;
import java.io.IOException;
import java.util.Arrays;
@@ -34,12 +34,12 @@
import com.yahoo.pasc.Message;
import com.yahoo.pasc.PascRuntime;
-import com.yahoo.paxos.client.messages.Received;
-import com.yahoo.paxos.client.messages.Submit;
-import com.yahoo.paxos.client.messages.Timeout;
-import com.yahoo.paxos.messages.Hello;
-import com.yahoo.paxos.messages.InlineRequest;
-import com.yahoo.paxos.messages.Request;
+import com.yahoo.pasc.paxos.client.messages.Received;
+import com.yahoo.pasc.paxos.client.messages.Submit;
+import com.yahoo.pasc.paxos.client.messages.Timeout;
+import com.yahoo.pasc.paxos.messages.Hello;
+import com.yahoo.pasc.paxos.messages.InlineRequest;
+import com.yahoo.pasc.paxos.messages.Request;
public class PaxosClientHandler extends SimpleChannelUpstreamHandler implements PaxosInterface {
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client;
+package com.yahoo.pasc.paxos.client;
public interface PaxosInterface {
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client;
+package com.yahoo.pasc.paxos.client;
public class SimpleClient implements ClientInterface {
@@ -14,16 +14,16 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client.handlers;
+package com.yahoo.pasc.paxos.client.handlers;
import java.util.Arrays;
import java.util.List;
import com.yahoo.pasc.Message;
import com.yahoo.pasc.MessageHandler;
-import com.yahoo.paxos.client.ClientState;
-import com.yahoo.paxos.client.Connected;
-import com.yahoo.paxos.messages.Hello;
+import com.yahoo.pasc.paxos.client.ClientState;
+import com.yahoo.pasc.paxos.client.Connected;
+import com.yahoo.pasc.paxos.messages.Hello;
public class HelloHandler implements MessageHandler<Hello, ClientState, Connected.Descriptor> {
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client.handlers;
+package com.yahoo.pasc.paxos.client.handlers;
import java.util.Arrays;
import java.util.BitSet;
@@ -25,9 +25,9 @@
import com.yahoo.pasc.Message;
import com.yahoo.pasc.MessageHandler;
-import com.yahoo.paxos.client.ClientState;
-import com.yahoo.paxos.client.messages.Received;
-import com.yahoo.paxos.messages.Reply;
+import com.yahoo.pasc.paxos.client.ClientState;
+import com.yahoo.pasc.paxos.client.messages.Received;
+import com.yahoo.pasc.paxos.messages.Reply;
public class ReplyHandler implements MessageHandler<Reply, ClientState, Received.Descriptor> {
@@ -14,17 +14,17 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client.handlers;
+package com.yahoo.pasc.paxos.client.handlers;
import java.util.Arrays;
import java.util.List;
import com.yahoo.pasc.Message;
import com.yahoo.pasc.MessageHandler;
-import com.yahoo.paxos.client.ClientState;
-import com.yahoo.paxos.client.messages.Submit;
-import com.yahoo.paxos.messages.InlineRequest;
-import com.yahoo.paxos.messages.Request;
+import com.yahoo.pasc.paxos.client.ClientState;
+import com.yahoo.pasc.paxos.client.messages.Submit;
+import com.yahoo.pasc.paxos.messages.InlineRequest;
+import com.yahoo.pasc.paxos.messages.Request;
public class SubmitHandler implements MessageHandler<Submit, ClientState, Request> {
@@ -14,16 +14,16 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client.handlers;
+package com.yahoo.pasc.paxos.client.handlers;
import java.util.Arrays;
import java.util.List;
import com.yahoo.pasc.Message;
import com.yahoo.pasc.MessageHandler;
-import com.yahoo.paxos.client.ClientState;
-import com.yahoo.paxos.client.messages.Timeout;
-import com.yahoo.paxos.messages.Request;
+import com.yahoo.pasc.paxos.client.ClientState;
+import com.yahoo.pasc.paxos.client.messages.Timeout;
+import com.yahoo.pasc.paxos.messages.Request;
public class TimeoutHandler implements MessageHandler<Timeout, ClientState, Request> {
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client.messages;
+package com.yahoo.pasc.paxos.client.messages;
import com.yahoo.pasc.Message;
import com.yahoo.pasc.MessageDescriptor;
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client.messages;
+package com.yahoo.pasc.paxos.client.messages;
import com.yahoo.pasc.Message;
import com.yahoo.pasc.MessageDescriptor;
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.client.messages;
+package com.yahoo.pasc.paxos.client.messages;
import com.yahoo.pasc.Message;
@@ -14,18 +14,18 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.handlers;
+package com.yahoo.pasc.paxos.handlers;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.yahoo.pasc.Message;
-import com.yahoo.paxos.messages.Digest;
-import com.yahoo.paxos.messages.PaxosDescriptor;
-import com.yahoo.paxos.state.DigestStore;
-import com.yahoo.paxos.state.PaxosState;
+import com.yahoo.pasc.paxos.messages.Digest;
+import com.yahoo.pasc.paxos.messages.PaxosDescriptor;
+import com.yahoo.pasc.paxos.state.DigestStore;
+import com.yahoo.pasc.paxos.state.PaxosState;
public class DigestHandler extends PaxosHandler<Digest> {
@@ -14,16 +14,16 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.handlers;
+package com.yahoo.pasc.paxos.handlers;
import java.util.ArrayList;
import java.util.List;
import com.yahoo.pasc.Message;
import com.yahoo.pasc.MessageHandler;
-import com.yahoo.paxos.messages.PaxosDescriptor;
-import com.yahoo.paxos.messages.PaxosMessage;
-import com.yahoo.paxos.state.PaxosState;
+import com.yahoo.pasc.paxos.messages.PaxosDescriptor;
+import com.yahoo.pasc.paxos.messages.PaxosMessage;
+import com.yahoo.pasc.paxos.state.PaxosState;
public abstract class PaxosHandler<M extends PaxosMessage>
implements MessageHandler<M, PaxosState, PaxosDescriptor> {
@@ -14,7 +14,7 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.handlers.acceptor;
+package com.yahoo.pasc.paxos.handlers.acceptor;
import java.util.ArrayList;
import java.util.List;
@@ -23,15 +23,15 @@
import org.slf4j.LoggerFactory;
import com.yahoo.pasc.Message;
-import com.yahoo.paxos.handlers.PaxosHandler;
-import com.yahoo.paxos.handlers.proposer.ProposerRequest;
-import com.yahoo.paxos.messages.Accept;
-import com.yahoo.paxos.messages.Accepted;
-import com.yahoo.paxos.messages.PaxosDescriptor;
-import com.yahoo.paxos.state.ClientTimestamp;
-import com.yahoo.paxos.state.IidAcceptorsCounts;
-import com.yahoo.paxos.state.IidRequest;
-import com.yahoo.paxos.state.PaxosState;
+import com.yahoo.pasc.paxos.handlers.PaxosHandler;
+import com.yahoo.pasc.paxos.handlers.proposer.ProposerRequest;
+import com.yahoo.pasc.paxos.messages.Accept;
+import com.yahoo.pasc.paxos.messages.Accepted;
+import com.yahoo.pasc.paxos.messages.PaxosDescriptor;
+import com.yahoo.pasc.paxos.state.ClientTimestamp;
+import com.yahoo.pasc.paxos.state.IidAcceptorsCounts;
+import com.yahoo.pasc.paxos.state.IidRequest;
+import com.yahoo.pasc.paxos.state.PaxosState;
public class AcceptorAccept extends PaxosHandler<Accept> {
@@ -14,15 +14,15 @@
* limitations under the License. See accompanying LICENSE file.
*/
-package com.yahoo.paxos.handlers.acceptor;
+package com.yahoo.pasc.paxos.handlers.acceptor;
import java.util.List;
import com.yahoo.pasc.Message;
-import com.yahoo.paxos.handlers.PaxosHandler;
-import com.yahoo.paxos.messages.PaxosDescriptor;
-import com.yahoo.paxos.messages.Prepare;
-import com.yahoo.paxos.state.PaxosState;
+import com.yahoo.pasc.paxos.handlers.PaxosHandler;
+import com.yahoo.pasc.paxos.messages.PaxosDescriptor;
+import com.yahoo.pasc.paxos.messages.Prepare;
+import com.yahoo.pasc.paxos.state.PaxosState;
public class AcceptorPrepare extends PaxosHandler<Prepare> {
Oops, something went wrong.

0 comments on commit 1573afa

Please sign in to comment.