|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectuk.ac.ic.doc.automed.wrappers.AutoMedWrapper
uk.ac.ic.doc.automed.wrappers.P2PWrapper
public class P2PWrapper
Use the AutoMed P2P package to access other AutoMed repositories (called peers) that contain a common schema. This schema is called a public schema, which any peer is free to store in its own repository and provide pathways to its datasources.
| Field Summary | |
|---|---|
static java.lang.String |
driverString
|
private static java.lang.String |
protocolName
|
| Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper |
|---|
am, awf, debug, driver, emptyKeyProtection, emptyKeys, optionKeyProtection, optionKeys, optionSet, password, protocol, s, url, username |
| Constructor Summary | |
|---|---|
P2PWrapper()
|
|
P2PWrapper(AccessMethod am,
java.lang.String password)
|
|
| Method Summary | |
|---|---|
protected void |
connect()
In a P2P network, communication is not guarenteed, and hence this method returning with an Exception does not ensure that all peers are contactable. |
ASG |
executeIQL(ASG q)
Execute an IQL query on the datasource. |
ASG |
executeSourceIQL(ASG q,
QueryProcessorConfiguration qpc,
int packetNumber)
This is similar to executeIQL(ASG q) except that it takes a configuration object as an extra argument. |
protected AutoMedWrapperFactory |
getDefaultWrapperFactory()
Return the default AutoMedWrapperFactory that is used to generate
Schema instances from information in a data sources |
java.lang.String |
getProtocolName()
The name of the Protocol that this wrapper uses. |
QueryParser |
getQueryParser(ASG query)
Return a parser that will accept queries for the wrapper. |
static void |
main(java.lang.String[] args)
|
private static java.lang.String |
removeSchemaName(java.lang.String queryItem)
Remove an individual schema name from each query item |
private static java.lang.String |
removeSchemaNames(java.lang.String query)
|
| Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper |
|---|
atDebugLevel, cacheWrapper, costIQL, deleteIQL, executeIQL, executeIQLIncrementally, executeLocalQuery, getAccessMethod, getAutoMedPeerInstance, getAutoMedWrapper, getAutoMedWrapper, getAutoMedWrapperFactory, getDrivers, getMetadata, getOption, getOptionKeyProtection, getOptionKeys, getProtocol, getRange, getSchema, getSchema, getURL, getUserName, insertIQL, newAutoMedSchema, newAutoMedWrapper, newAutoMedWrapper, newAutoMedWrapper, newAutoMedWrapperInstance, registerWrapper, selectNewAutoMedWrapper, selectNewAutoMedWrapper, setDebugLevel, setOption |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String protocolName
public static final java.lang.String driverString
| Constructor Detail |
|---|
public P2PWrapper()
public P2PWrapper(AccessMethod am,
java.lang.String password)
throws DataSourceException
DataSourceException| Method Detail |
|---|
protected void connect()
throws DataSourceException
connect in class AutoMedWrapperDataSourceException - if unable to connect one of the peerspublic java.lang.String getProtocolName()
Protocol that this wrapper uses. For this wrapper
it will always be "p2p"
getProtocolName in class AutoMedWrapperprivate static java.lang.String removeSchemaNames(java.lang.String query)
private static java.lang.String removeSchemaName(java.lang.String queryItem)
public ASG executeIQL(ASG q)
throws DataSourceException,
NotFoundException
executeIQL in class AutoMedWrapperq - An IQL query held in an ASG which complies with the
limitations of what this wrapper is able to process
ASG containing the results of the query
DataSourceException
NotFoundException
public ASG executeSourceIQL(ASG q,
QueryProcessorConfiguration qpc,
int packetNumber)
throws DataSourceException,
NotFoundException
AutoMedWrapperexecuteIQL(ASG q} method.
executeSourceIQL in interface CacheUserexecuteSourceIQL in class AutoMedWrapperDataSourceException
NotFoundExceptionprotected AutoMedWrapperFactory getDefaultWrapperFactory()
AutoMedWrapperFactory that is used to generate
Schema instances from information in a data sources
getDefaultWrapperFactory in class AutoMedWrapperpublic QueryParser getQueryParser(ASG query)
AutoMedWrapperSchemes, which accepts only single schemes, with no
other IQL operators supported. The SimpleComp parser will allow
simple list comprehensions to be passed to the wrapper.
getQueryParser in class AutoMedWrapperpublic static void main(java.lang.String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||