src/org/nixos/disnix/service/DisnixThread.java
/**
	 * Waits for a signal and returns when a success signal has been received.
	 * 
	 * @return A string array with payload, typically an array of paths
	 * @throws Exception If something went wrong
	 */
Waits for a signal and returns when a success signal has been received.

@return A string array with payload, typically an array of paths
@throws Exception If something went wrong
Waits for a signal and returns when a success signal has been received . @return A string array with payload typically an array of paths @throws Exception If something went wrong
public String[] waitForSuccess() throws Exception
	{
		Thread thread = new Thread(this);
		thread.start();
		thread.join();
		if(source instanceof Disnix.success)
			return ((Disnix.success)source).derivation;
		else if(source instanceof Disnix.failure)
			throw DisnixException.constructDisnixException(pid, logdir);
		else
			throw new Exception("Unknown event caught: "+source);
	}
public String [ ] waitForSuccess ( ) throws Exception { Thread thread = new Thread ( this ) ; thread . start ( ) ; thread . join ( ) ; if ( source instanceof Disnix . success ) return ( ( Disnix . success ) source ) . derivation ; else if ( source instanceof Disnix . failure ) throw DisnixException . constructDisnixException ( pid , logdir ) ; else throw new Exception ( "Unknown event caught: " + source ) ; }
Waits for a signal and returns when a success signal has been received.
Waits for a signal and returns when a success signal has been received .