Method from org.quartz.core.QuartzSchedulerResources Detail: |
public void addSchedulerPlugin(SchedulerPlugin plugin) {
schedulerPlugins.add(plugin);
}
|
public static String generateJMXObjectName(String schedName,
String schedInstId) {
return "quartz:type=QuartzScheduler" +
",name=" + schedName +
",instance=" + schedInstId;
}
Create the name under which this scheduler should be registered in JMX.
The name is composed as:
quartz:type=QuartzScheduler,name=[schedName],instance=[schedInstId]
|
public String getInstanceId() {
return instanceId;
}
|
public boolean getJMXExport() {
return jmxExport;
}
Get whether the QuartzScheduler should be registered with the local
MBeanServer. |
public String getJMXObjectName() {
return (jmxObjectName == null) ? generateJMXObjectName(name, instanceId) : jmxObjectName;
}
Get the name under which the QuartzScheduler should be registered with
the local MBeanServer. If unset, defaults to the value calculated by
generateJMXObjectName. |
public JobRunShellFactory getJobRunShellFactory() {
return jobRunShellFactory;
}
|
public JobStore getJobStore() {
return jobStore;
}
|
public boolean getMakeSchedulerThreadDaemon() {
return makeSchedulerThreadDaemon;
}
Get whether to mark the Quartz scheduling thread as daemon. |
public String getName() {
return name;
}
|
public String getRMIBindName() {
return (rmiBindName == null) ? getUniqueIdentifier() : rmiBindName;
}
Get the name under which to bind the QuartzScheduler in RMI. Will
return the value of the uniqueIdentifier property if explict RMI bind
name was never set. |
public String getRMICreateRegistryStrategy() {
return rmiCreateRegistryStrategy;
}
Get the setting of whether or not Quartz should create an RMI Registry,
and if so, how.
|
public String getRMIRegistryHost() {
return rmiRegistryHost;
}
|
public int getRMIRegistryPort() {
return rmiRegistryPort;
}
|
public int getRMIServerPort() {
return rmiServerPort;
}
|
public List getSchedulerPlugins() {
return schedulerPlugins;
}
|
public String getThreadName() {
return threadName;
}
|
public ThreadPool getThreadPool() {
return threadPool;
}
|
public String getUniqueIdentifier() {
return getUniqueIdentifier(name, instanceId);
}
|
public static String getUniqueIdentifier(String schedName,
String schedInstId) {
return schedName + "_$_" + schedInstId;
}
|
public void setInstanceId(String instanceId) {
if (instanceId == null || instanceId.trim().length() == 0) {
throw new IllegalArgumentException(
"Scheduler instanceId cannot be empty.");
}
this.instanceId = instanceId;
}
|
public void setJMXExport(boolean jmxExport) {
this.jmxExport = jmxExport;
}
Set whether the QuartzScheduler should be registered with the local
MBeanServer. |
public void setJMXObjectName(String jmxObjectName) {
this.jmxObjectName = jmxObjectName;
}
Set the name under which the QuartzScheduler should be registered with
the local MBeanServer. If unset, defaults to the value calculated by
generateJMXObjectName. |
public void setJobRunShellFactory(JobRunShellFactory jobRunShellFactory) {
if (jobRunShellFactory == null) {
throw new IllegalArgumentException(
"JobRunShellFactory cannot be null.");
}
this.jobRunShellFactory = jobRunShellFactory;
}
|
public void setJobStore(JobStore jobStore) {
if (jobStore == null) {
throw new IllegalArgumentException("JobStore cannot be null.");
}
this.jobStore = jobStore;
}
|
public void setMakeSchedulerThreadDaemon(boolean makeSchedulerThreadDaemon) {
this.makeSchedulerThreadDaemon = makeSchedulerThreadDaemon;
}
Set whether to mark the Quartz scheduling thread as daemon. |
public void setName(String name) {
if (name == null || name.trim().length() == 0) {
throw new IllegalArgumentException(
"Scheduler name cannot be empty.");
}
this.name = name;
if (threadName == null) {
// thread name not already set, use default thread name
setThreadName(name + "_QuartzSchedulerThread");
}
}
|
public void setRMIBindName(String rmiBindName) {
this.rmiBindName = rmiBindName;
}
Set the name under which to bind the QuartzScheduler in RMI. If unset,
defaults to the value of the uniqueIdentifier property. |
public void setRMICreateRegistryStrategy(String rmiCreateRegistryStrategy) {
if (rmiCreateRegistryStrategy == null
|| rmiCreateRegistryStrategy.trim().length() == 0) {
rmiCreateRegistryStrategy = CREATE_REGISTRY_NEVER;
} else if (rmiCreateRegistryStrategy.equalsIgnoreCase("true")) {
rmiCreateRegistryStrategy = CREATE_REGISTRY_AS_NEEDED;
} else if (rmiCreateRegistryStrategy.equalsIgnoreCase("false")) {
rmiCreateRegistryStrategy = CREATE_REGISTRY_NEVER;
} else if (rmiCreateRegistryStrategy.equalsIgnoreCase(CREATE_REGISTRY_ALWAYS)) {
rmiCreateRegistryStrategy = CREATE_REGISTRY_ALWAYS;
} else if (rmiCreateRegistryStrategy.equalsIgnoreCase(CREATE_REGISTRY_AS_NEEDED)) {
rmiCreateRegistryStrategy = CREATE_REGISTRY_AS_NEEDED;
} else if (rmiCreateRegistryStrategy.equalsIgnoreCase(CREATE_REGISTRY_NEVER)) {
rmiCreateRegistryStrategy = CREATE_REGISTRY_NEVER;
} else {
throw new IllegalArgumentException(
"Faild to set RMICreateRegistryStrategy - strategy unknown: '"
+ rmiCreateRegistryStrategy + "'");
}
this.rmiCreateRegistryStrategy = rmiCreateRegistryStrategy;
}
Set whether or not Quartz should create an RMI Registry, and if so, how.
|
public void setRMIRegistryHost(String hostName) {
this.rmiRegistryHost = hostName;
}
|
public void setRMIRegistryPort(int port) {
this.rmiRegistryPort = port;
}
|
public void setRMIServerPort(int port) {
this.rmiServerPort = port;
}
|
public void setThreadName(String threadName) {
if (threadName == null || threadName.trim().length() == 0) {
throw new IllegalArgumentException(
"Scheduler thread name cannot be empty.");
}
this.threadName = threadName;
}
|
public void setThreadPool(ThreadPool threadPool) {
if (threadPool == null) {
throw new IllegalArgumentException("ThreadPool cannot be null.");
}
this.threadPool = threadPool;
}
|