Skip to content

Commit

Permalink
files path changed
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslavGaponov committed Oct 29, 2012
1 parent 881a3b0 commit ab2a08f
Show file tree
Hide file tree
Showing 68 changed files with 45 additions and 48 deletions.
4 changes: 2 additions & 2 deletions .classpath
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/Java SE 7 (MacOS X Default)"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/com/gap/Wallet/Storage/IBucket.class
Binary file not shown.
Binary file not shown.
Binary file added bin/com/gap/Wallet/Storage/IStorage.class
Binary file not shown.
Binary file added bin/com/gap/Wallet/Storage/ITransaction.class
Binary file not shown.
Binary file added bin/com/gap/Wallet/Storage/IWalletStorage.class
Binary file not shown.
Binary file added bin/com/gap/Wallet/Storage/IterationAction.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed bin/gap/Wallet/Storage/IBucket.class
Binary file not shown.
Binary file removed bin/gap/Wallet/Storage/IStorage.class
Binary file not shown.
Binary file removed bin/gap/Wallet/Storage/ITransaction.class
Binary file not shown.
Binary file removed bin/gap/Wallet/Storage/IWalletStorage.class
Binary file not shown.
Binary file removed bin/gap/Wallet/Storage/IterationAction.class
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
package gap.Wallet.Server;
package com.gap.Wallet.Server;

import java.util.HashMap;
import java.util.Map;
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Server;
package com.gap.Wallet.Server;

import java.nio.ByteBuffer;

Expand Down
@@ -1,11 +1,8 @@
package gap.Wallet.Server;
package com.gap.Wallet.Server;

import java.io.*;
import java.net.*;
import java.nio.*;
import java.nio.channels.*;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.util.*;

public abstract class SocketServer {
Expand Down
@@ -1,4 +1,5 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;

import java.io.IOException;
import java.nio.LongBuffer;
import java.nio.channels.FileChannel;
Expand Down
@@ -1,4 +1,5 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;

import java.io.IOException;
import java.nio.LongBuffer;
import java.nio.channels.FileChannel;
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;

class Helper {

Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;

interface IBucket {
public long get(int index);
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;
interface IHeader {
public final long Identifier = 0x5B57414C4C45545DL;

Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;


interface IStorage {
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;

interface ITransaction {
public void start() throws WalletException;
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;


public interface IWalletStorage {
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;

public interface IterationAction {
public boolean fire(byte[] key, byte[] value);
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;

import java.io.File;
import java.io.IOException;
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;

import java.nio.file.Paths;
import java.util.HashMap;
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;

import java.util.HashMap;
import java.util.Map;
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.Storage;
package com.gap.Wallet.Storage;

public class WalletException extends RuntimeException {
private static final long serialVersionUID = 1L;
Expand Down
Expand Up @@ -56,7 +56,7 @@ Wallet.prototype.connect = function(callback) {
chunk += data.toString();
var frames = chunk.split('\0');
if (frames.length > 1) {
chunk = frames.pop();
chunk = frames.pop() + '\0';
for (var i=0;i<frames.length; i++) {
var frame = Frame.parse(frames[i]);
self.emit(frame.command, frame.getParam('frameID'), frame.getParam('result'));
Expand All @@ -67,19 +67,17 @@ Wallet.prototype.connect = function(callback) {
self.on('ANSWER', function(frameID, result) {
if (self.subscribers[frameID]) {
var callback = self.subscribers[frameID];
callback(null, result);
delete this.subscribers[frameID];
return;
delete self.subscribers[frameID];
return callback(null, result);
}
});

self.on('ERROR', function(frameID, err) {
if (frameID) {
if (self.subscribers[frameID]) {
var callback = self.subscribers[frameID];
callback(err, null);
delete self.subscribers[frameID];
return;
return callback(err, null);
}
} else {
if (self.subscribers['GlobalErrorHandler']) {
Expand Down
@@ -1,4 +1,4 @@
package gap.Wallet.deamon;
package com.gap.Wallet.deamon;

import java.io.IOException;

Expand Down
@@ -1,16 +1,16 @@
package gap.Wallet.deamon;
package com.gap.Wallet.deamon;

import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import gap.Wallet.Server.Frame;
import gap.Wallet.Server.SocketServer;
import gap.Wallet.Server.Frame.Command;
import gap.Wallet.Storage.StorageSession;
import gap.Wallet.Storage.WalletException;
import com.gap.Wallet.Server.Frame;
import com.gap.Wallet.Server.SocketServer;
import com.gap.Wallet.Server.Frame.Command;
import com.gap.Wallet.Storage.StorageSession;
import com.gap.Wallet.Storage.WalletException;

public class WalletSocketServer extends SocketServer implements Runnable {

Expand Down
@@ -1,8 +1,8 @@
package gap.Wallet.test;
package com.gap.Wallet.test;

import gap.Wallet.Storage.StorageDriver;
import gap.Wallet.Storage.StorageSession;
import gap.Wallet.Storage.WalletException;
import com.gap.Wallet.Storage.StorageDriver;
import com.gap.Wallet.Storage.StorageSession;
import com.gap.Wallet.Storage.WalletException;

import java.io.IOException;
import java.util.Date;
Expand Down
@@ -1,8 +1,8 @@
package gap.Wallet.test;
package com.gap.Wallet.test;

import gap.Wallet.Storage.StorageDriver;
import gap.Wallet.Storage.StorageSession;
import gap.Wallet.Storage.WalletException;
import com.gap.Wallet.Storage.StorageDriver;
import com.gap.Wallet.Storage.StorageSession;
import com.gap.Wallet.Storage.WalletException;

import java.io.IOException;
import java.util.Date;
Expand Down
@@ -1,8 +1,8 @@
package gap.Wallet.util;
package com.gap.Wallet.util;

import java.util.Date;

import gap.Wallet.Storage.StorageDriver;
import com.gap.Wallet.Storage.StorageDriver;

public class build {

Expand Down
@@ -1,7 +1,7 @@
package gap.Wallet.util;
package com.gap.Wallet.util;

import gap.Wallet.Storage.StorageDriver;
import gap.Wallet.Storage.WalletException;
import com.gap.Wallet.Storage.StorageDriver;
import com.gap.Wallet.Storage.WalletException;

import java.io.IOException;
import java.util.Date;
Expand Down

0 comments on commit ab2a08f

Please sign in to comment.