summaryrefslogblamecommitdiffstats
path: root/src/main/java/org/openslx/satellitedaemon/App.java
blob: 26aa89980b0fc70c09912bc9670b5e18128d01be (plain) (tree)
1
2
3
4
5
6
7
8
9



                                     

                                              
                                               
 
                                                           
                                                                          

                                                         

   
                                                                              

   

                
                                                                                                                                                                                            
         
 

                                                                                              
                                                                            


                                                                      

         
package org.openslx.satellitedaemon;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;

import org.openslx.imagemaster.thrift.iface.FtpCredentials;
import org.openslx.imagemaster.thrift.iface.ServerAuthenticationException;
import org.openslx.satellitedaemon.ftp.FtpImageUploader;
import org.openslx.satellitedaemon.ftp.GetFtpCredentials;

/**
 * Main class for uploading images from the HS-Server to the Satellite Server.
 * 
 */
public class App
{
	public static void main( String[] args ) throws NoSuchAlgorithmException, KeyStoreException, CertificateException, FileNotFoundException, IOException, ServerAuthenticationException
	{

		//	TODO: A Thread that starts the call for new credentials and the upload
		//	whenever a new image was sceduled in the db.
		FtpCredentials ftpc = GetFtpCredentials.getFtpCredentials();
		FtpImageUploader ftpIU = new FtpImageUploader( ftpc );
		ftpIU.connectTest();

	}
}