Examples of UnsupportedOpCodeStage


Examples of org.jscsi.target.connection.stage.fullfeature.UnsupportedOpCodeStage

        when(connection.getSettings()).thenReturn(connectionSettingsNegotiator.getSettings());

        // setting up the phases
        TargetFullFeaturePhase phase = new TargetFullFeaturePhase(connection);
        Object[][] returnVal = { { TargetStage.class, new TargetStage[] { new TestUnitReadyStage(phase), new SendDiagnosticStage(phase), new ReportLunsStage(phase), new InquiryStage(phase), new RequestSenseStage(phase), new TextNegotiationStage(phase), new UnsupportedOpCodeStage(phase), new FormatUnitStage(phase) }, ProtocolDataUnit.class, new ProtocolDataUnit[] {
                // TextUnitReadyStage
        new ProtocolDataUnitFactory().create(false, true, OperationCode.SCSI_COMMAND, "None", "None"),
                // SendDiagnosticStage
        new ProtocolDataUnitFactory().create(false, true, OperationCode.SCSI_COMMAND, "None", "None"),
                // ReportLunsStage
View Full Code Here

Examples of org.jscsi.target.connection.stage.fullfeature.UnsupportedOpCodeStage

                            }
                        }// else, or if default block was entered (programmer error)
                        if (scsiOpCode == null) {
                            LOGGER.error("Unsupported SCSI OpCode 0x" + Integer.toHexString(parser.getCDB().get(0) & 255) + " in SCSI Command PDU.");
                            stage = new UnsupportedOpCodeStage(this);
                        }

                    } else {// session is discovery session
                        throw new InternetSCSIException("received SCSI command in discovery session");
                    }
                    break; // SCSI_COMMAND

                case SCSI_TM_REQUEST :
                    stage = new TMStage(this);
                    break;
                case NOP_OUT :
                    stage = new PingStage(this);
                    break;
                case TEXT_REQUEST :
                    stage = new TextNegotiationStage(this);
                    break;
                case LOGOUT_REQUEST :
                    stage = new LogoutStage(this);
                    running = false;
                    break;
                default :
                    LOGGER.error("Recieved unsupported opcode for " + pdu.getBasicHeaderSegment().getOpCode());
                    stage = new UnsupportedOpCodeStage(this);
            }

            // process the PDU
            stage.execute(pdu);
        }
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.