Coverage Report - org.jscsi.target.example.CallableStart
 
Classes in this File Line Coverage Branch Coverage Complexity
CallableStart
0%
0/7
N/A
1
 
 1  
 package org.jscsi.target.example;
 2  
 
 3  
 
 4  
 import java.io.File;
 5  
 import java.io.IOException;
 6  
 import java.util.concurrent.ExecutorService;
 7  
 import java.util.concurrent.Executors;
 8  
 
 9  
 import javax.xml.parsers.ParserConfigurationException;
 10  
 
 11  
 import org.jscsi.target.Configuration;
 12  
 import org.jscsi.target.TargetServer;
 13  
 import org.xml.sax.SAXException;
 14  
 
 15  
 
 16  0
 public class CallableStart {
 17  
 
 18  
     public static void main (String[] args) throws SAXException , ParserConfigurationException , IOException {
 19  
         // Getting the config path
 20  0
         final File configFile = Configuration.CONFIGURATION_CONFIG_FILE;
 21  
         // Creating the Configuration
 22  0
         final Configuration config = Configuration.create(Configuration.CONFIGURATION_SCHEMA_FILE, configFile, "");
 23  
         // Starting the Target
 24  0
         final TargetServer target = new TargetServer(config);
 25  
 
 26  
         // Getting an Executor
 27  0
         ExecutorService threadPool = Executors.newSingleThreadExecutor();
 28  
         // Starting the target
 29  0
         threadPool.submit(target);
 30  
 
 31  0
     }
 32  
 
 33  
 }