Package org.hypertable.AsyncComm

Examples of org.hypertable.AsyncComm.ResponseCallback.error()


            mBroker.Seek(cb, fd, offset);

        }
        catch (ProtocolException e) {
            int error = cb.error(Error.PROTOCOL_ERROR, e.getMessage());
            log.severe("Protocol error (SEEK) - " + e.getMessage());
            if (error != Error.OK)
                log.severe("Problem sending (SEEK) error back to client - "
                           + Error.GetText(error));
        }
View Full Code Here


                break;
            default:
                ResponseCallback cb = new ResponseCallback(mComm, event);
                log.severe("Command code " + event.header.command
                           + " not implemented");
                cb.error(Error.PROTOCOL_ERROR, "Command code "
                         + event.header.command + " not implemented");
                return;
            }

            mAppQueue.Add(requestHandler);
View Full Code Here

            mEvent.payload.get(params);

            mBroker.Debug(cb, command, params);
        }
        catch (ProtocolException e) {
            int error = cb.error(Error.PROTOCOL_ERROR, e.getMessage());
            log.severe("Protocol error (DEBUG) - " + e.getMessage());
            if (error != Error.OK)
                log.severe("Problem sending (DEBUG) error back to client - "
                           + Error.GetText(error));
        }
View Full Code Here

            mBroker.Remove(cb, fileName);

        }
        catch (ProtocolException e) {
            int error = cb.error(Error.PROTOCOL_ERROR, e.getMessage());
            log.severe("Protocol error (REMOVE) - " + e.getMessage());
            if (error != Error.OK)
                log.severe("Problem sending (REMOVE) error back to client - "
                           + Error.GetText(error));
        }
View Full Code Here

                throw new ProtocolException("Error decoding filenames");

            mBroker.Rename(cb, src, dst);
        }
        catch (ProtocolException e) {
            int error = cb.error(Error.PROTOCOL_ERROR, e.getMessage());
            log.severe("Protocol error (Rename) - " + e.getMessage());
            if (error != Error.OK)
                log.severe("Problem sending (Rename) error back to client - "
                           + Error.GetText(error));
        }
View Full Code Here

                    "Filename not properly encoded in request packet");

            mBroker.Mkdirs(cb, fileName);
        }
        catch (ProtocolException e) {
            int error = cb.error(Error.PROTOCOL_ERROR, e.getMessage());
            log.severe("Protocol error (MKDIRS) - " + e.getMessage());
            if (error != Error.OK)
                log.severe("Problem sending (MKDIRS) error back to client - "
                           + Error.GetText(error));
        }
View Full Code Here

                    "Filename not properly encoded in request packet");

            mBroker.Rmdir(cb, fileName);
        }
        catch (ProtocolException e) {
            int error = cb.error(Error.PROTOCOL_ERROR, e.getMessage());
            log.severe("Protocol error (RMDIR) - " + e.getMessage());
            if (error != Error.OK)
                log.severe("Problem sending (RMDIR) error back to client - "
                           + Error.GetText(error));
        }
View Full Code Here

            mBroker.Close(cb, fd);

        }
        catch (ProtocolException e) {
            int error = cb.error(Error.PROTOCOL_ERROR, e.getMessage());
            log.severe("Protocol error (CLOSE) - " + e.getMessage());
            if (error != Error.OK)
                log.severe("Problem sending (CLOSE) error back to client - "
                           + Error.GetText(error));
        }
View Full Code Here

            System.exit(0);

        }
        catch (ProtocolException e) {
            int error = cb.error(Error.PROTOCOL_ERROR, e.getMessage());
            log.severe("Protocol error (SHUTDOWN) - " + e.getMessage());
            if (error != Error.OK)
                log.severe("Problem sending (SHUTDOWN) error back to client - "
                           + Error.GetText(error));
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.