|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.hadoop.hive.HiveClientFactoryBean
public class HiveClientFactoryBean
FactoryBean for easy declaration and creation of a HiveClient
using ThriftHive
.
Constructor Summary | |
---|---|
HiveClientFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
String |
getHost()
Returns the host. |
HiveClient |
getObject()
|
Class<?> |
getObjectType()
|
int |
getPhase()
|
int |
getPort()
Returns the port. |
int |
getTimeout()
Returns the timeout. |
boolean |
isAutoStartup()
|
boolean |
isRunning()
|
boolean |
isSingleton()
|
void |
setAutoStartup(boolean autoStart)
Indicates whether the Hive client should start automatically (default) or not. |
void |
setHost(String host)
Sets the server host. |
void |
setPort(int port)
Sets the server port. |
void |
setScripts(Collection<Resource> scripts)
Sets the scripts to execute once the client connects. |
void |
setTimeout(int timeout)
Sets the connection timeout. |
void |
start()
|
void |
stop()
|
void |
stop(Runnable callback)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HiveClientFactoryBean()
Method Detail |
---|
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
public void destroy()
destroy
in interface DisposableBean
public HiveClient getObject()
getObject
in interface FactoryBean<HiveClient>
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<HiveClient>
public boolean isSingleton()
isSingleton
in interface FactoryBean<HiveClient>
public boolean isAutoStartup()
isAutoStartup
in interface SmartLifecycle
public void stop(Runnable callback)
stop
in interface SmartLifecycle
public boolean isRunning()
isRunning
in interface Lifecycle
public void start()
start
in interface Lifecycle
public void stop()
stop
in interface Lifecycle
public int getPhase()
getPhase
in interface Phased
public void setAutoStartup(boolean autoStart)
autoStart
- whether to automatically start or notpublic String getHost()
public void setHost(String host)
host
- The host to set.public int getPort()
public void setPort(int port)
port
- The port to set.public int getTimeout()
public void setTimeout(int timeout)
timeout
- The timeout to set.public void setScripts(Collection<Resource> scripts)
scripts
- The scripts to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |