public class TreetankConfiguration
extends org.jscsi.target.Configuration
Configuration
so that it can be used within the self defined
target
server-allowSloppyNegotiation, ATTRIBUTE_SIZE, CONFIGURATION_CONFIG_FILE, CONFIGURATION_SCHEMA_FILE, ELEMENT_ALLOWSLOPPYNEGOTIATION, ELEMENT_ASYNCFILESTORAGE, ELEMENT_CREATE, ELEMENT_FILESTORAGE, ELEMENT_JCLOUDSSTORAGE, ELEMENT_PORT, ELEMENT_SYNCFILESTORAGE, ELEMENT_TARGET, ELEMENT_TARGET_LIST, logicalUnitNumber, outMaxRecvDataSegmentLength, port, targetAddress, targetPortalGroupTag, targets
Constructor and Description |
---|
TreetankConfiguration(ISession pSession,
String pTargetAddress)
Create a new
TreetankConfiguration |
Modifier and Type | Method and Description |
---|---|
static TreetankConfiguration |
create(File schemaLocation,
File configFile,
ISession session,
String pTargetAddress)
Static method to create a new
TreetankConfiguration |
public TreetankConfiguration(ISession pSession, String pTargetAddress) throws IOException
TreetankConfiguration
pSession
- a vaid session for the treetank storage has to be intitalized
and passed here.pTargetAddress
- pass the targets address to the backend to make sure the right network interface is used.IOException
public static TreetankConfiguration create(File schemaLocation, File configFile, ISession session, String pTargetAddress) throws SAXException, ParserConfigurationException, IOException, TTException
TreetankConfiguration
schemaLocation
- configFile
- session
- pTargetAddress
- pass the targets address to the backend to make sure the right network interface is used.TreetankConfiguration
SAXException
ParserConfigurationException
IOException
TTException
Copyright © 2013. All Rights Reserved.