com.github.ltsopensource.spring
Class TaskTrackerAnnotationFactoryBean

java.lang.Object
  extended by com.github.ltsopensource.spring.TaskTrackerAnnotationFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<TaskTracker>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class TaskTrackerAnnotationFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<TaskTracker>, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

TaskTracker Spring Bean 工厂类 如果用这个工厂类,那么JobRunner中引用SpringBean的话,只有通过注解的方式注入

Author:
Robert HG (254963746@qq.com) on 8/4/15.

Constructor Summary
TaskTrackerAnnotationFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 TaskTracker getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setBindIp(String bindIp)
           
 void setBizLoggerLevel(String bizLoggerLevel)
           
 void setClusterName(String clusterName)
           
 void setConfigs(Properties configs)
           
 void setDataPath(String dataPath)
           
 void setIdentity(String identity)
           
 void setJobRunnerClass(Class jobRunnerClass)
           
 void setLocations(String... locations)
           
 void setMasterChangeListeners(com.github.ltsopensource.core.listener.MasterChangeListener... masterChangeListeners)
           
 void setNodeGroup(String nodeGroup)
           
 void setRegistryAddress(String registryAddress)
           
 void setShardField(String shardField)
           
 void setWorkThreads(int workThreads)
           
 void start()
          可以自己得到TaskTracker对象后调用,也可以直接使用spring配置中的init属性指定该方法
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskTrackerAnnotationFactoryBean

public TaskTrackerAnnotationFactoryBean()
Method Detail

getObject

public TaskTracker getObject()
                      throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<TaskTracker>
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<TaskTracker>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<TaskTracker>

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

start

public void start()
可以自己得到TaskTracker对象后调用,也可以直接使用spring配置中的init属性指定该方法


destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

setClusterName

public void setClusterName(String clusterName)

setNodeGroup

public void setNodeGroup(String nodeGroup)

setRegistryAddress

public void setRegistryAddress(String registryAddress)

setDataPath

public void setDataPath(String dataPath)

setWorkThreads

public void setWorkThreads(int workThreads)

setJobRunnerClass

public void setJobRunnerClass(Class jobRunnerClass)

setMasterChangeListeners

public void setMasterChangeListeners(com.github.ltsopensource.core.listener.MasterChangeListener... masterChangeListeners)

setBizLoggerLevel

public void setBizLoggerLevel(String bizLoggerLevel)

setConfigs

public void setConfigs(Properties configs)

setShardField

public void setShardField(String shardField)

setIdentity

public void setIdentity(String identity)

setBindIp

public void setBindIp(String bindIp)

setLocations

public void setLocations(String... locations)


Copyright © 2017. All rights reserved.