HostnameInstanceIdGenerator (Quartz Parent POM 2.0.1 API)
From Quartz Java
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.quartz.simpl Class HostnameInstanceIdGenerator
java.lang.Objectorg.quartz.simpl.HostnameInstanceIdGenerator
- All Implemented Interfaces:
- org.quartz.spi.InstanceIdGenerator
public class HostnameInstanceIdGenerator
- extends Object
- implements org.quartz.spi.InstanceIdGenerator
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.
- See Also:
InstanceIdGenerator,SimpleInstanceIdGenerator
| Constructor Summary | |
|---|---|
HostnameInstanceIdGenerator()
|
|
| Method Summary | |
|---|---|
String |
generateInstanceId()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
HostnameInstanceIdGenerator
public HostnameInstanceIdGenerator()
| Method Detail |
|---|
generateInstanceId
public String generateInstanceId() throws SchedulerException
- Specified by:
generateInstanceIdin interfaceorg.quartz.spi.InstanceIdGenerator
- Throws:
SchedulerException
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2001-2011, Terracotta, Inc.