Package org.quartz.simpl
Class SimpleInstanceIdGenerator
- java.lang.Object
-
- org.quartz.simpl.SimpleInstanceIdGenerator
-
- All Implemented Interfaces:
InstanceIdGenerator
public class SimpleInstanceIdGenerator extends java.lang.Object implements InstanceIdGenerator
The default InstanceIdGenerator used by Quartz when instance id is to be automatically generated. Instance id is of the form HOSTNAME + CURRENT_TIME.- See Also:
InstanceIdGenerator,HostnameInstanceIdGenerator
-
-
Constructor Summary
Constructors Constructor Description SimpleInstanceIdGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgenerateInstanceId()Generate the instance id for aScheduler
-
-
-
Method Detail
-
generateInstanceId
public java.lang.String generateInstanceId() throws SchedulerExceptionDescription copied from interface:InstanceIdGeneratorGenerate the instance id for aScheduler- Specified by:
generateInstanceIdin interfaceInstanceIdGenerator- Returns:
- The clusterwide unique instance id.
- Throws:
SchedulerException
-
-