Examples of Nexus


Examples of org.jscsi.scsi.transport.Nexus

   @Test
   public void internalTest_OH()
   {
      List<TestTask> taskSet = new ArrayList<TestTask>();
      Nexus nexus = new Nexus("initiator", "target", 0);

      internalBinaryTest(new OrderedTask(new Nexus(nexus, 0), taskSet, 0), new HeadOfQueueTask(
            new Nexus(nexus, 1), taskSet, 0), true, false);
   }
View Full Code Here

Examples of org.jscsi.scsi.transport.Nexus

   @Test
   public void internalTest_OS()
   {
      List<TestTask> taskSet = new ArrayList<TestTask>();
      Nexus nexus = new Nexus("initiator", "target", 0);

      internalBinaryTest(new OrderedTask(new Nexus(nexus, 0), taskSet, 0), new SimpleTask(
            new Nexus(nexus, 1), taskSet, 0), false, true);
   }
View Full Code Here

Examples of org.jscsi.scsi.transport.Nexus

   @Test
   public void internalTest_SH()
   {
      List<TestTask> taskSet = new ArrayList<TestTask>();
      Nexus nexus = new Nexus("initiator", "target", 0);

      internalBinaryTest(new SimpleTask(new Nexus(nexus, 0), taskSet, 0), new HeadOfQueueTask(
            new Nexus(nexus, 1), taskSet, 0), true, false);
   }
View Full Code Here

Examples of org.jscsi.scsi.transport.Nexus

   @Test
   public void internalTest_SO()
   {
      List<TestTask> taskSet = new ArrayList<TestTask>();
      Nexus nexus = new Nexus("initiator", "target", 0);

      internalBinaryTest(new SimpleTask(new Nexus(nexus, 0), taskSet, 0), new OrderedTask(
            new Nexus(nexus, 1), taskSet, 0), false, true);
   }
View Full Code Here

Examples of org.jscsi.scsi.transport.Nexus

   @Test
   public void internalTest_H1H2()
   {
      List<TestTask> taskSet = new ArrayList<TestTask>();
      Nexus nexus = new Nexus("initiator", "target", 0);

      internalBinaryTest(new HeadOfQueueTask(new Nexus(nexus, 0), taskSet, 0), new HeadOfQueueTask(
            new Nexus(nexus, 1), taskSet, 0), false, false);
   }
View Full Code Here

Examples of org.jscsi.scsi.transport.Nexus

   @Test
   public void internalTest_S1S2()
   {
      List<TestTask> taskSet = new ArrayList<TestTask>();
      Nexus nexus = new Nexus("initiator", "target", 0);

      internalBinaryTest(new SimpleTask(new Nexus(nexus, 0), taskSet, 0), new SimpleTask(new Nexus(
            nexus, 1), taskSet, 0), false, false);
   }
View Full Code Here

Examples of org.jscsi.scsi.transport.Nexus

   @Test
   public void internalTest_O1O2()
   {
      List<TestTask> taskSet = new ArrayList<TestTask>();
      Nexus nexus = new Nexus("initiator", "target", 0);

      internalBinaryTest(new OrderedTask(new Nexus(nexus, 0), taskSet, 0), new OrderedTask(
            new Nexus(nexus, 1), taskSet, 0), false, true);
   }
View Full Code Here

Examples of org.jscsi.scsi.transport.Nexus

      // We allocate 200 bytes for return data
      CDB cdb = new ModeSense6(true, 0, pageCode, subPageCode, 200);

      TestTargetTransportPort port = new TestTargetTransportPort(null, false);
      Command command =
            new Command(new Nexus("initiator", "target", 0, 0), cdb, TaskAttribute.SIMPLE, 0, 0);
      InquiryDataRegistry inqreg = new StaticInquiryDataRegistry();

      _logger.debug("Creating ModeSenseTask from MODE SENSE (6) command");
      Task task = new ModeSenseTask(port, command, registry, inqreg);
      _logger.debug("Running mode sense task");
View Full Code Here

Examples of org.jscsi.scsi.transport.Nexus

         {
            fail("Received results in invalid logical unit");
         }
      };

      Nexus nexus = new Nexus("initA", "targetB", 100);

      TargetTransportPort ttp =
            new TestTargetTransportPort(nexus, Status.CHECK_CONDITION,
                  ByteBuffer.wrap((new LogicalUnitNotSupportedException()).encode()),
                  transportResults);

      LogicalUnit lu = new TestLogicalUnit(nexus, luResults);

      TaskRouter router = this.getTaskRouterInstance();

      try
      {
         router.registerLogicalUnit(nexus.getLogicalUnitNumber(), lu);
      }
      catch (Exception e)
      {
         e.printStackTrace();
         fail("Exception occurred during Logical Unit registration: " + e.getMessage());
View Full Code Here

Examples of org.jscsi.scsi.transport.Nexus

         public void success()
         {
         }
      };

      Nexus nexus = new Nexus("initA", "targetB", (new Random()).nextLong());

      TargetTransportPort ttp =
            new TestTargetTransportPort(nexus, Status.GOOD, null, transportResults);

      TaskRouter router = this.getTaskRouterInstance();

      try
      {
         router.registerLogicalUnit(0, new TestLogicalUnit("initA", "targetB", 0, luResults));
         router.registerLogicalUnit(nexus.getLogicalUnitNumber(), new TestLogicalUnit(nexus,
               luResults));
      }
      catch (Exception e)
      {
         e.printStackTrace();
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.