com.zeroturnaround.liverebel.util.exec
Class Script

java.lang.Object
  extended by com.zeroturnaround.liverebel.util.exec.Script

public class Script
extends Object

Script that may be executed.

Author:
shelajev
See Also:
liverebel.common.exec.ScriptExecutor

Constructor Summary
Script(String name, ScriptSource source)
          default timeout is 1 hour
Script(String name, ScriptSource source, long timeout)
           
 
Method Summary
 boolean fillFile(File file)
           
 String getName()
           
 ScriptSource getSource()
           
 String getSourceString()
           
 long getTimeout()
           
 boolean hasValidSource()
           
 void setTimeout(long timeout)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Script

public Script(String name,
              ScriptSource source)
default timeout is 1 hour


Script

public Script(String name,
              ScriptSource source,
              long timeout)
Parameters:
timeout - - in milliseconds
Method Detail

hasValidSource

public boolean hasValidSource()

getSourceString

public String getSourceString()
                       throws IOException
Throws:
IOException

getName

public String getName()

getSource

public ScriptSource getSource()

getTimeout

public long getTimeout()
Returns:
timeout - in milliseconds

fillFile

public boolean fillFile(File file)
                 throws IOException,
                        UnresolvedPropertyException
Throws:
IOException
UnresolvedPropertyException

toString

public String toString()
Overrides:
toString in class Object

setTimeout

public void setTimeout(long timeout)
Parameters:
timeout - - in milliseconds


Copyright © 2013. All Rights Reserved.