use of org.neo4j.kernel.impl.transaction.log.PositionAwareChannel in project neo4j by neo4j.
the class BaseCommandReader method unknownCommandType.
protected IOException unknownCommandType(byte commandType, ReadableChannel channel) throws IOException {
String message = "Unknown command type[" + commandType + "]";
if (channel instanceof PositionAwareChannel) {
PositionAwareChannel logChannel = (PositionAwareChannel) channel;
LogPositionMarker position = new LogPositionMarker();
logChannel.getCurrentPosition(position);
message += " near " + position.newPosition();
}
return new IOException(message);
}
use of org.neo4j.kernel.impl.transaction.log.PositionAwareChannel in project neo4j by neo4j.
the class LogCommandSerialization method unknownCommandType.
protected static IOException unknownCommandType(byte commandType, ReadableChannel channel) throws IOException {
String message = "Unknown command type[" + commandType + "]";
if (channel instanceof PositionAwareChannel) {
PositionAwareChannel logChannel = (PositionAwareChannel) channel;
message += " near " + logChannel.getCurrentPosition();
}
return new IOException(message);
}
Aggregations