|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quartz.simpl.HostnameInstanceIdGenerator
public class HostnameInstanceIdGenerator
InstanceIdGenerator
that names the scheduler instance using
just the machine hostname.
This class is useful when you know that your scheduler instance will be the only one running on a particular machine. Each time the scheduler is restarted, it will get the same instance id as long as the machine is not renamed.
InstanceIdGenerator
,
SimpleInstanceIdGenerator
Constructor Summary | |
---|---|
HostnameInstanceIdGenerator()
|
Method Summary | |
---|---|
java.lang.String |
generateInstanceId()
Generate the instance id for a Scheduler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HostnameInstanceIdGenerator()
Method Detail |
---|
public java.lang.String generateInstanceId() throws SchedulerException
InstanceIdGenerator
Scheduler
generateInstanceId
in interface InstanceIdGenerator
SchedulerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |