public final class XenonFactory extends Object
public static Xenon newXenon(Map<String,String> properties) throws XenonException
XenonException
will be thrown if properties contains any unknown keys.properties
- (optional) properties used to configure the newly created Xenon instance.UnknownPropertyException
- If an unknown property was passed.InvalidPropertyException
- If a known property was passed with an illegal value.XenonException
- If the Xenon failed initialize.public static void endXenon(Xenon xenon) throws XenonException
Schedulers
,
FileSystems
and Credentials
. In addition, all non online Jobs
it has creates will
be killed (for example jobs that run locally).xenon
- the Xenon to end.NoSuchXenonException
- If the Xenon was not foundXenonException
- If the Xenon failed to end.public static void endAll()