@SimulationSupport public class GateTask extends Object implements Closeable
Constructor and Description |
---|
GateTask(GateProfile profile,
GateScript script,
String sessionId,
boolean createSession,
boolean completeSession,
ParameterList arguments)
Creates a new instance.
|
public GateTask(GateProfile profile, GateScript script, String sessionId, boolean createSession, boolean completeSession, ParameterList arguments) throws IOException
profile
- the gate profilescript
- the gate scriptsessionId
- current session IDcreateSession
- true
to create a new session, otherwise false
completeSession
- true
to complete the session, otherwise false
arguments
- execution arguments (argument name => value)IOException
- if failed to initialize the taskIllegalArgumentException
- if any parameter is null
public void execute() throws IOException, InterruptedException
IOException
- if failedInterruptedException
- if interruptedpublic void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.