com.github.ltsopensource.spring
Class JobTrackerFactoryBean

java.lang.Object
  extended by com.github.ltsopensource.spring.JobTrackerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<JobTracker>, org.springframework.beans.factory.InitializingBean

public class JobTrackerFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<JobTracker>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

JobTracker Spring Bean 工厂类

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

Constructor Summary
JobTrackerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 JobTracker getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setBindIp(String bindIp)
           
 void setClusterName(String clusterName)
           
 void setConfigs(Properties configs)
           
 void setIdentity(String identity)
           
 void setListenPort(Integer listenPort)
           
 void setLocations(String... locations)
           
 void setMasterChangeListeners(com.github.ltsopensource.core.listener.MasterChangeListener... masterChangeListeners)
           
 void setOldDataHandler(OldDataHandler oldDataHandler)
           
 void setRegistryAddress(String registryAddress)
           
 void start()
          可以自己得到JobTracker对象后调用,也可以直接使用spring配置中的init属性指定该方法
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobTrackerFactoryBean

public JobTrackerFactoryBean()
Method Detail

getObject

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

getObjectType

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

isSingleton

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

afterPropertiesSet

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

start

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


destroy

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

setClusterName

public void setClusterName(String clusterName)

setRegistryAddress

public void setRegistryAddress(String registryAddress)

setMasterChangeListeners

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

setConfigs

public void setConfigs(Properties configs)

setOldDataHandler

public void setOldDataHandler(OldDataHandler oldDataHandler)

setListenPort

public void setListenPort(Integer listenPort)

setIdentity

public void setIdentity(String identity)

setBindIp

public void setBindIp(String bindIp)

setLocations

public void setLocations(String... locations)


Copyright © 2017. All rights reserved.