public class ConstellationFactory
extends java.lang.Object
ConstellationFactory
provides several static methods to create a Constellation
instance.Modifier and Type | Method and Description |
---|---|
static Constellation |
createConstellation(ConstellationConfiguration... e)
Creates a constellation instance, using the specified executors and the system properties.
|
static Constellation |
createConstellation(ConstellationConfiguration e)
Creates a constellation instance, using the specified executor and the system properties.
|
static Constellation |
createConstellation(ConstellationConfiguration e,
int count)
Creates a constellation instance, using the specified executor and the system properties.
|
static Constellation |
createConstellation(java.util.Properties p,
ConstellationConfiguration... e)
Creates a constellation instance, using the specified executors and properties.
|
static Constellation |
createConstellation(java.util.Properties p,
ConstellationConfiguration e)
Creates a constellation instance, using the specified executor and properties.
|
static Constellation |
createConstellation(java.util.Properties p,
ConstellationConfiguration e,
int count)
Creates a constellation instance, using the specified executor and properties.
|
public static Constellation createConstellation(ConstellationConfiguration e) throws ConstellationCreationException
ibis.constellation.distributed
is not set, or set to "true", a distributed
constellation instance is created. If not, a singlethreaded constellation is created.e
- the executorjava.lang.IllegalArgumentException
- thrown when no executors are supplied, or in case of incorrect property values.ConstellationCreationException
- thrown when the constellation instance could not be created for some reason.public static Constellation createConstellation(ConstellationConfiguration e, int count) throws ConstellationCreationException
ibis.constellation.distributed
is not set, or set to "true", a distributed
constellation instance is created. If not, a singlethreaded constellation is created.e
- the executorcount
- an int
valueConstellationCreationException
- thrown when the constellation instance could not be created for some reason.java.lang.IllegalArgumentException
- thrown when no executors are supplied, or in case of incorrect property values.public static Constellation createConstellation(java.util.Properties p, ConstellationConfiguration e) throws ConstellationCreationException
ibis.constellation.distributed
is not set, or set to "true", a distributed constellation
instance is created. If not, a singlethreaded constellation is created.p
- the properties to usee
- the executorjava.lang.IllegalArgumentException
- thrown when no executors are supplied, or in case of incorrect property values.ConstellationCreationException
- thrown when the constellation instance could not be created for some reason.public static Constellation createConstellation(java.util.Properties p, ConstellationConfiguration e, int count) throws ConstellationCreationException
ibis.constellation.distributed
is not set, or set to "true", a distributed constellation
instance is created. If not, a singlethreaded constellation is created.p
- the properties to usee
- the executorcount
- the number of executors, if larger than 1, then a multithreaded Constellation will be created.ConstellationCreationException
- thrown when the constellation instance could not be created for some reason.java.lang.IllegalArgumentException
- thrown when no executors are supplied, or in case of incorrect property values.public static Constellation createConstellation(ConstellationConfiguration... e) throws ConstellationCreationException
ibis.constellation.distributed
is not set, or set to "true", a distributed
constellation instance is created. If not, depending on the number of executors, either a multithreaded constellation or a
singlethreaded constellation is created.e
- the executorsjava.lang.IllegalArgumentException
- thrown when no executors are supplied, or in case of incorrect property values.ConstellationCreationException
- thrown when the constellation instance could not be created for some reason.public static Constellation createConstellation(java.util.Properties p, ConstellationConfiguration... e) throws ConstellationCreationException
ibis.constellation.distributed
is not set, or set to "true", a distributed constellation
instance is created. If not, depending on the number of executors, either a multithreaded constellation or a singlethreaded
constellation is created.p
- the propertiese
- the executorsjava.lang.IllegalArgumentException
- thrown when no executors are supplied, or in case of incorrect property values.ConstellationCreationException
- thrown when the constellation instance could not be created for some reason.