public class SystemPropertyInstanceIdGenerator extends Object implements InstanceIdGenerator
system property
to configure the scheduler.
If no value set for the property, a SchedulerException
is thrownModifier and Type | Field and Description |
---|---|
static String |
SYSTEM_PROPERTY
System property to read the instanceId from
|
Constructor and Description |
---|
SystemPropertyInstanceIdGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
generateInstanceId()
Returns the cluster wide value for this scheduler instance's id, based on a system property
|
public static final String SYSTEM_PROPERTY
public String generateInstanceId() throws SchedulerException
generateInstanceId
in interface InstanceIdGenerator
system property
SchedulerException
- Shouldn't a value be foundCopyright © 2011. All Rights Reserved.