public final class TargetServer extends Object implements Callable<Void>
TargetSession
s, 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.
|
void |
stop()
Stop this target server
|
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
fieldnextTargetTransferTag
public static void main(String[] args) throws Exception
args
- all command line arguments are ignoredIOException
Exception
public 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()
public void stop()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.