Package org.teiid.resource.adapter.hdfs
Class HdfsManagedConnectionFactory
- java.lang.Object
-
- org.teiid.resource.spi.BasicManagedConnectionFactory
-
- org.teiid.resource.adapter.hdfs.HdfsManagedConnectionFactory
-
- All Implemented Interfaces:
Serializable
,javax.resource.spi.ManagedConnectionFactory
,javax.resource.spi.ResourceAdapterAssociation
,javax.resource.spi.ValidatingManagedConnectionFactory
,HdfsConfiguration
public class HdfsManagedConnectionFactory extends BasicManagedConnectionFactory implements HdfsConfiguration
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BundleUtil
UTIL
-
Constructor Summary
Constructors Constructor Description HdfsManagedConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicConnectionFactory<ResourceConnection>
createConnectionFactory()
boolean
equals(Object obj)
String
getFsUri()
Uri to the hdfs instanceString
getResourcePath()
Optional location of a configuration resource file.int
hashCode()
void
setFsUri(String fsUri)
void
setResourcePath(String resourcePath)
-
Methods inherited from class org.teiid.resource.spi.BasicManagedConnectionFactory
checkEquals, createConnectionFactory, createManagedConnection, getInstance, getInvalidConnections, getLogWriter, getResourceAdapter, matchManagedConnections, setLogWriter, setResourceAdapter
-
-
-
-
Field Detail
-
UTIL
public static final BundleUtil UTIL
-
-
Method Detail
-
createConnectionFactory
public BasicConnectionFactory<ResourceConnection> createConnectionFactory() throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interfacejavax.resource.spi.ManagedConnectionFactory
- Specified by:
createConnectionFactory
in classBasicManagedConnectionFactory
- Throws:
javax.resource.ResourceException
-
getFsUri
public String getFsUri()
Description copied from interface:HdfsConfiguration
Uri to the hdfs instance- Specified by:
getFsUri
in interfaceHdfsConfiguration
- Returns:
-
getResourcePath
public String getResourcePath()
Description copied from interface:HdfsConfiguration
Optional location of a configuration resource file. May be a classpath location or filesystem path.- Specified by:
getResourcePath
in interfaceHdfsConfiguration
- Returns:
-
setFsUri
public void setFsUri(String fsUri)
-
setResourcePath
public void setResourcePath(String resourcePath)
-
hashCode
public int hashCode()
-
-