Package com.taobao.tddl.dbsync.binlog.event

Examples of com.taobao.tddl.dbsync.binlog.event.LogHeader


    {
        final int limit = buffer.limit();

        if (limit >= FormatDescriptionLogEvent.LOG_EVENT_HEADER_LEN)
        {
            LogHeader header = new LogHeader(buffer,
                    context.getFormatDescription());

            final int len = header.getEventLen();
            if (limit >= len)
            {
                LogEvent event;

                /* Checking binary-log's header */
                if (handleSet.get(header.getType()))
                {
                    buffer.limit(len);

                    try
                    {
                        /* Decoding binary-log to event */
                        event = decode(buffer, header, context);
                    }
                    catch (IOException e)
                    {
                        if (logger.isWarnEnabled())
                            logger.warn("Decoding "
                                    + LogEvent.getTypeName(header.getType())
                                    + " failed from: "
                                    + context.getLogPosition(), e);
                        throw e;
                    }
                    finally
View Full Code Here


    {
        final int limit = buffer.limit();

        if (limit >= FormatDescriptionLogEvent.LOG_EVENT_HEADER_LEN)
        {
            LogHeader header = new LogHeader(buffer,
                    context.getFormatDescription());

            final int len = header.getEventLen();
            if (limit >= len)
            {
                LogEvent event;

                /* Checking binary-log's header */
                if (handleSet.get(header.getType()))
                {
                    buffer.limit(len);
                    try
                    {
                        /* Decoding binary-log to event */
                        event = decode(buffer, header, context);
                    }
                    catch (IOException e)
                    {
                        if (logger.isWarnEnabled())
                            logger.warn("Decoding "
                                    + LogEvent.getTypeName(header.getType())
                                    + " failed from: "
                                    + context.getLogPosition(), e);
                        throw e;
                    }
                    finally
View Full Code Here

    {
        final int limit = buffer.limit();

        if (limit >= FormatDescriptionLogEvent.LOG_EVENT_HEADER_LEN)
        {
            LogHeader header = new LogHeader(buffer,
                    context.getFormatDescription());

            final int len = header.getEventLen();
            if (limit >= len)
            {
                LogEvent event;

                /* Checking binary-log's header */
                if (handleSet.get(header.getType()))
                {
                    buffer.limit(len);
                    try
                    {
                        /* Decoding binary-log to event */
                        event = decode(buffer, header, context);
                    }
                    catch (IOException e)
                    {
                        if (logger.isWarnEnabled())
                            logger.warn("Decoding "
                                    + LogEvent.getTypeName(header.getType())
                                    + " failed from: "
                                    + context.getLogPosition(), e);
                        throw e;
                    }
                    finally
View Full Code Here

TOP

Related Classes of com.taobao.tddl.dbsync.binlog.event.LogHeader

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.