Package org.quartz.spi
Interface InstanceIdGenerator
-
- All Known Implementing Classes:
HostnameInstanceIdGenerator,SimpleInstanceIdGenerator,SystemPropertyInstanceIdGenerator
public interface InstanceIdGeneratorAn InstanceIdGenerator is responsible for generating the clusterwide unique instance id for a
Schedulernode.This interface may be of use to those wishing to have specific control over the mechanism by which the
Schedulerinstances in their application are named.- See Also:
SimpleInstanceIdGenerator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgenerateInstanceId()Generate the instance id for aScheduler
-
-
-
Method Detail
-
generateInstanceId
java.lang.String generateInstanceId() throws SchedulerExceptionGenerate the instance id for aScheduler- Returns:
- The clusterwide unique instance id.
- Throws:
SchedulerException
-
-