
fr.iscpif.gridscale.exemple.dirac.Main.scala Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 28/06/13 Romain Reuillon
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package fr.iscpif.gridscale.exemple.dirac
import fr.iscpif.gridscale.dirac._
import fr.iscpif.gridscale._
import java.io.File
import concurrent.duration._
object Main extends App {
val jobDesc = new DIRACJobDescription {
def executable = "/bin/echo"
def arguments = "hello"
}
val js = new DIRACJobService with P12HTTPSAuthentication {
def group = "biomed_user"
def service = "https://ccdirac06.in2p3.fr:9178"
def certificate = new File("/path/to/certificate.p12")
def password = "password"
}
println(js.token)
//println(js.submit(jobDesc))
val j = js.submit(jobDesc)
js.untilFinished(j, sleepTime = 0 second) { println }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy