public final class TargetServer extends Object implements Callable<Void>
TargetSessions, stores
target-wide parameters and variables, and
which contains the main(String[]) method for starting the program.| Constructor and Description |
|---|
TargetServer(Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
Void |
call() |
Configuration |
getConfig() |
Connection |
getConnection()
Using this connection mainly for test pruposes.
|
DeviceIdentificationVpdPage |
getDeviceIdentificationVpdPage() |
static int |
getNextTargetTransferTag()
Gets and increments the value to use in the next unreserved
Target Transfer Tag field of
the next PDU to be sent by the
jSCSI Target. |
Target |
getTarget(String targetName) |
String[] |
getTargetNames() |
boolean |
isValidTargetName(String checkTargetName)
Checks to see if this target name is valid.
|
static void |
main(String[] args)
Starts the jSCSI target.
|
void |
removeTargetSession(TargetSession session)
Removes a session from the jSCSI Target's list of active sessions.
|
public TargetServer(Configuration conf)
public static int getNextTargetTransferTag()
Target Transfer Tag field of
the next PDU to be sent by the
jSCSI Target.Target Transfer Tag
fieldnextTargetTransferTagpublic static void main(String[] args) throws Exception
args - all command line arguments are ignoredIOExceptionExceptionpublic Configuration getConfig()
public DeviceIdentificationVpdPage getDeviceIdentificationVpdPage()
public void removeTargetSession(TargetSession session)
session - the session to remove from the list of active sessionspublic String[] getTargetNames()
public boolean isValidTargetName(String checkTargetName)
checkTargetName - public Connection getConnection()
Copyright © 2012 University of Konstanz, Distributed Systems Group. All Rights Reserved.