BrightSide Workbench Full Report + Source Code
ScriptRunner.java
Go to the documentation of this file.
1
/*
2
* TurrĂ³ i Cutiller Foundation. License notice.
3
* Copyright (C) 2011 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Affero General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Affero General Public License for more details.
14
*
15
* You should have received a copy of the GNU Affero General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
package
org.turro.scheduler.util;
19
20
import
org.turro.elephant.impl.util.ShellExecutor;
21
import
org.turro.scheduler.motor.DefaultTask;
22
27
public
class
ScriptRunner
extends
DefaultTask
{
28
29
@Override
30
public
void
run
() {
31
new
ShellExecutor
().
execute
((String)
getAttributes
().
get
(
"script"
));
32
}
33
34
@Override
35
public
String
getName
() {
36
return
(String)
getAttributes
().get(
"name"
);
37
}
38
39
@Override
40
public
String
getDataLabel
() {
41
return
null
;
42
}
43
44
}
org.turro.elephant.impl.abstracts.AbstractImplementation.getAttributes
KeyValueMap getAttributes()
Definition:
AbstractImplementation.java:69
org.turro.elephant.impl.util.ShellExecutor
Definition:
ShellExecutor.java:32
org.turro.elephant.impl.util.ShellExecutor.execute
int execute(String command)
Definition:
ShellExecutor.java:62
org.turro.scheduler.motor.DefaultTask
Definition:
elephant-scheduler/src/main/java/org/turro/scheduler/motor/DefaultTask.java:33
org.turro.scheduler.util.ScriptRunner
Definition:
ScriptRunner.java:27
org.turro.scheduler.util.ScriptRunner.getDataLabel
String getDataLabel()
Definition:
ScriptRunner.java:40
org.turro.scheduler.util.ScriptRunner.run
void run()
Definition:
ScriptRunner.java:30
org.turro.scheduler.util.ScriptRunner.getName
String getName()
Definition:
ScriptRunner.java:35
TurroProjects
Public
Elephant
elephant-scheduler
src
main
java
org
turro
scheduler
util
ScriptRunner.java
Generated on Tue Mar 12 2024 07:01:21 for BrightSide by
1.9.1