src/org/nixos/disnix/client/DisnixInterface.java
/**
	 * Transfers a set of snapshots to the target machine and imports them into the remote
	 * snapshot store.
	 * 
	 * @param container Name of the container to which a component is deployed
	 * @param component Name of the deployed component
	 * @param snapshot Path to a snapshot
	 * @throws AxisFault If an error occurs with the transport
	 */
Transfers a set of snapshots to the target machine and imports them into the remote
snapshot store.

@param container Name of the container to which a component is deployed
@param component Name of the deployed component
@param snapshot Path to a snapshot
@throws AxisFault If an error occurs with the transport
Transfers a set of snapshots to the target machine and imports them into the remote snapshot store . @param container Name of the container to which a component is deployed @param component Name of the deployed component @param snapshot Path to a snapshot @throws AxisFault If an error occurs with the transport
public void importLocalSnapshots(String container, String component, String snapshot) throws AxisFault
	{
		try
		{	
			Vector<String> pathsVector = new Vector<String>();
			populatePathsVector(new File[] { new File(snapshot) }, pathsVector);
			DataHandler[] dataHandlers = new DataHandler[pathsVector.size()];
			String[] paths = new String[pathsVector.size()];
			pathsVector.toArray(paths);
			for(int i = 0; i < dataHandlers.length; i++)
				dataHandlers[i] = new DataHandler(new FileDataSource(paths[i]));
			QName operation = new QName(NAME_SPACE, "importLocalSnapshots");
			Object[] args = { container, component, snapshot, dataHandlers, paths };
			serviceClient.invokeRobust(operation, args);
		}
		catch(AxisFault ex)
		{
			throw ex;
		}
		finally
		{
			serviceClient.cleanup();
			serviceClient.cleanupTransport();
		}
	}
public void importLocalSnapshots ( String container , String component , String snapshot ) throws AxisFault { try { Vector < String > pathsVector = new Vector < String > ( ) ; populatePathsVector ( new File [ ] { new File ( snapshot ) } , pathsVector ) ; DataHandler [ ] dataHandlers = new DataHandler [ pathsVector . size ( ) ] ; String [ ] paths = new String [ pathsVector . size ( ) ] ; pathsVector . toArray ( paths ) ; for ( int i = 0 ; i < dataHandlers . length ; i ++ ) dataHandlers [ i ] = new DataHandler ( new FileDataSource ( paths [ i ] ) ) ; QName operation = new QName ( NAME_SPACE , "importLocalSnapshots" ) ; Object [ ] args = { container , component , snapshot , dataHandlers , paths } ; serviceClient . invokeRobust ( operation , args ) ; } catch ( AxisFault ex ) { throw ex ; } finally { serviceClient . cleanup ( ) ; serviceClient . cleanupTransport ( ) ; } }
Transfers a set of snapshots to the target machine and imports them into the remote
 snapshot store.
Transfers a set of snapshots to the target machine and imports them into the remote snapshot store .