|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.gce.imagemosaic.jdbc.custom.JDBCAccessCustom
public abstract class JDBCAccessCustom
This class is a base class for customzied JDBCAccess Special implentations should subclass
Constructor Summary | |
---|---|
JDBCAccessCustom(Config config)
|
Method Summary | |
---|---|
protected void |
closeCallableStmt(java.sql.CallableStatement stmt)
closeCallableStatement |
protected void |
closeConnection(java.sql.Connection con)
closeConnection |
protected void |
closePreparedStmt(java.sql.PreparedStatement stmt)
closePreparedStatement |
protected void |
closeResultSet(java.sql.ResultSet rs)
closeResultSet |
protected void |
closeStmt(java.sql.Statement stmt)
closeStmt |
Config |
getConfig()
|
protected java.sql.Connection |
getConnection()
getConnection |
protected org.opengis.referencing.crs.CoordinateReferenceSystem |
getCRS()
getCRS |
ImageLevelInfo |
getLevelInfo(int level)
|
java.util.List<ImageLevelInfo> |
getLevelInfos()
|
int |
getNumOverviews()
|
abstract void |
initialize()
initialze the the JDBCAccess object, has to be called exactly once |
abstract void |
startTileDecoders(java.awt.Rectangle pixelDimension,
GeneralEnvelope requestEnvelope,
ImageLevelInfo info,
java.util.concurrent.LinkedBlockingQueue<TileQueueElement> tileQueue,
GridCoverageFactory coverageFactory)
Method for starting the main action, getting the neccessairy tiles and decoding them in a multithreaded manner |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCAccessCustom(Config config) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public ImageLevelInfo getLevelInfo(int level)
getLevelInfo
in interface JDBCAccess
level
- the level (0 is original, 1 is first pyramid,...)
public int getNumOverviews()
getNumOverviews
in interface JDBCAccess
public abstract void initialize() throws java.sql.SQLException, java.io.IOException
JDBCAccess
initialize
in interface JDBCAccess
java.sql.SQLException
java.io.IOException
public abstract void startTileDecoders(java.awt.Rectangle pixelDimension, GeneralEnvelope requestEnvelope, ImageLevelInfo info, java.util.concurrent.LinkedBlockingQueue<TileQueueElement> tileQueue, GridCoverageFactory coverageFactory) throws java.io.IOException
JDBCAccess
startTileDecoders
in interface JDBCAccess
pixelDimension
- the needed pixel dimensionrequestEnvelope
- the needed envelope in world coordinatesinfo
- the corresponding ImageLevelInfo objecttileQueue
- a queue where to put the thread resultscoverageFactory
- GridCoverageFactory
java.io.IOException
protected java.sql.Connection getConnection()
protected void closeConnection(java.sql.Connection con)
conn
- Connection Object passed to be closedprotected void closePreparedStmt(java.sql.PreparedStatement stmt)
stmt
- PreparedStatement Object passed to be closedprotected void closeCallableStmt(java.sql.CallableStatement stmt)
stmt
- CallableStatement Object passed to be closedprotected void closeStmt(java.sql.Statement stmt)
stmt
- Statement Object passed to be closedprotected void closeResultSet(java.sql.ResultSet rs)
rs
- ResultSet Object passed to be closedprotected org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
public Config getConfig()
public java.util.List<ImageLevelInfo> getLevelInfos()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |