Package org.xtreemfs.babudb.replication.transmission.client.ReplicationClientAdapter

Examples of org.xtreemfs.babudb.replication.transmission.client.ReplicationClientAdapter.ErrorCodeException


                    }

                    @Override
                    public void requestFailed(Exception e) {
                        if (e instanceof ErrorCodeException) {
                            ErrorCodeException err = (ErrorCodeException) e;
                            Logging.logMessage(Logging.LEVEL_ERROR, this,
                                   "Chunk request (%s,%d,%d) failed: (%d) %s",
                                   fileName, pos1, err.getCode());
                        } else {
                            Logging.logMessage(Logging.LEVEL_ERROR, this,
                                "Chunk request (%s,%d,%d) failed: %s",
                                fileName, pos1, e.getMessage());
                        }
View Full Code Here


                @Override
                public Object resolve(Database response, ReusableBuffer data)
                        throws ErrorCodeException, IOException {
                   
                    if (response.getErrorCode() != 0) {
                        throw new ErrorCodeException(response.getErrorCode());
                    }
                   
                    if (response.getDatabaseId() > -1) {
                        return new Object[] {
                                new DatabaseProxy(response.getDatabaseName(),
View Full Code Here

                @Override
                public Integer resolve(Database response, ReusableBuffer data)
                        throws ErrorCodeException, IOException {
                   
                    if (response.getErrorCode() != 0) {
                        throw new ErrorCodeException(response.getErrorCode());
                    }
                    return response.getDatabaseId();
                }
            };
        } catch (final IOException e) {
View Full Code Here

                @Override
                public byte[] resolve(ErrorCodeResponse response, ReusableBuffer data)
                        throws ErrorCodeException, IOException {
                   
                    if (response.getErrorCode() != 0) {
                        throw new ErrorCodeException(response.getErrorCode());
                    }
                    try {
                        return (data == null) ? null : data.array();
                    } finally {
                        if (data != null) BufferPool.free(data);
View Full Code Here

                @Override
                public ResultSet<byte[], byte[]> resolve(EntryMap response, ReusableBuffer data)
                        throws ErrorCodeException, IOException {
                   
                    if (response.getErrorCode() != 0) {
                        throw new ErrorCodeException(response.getErrorCode());
                    }
                    try {
                        int count = response.getLengthCount();
                        assert (count % 2 == 0);
                       
View Full Code Here

                @Override
                public ResultSet<byte[], byte[]> resolve(EntryMap response, ReusableBuffer data)
                        throws ErrorCodeException, IOException {
                   
                    if (response.getErrorCode() != 0) {
                        throw new ErrorCodeException(response.getErrorCode());
                    }
                    try {
                        int count = response.getLengthCount();
                        assert (count % 2 == 0);
                       
View Full Code Here

                @Override
                public ResultSet<byte[], byte[]> resolve(EntryMap response, ReusableBuffer data)
                        throws ErrorCodeException, IOException {
                   
                    if (response.getErrorCode() != 0) {
                        throw new ErrorCodeException(response.getErrorCode());
                    }
                    try {
                        int count = response.getLengthCount();
                        assert (count % 2 == 0);
                       
View Full Code Here

                @Override
                public ResultSet<byte[], byte[]> resolve(EntryMap response, ReusableBuffer data)
                        throws ErrorCodeException, IOException {
                   
                    if (response.getErrorCode() != 0) {
                        throw new ErrorCodeException(response.getErrorCode());
                    }
                    try {
                        int count = response.getLengthCount();
                        assert (count % 2 == 0);
                       
View Full Code Here

                @Override
                public String resolve(Database response, ReusableBuffer data)
                        throws ErrorCodeException, IOException {
                   
                    if (response.getErrorCode() != 0) {
                        throw new ErrorCodeException(response.getErrorCode());
                    }
                    return response.getDatabaseName();
                }
            };
        } catch (final IOException e) {
View Full Code Here

TOP

Related Classes of org.xtreemfs.babudb.replication.transmission.client.ReplicationClientAdapter.ErrorCodeException

Copyright © 2018 www.massapicom. 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.