Class RasRasnetImplementation
java.lang.Object
org.rasdaman.rasnet.communication.RasRasnetImplementation
- All Implemented Interfaces:
Implementation,RasCommDefs,RasGlobalDefs,RasImplementationInterface
public class RasRasnetImplementation
extends Object
implements RasImplementationInterface, RasCommDefs, RasGlobalDefs
-
Field Summary
Fields inherited from interface rasj.clientcommhttp.RasCommDefs
BIG_ENDIAN, BROWSER, LITTLE_ENDIAN, RASCLIENT, RESPONSE_ERROR, RESPONSE_INT, RESPONSE_MDDS, RESPONSE_OID, RESPONSE_OK, RESPONSE_OK_NEGATIVE, RESPONSE_SKALARSFields inherited from interface rasj.global.RasGlobalDefs
ACC_DEN_CAPABILITY_WRONG, ACC_DEN_INC_LOGIN, ACC_DEN_NO_PERMISSION, BASE_DBS_ERROR, CREATED, DATABASE_NOT_DEFINED, DB_CONN_FAILED, DB_NOT_OPEN, DELETED, DIMENSION_MISMATCH, FAST_PRE_SCALE_FACTORS, FAST_PRE_SCALE_SUFFIXES, GETFREESERVER_WAIT_INCREMENT, GETFREESERVER_WAIT_INITIAL, GUESTIDENT_DEFAULT, ILLEGAL_ULONG_VALUE, ILLEGAL_USHORT_VALUE, INDEX_OUT_OF_BOUNDS, INTERNAL_CLIENT_ERROR, INTERNAL_DL_PARSE_EXCEPTION, INVALID_OBJECT_NAME_ERROR, KEYWORD_ATYPE, KEYWORD_BTYPE, KEYWORD_CLASS, KEYWORD_CODE, KEYWORD_COLNO, KEYWORD_DIM1, KEYWORD_DIM2, KEYWORD_ERRNO, KEYWORD_HIGH, KEYWORD_INDEX, KEYWORD_INVNAME, KEYWORD_LINENO, KEYWORD_LOW, KEYWORD_METHOD, KEYWORD_TAB, KEYWORD_TOKEN, KEYWORD_TYPE, KEYWORD_URL, KEYWORD_VAL, MANAGER_BUSY, MANAGER_CONN_FAILED, MAX_GETFREESERVER_ATTEMPTS, MODIFIED, NO_ACTIVE_SERVERS, NO_STATUS, NUM_FAST_PRE_SCALE, RAS_ARRAY, RAS_AUTO_COMPRESSION, RAS_BOOLEAN, RAS_BYTE, RAS_CHAR, RAS_COLLECTION, RAS_COMPLEX1, RAS_DOUBLE, RAS_FLOAT, RAS_HDF, RAS_INT, RAS_JPEG, RAS_LONG, RAS_MARRAY, RAS_MINTERVAL, RAS_OID, RAS_PNG, RAS_POINT, RAS_RGB, RAS_SHORT, RAS_SINTERVAL, RAS_STRING, RAS_STRUCTURE, RAS_TIFF, RAS_ULONG, RAS_UNKNOWN, RAS_USHORT, RAS_ZLIB, RASJ_VERSION, RASMGRPORT_DEFAULT, READ, REQUEST_FORMAT_ERROR, RESULT_IS_NO_CELL, RESULT_IS_NO_INTERVAL, SIZE_OF_BOOLEAN, SIZE_OF_BYTE, SIZE_OF_CHAR, SIZE_OF_DOUBLE, SIZE_OF_FLOAT, SIZE_OF_INTEGER, SIZE_OF_LONG, SIZE_OF_RAS_BOOLEAN, SIZE_OF_RAS_BYTE, SIZE_OF_RAS_CHAR, SIZE_OF_RAS_DOUBLE, SIZE_OF_RAS_FLOAT, SIZE_OF_RAS_LONG, SIZE_OF_RAS_SHORT, SIZE_OF_RAS_ULONG, SIZE_OF_RAS_USHORT, SIZE_OF_SHORT, STREAM_INPUT_OVERFLOW, TRANSIENT, TYPE_INVALID, TYPE_NOT_SUPPORTED, TYPE_UNKNOWN, URL_FORMAT_ERROR, WRITE_TRANS_IN_PROGRESS -
Constructor Summary
ConstructorsConstructorDescriptionRasRasnetImplementation(RasnetServiceFactory rasnetServiceFactory, String server) -
Method Summary
Modifier and TypeMethodDescriptionvoidabortTA()voidbeginTA()voidcloseDB()voidcommitTA()voidconnectClient(String userName, String passwordHash) Get the currentTransactionfor the thread.intdbIsOpen()voidintintgetDatabase(Object obj) Get theDatabasethat contains the objectobj,
not yet available in RasDaMan.intgetObjectId(Object obj) Get aStringrepresentation of the object's identifier.getTypeStructure(String typename, int typetype) booleanisOpenTA()Create a newDArrayobject,
not yet available in RasDaMan.Create a newDatabaseobject.newDBag()Create a newDBagobject.newDList()Create a newDListobject.newDMap()Create a newDMapobject,
not yet available in RasDaMan.newDSet()Create a newDSetobject.Create a newOQLQueryobject.Create aTransactionobject and associate it with the current thread.voidqueryRequest(String parameters) voidsetMaxRetry(int newRetry) voidsetUserIdentification(String userName, String plainPass) voidsetUserIdentificationHashed(String userName, String passwordMD5Hash)
-
Constructor Details
-
RasRasnetImplementation
-
-
Method Details
-
getRasServer
- Specified by:
getRasServerin interfaceRasImplementationInterface
-
dbIsOpen
public int dbIsOpen()- Specified by:
dbIsOpenin interfaceRasImplementationInterface
-
getClientID
public int getClientID()- Specified by:
getClientIDin interfaceRasImplementationInterface
-
getAccessMode
public int getAccessMode()- Specified by:
getAccessModein interfaceRasImplementationInterface
-
getErrorStatus
- Specified by:
getErrorStatusin interfaceRasImplementationInterface
-
newTransaction
Description copied from interface:ImplementationCreate aTransactionobject and associate it with the current thread.- Specified by:
newTransactionin interfaceImplementation- Specified by:
newTransactionin interfaceRasImplementationInterface- Returns:
- The newly created
Transactioninstance. - See Also:
-
currentTransaction
Description copied from interface:ImplementationGet the currentTransactionfor the thread.- Specified by:
currentTransactionin interfaceImplementation- Specified by:
currentTransactionin interfaceRasImplementationInterface- Returns:
- The current
Transactionobject or null if there is none. - See Also:
-
newDatabase
Description copied from interface:ImplementationCreate a newDatabaseobject.- Specified by:
newDatabasein interfaceImplementation- Specified by:
newDatabasein interfaceRasImplementationInterface- Returns:
- The new
Databaseobject. - See Also:
-
newOQLQuery
Description copied from interface:ImplementationCreate a newOQLQueryobject.- Specified by:
newOQLQueryin interfaceImplementation- Specified by:
newOQLQueryin interfaceRasImplementationInterface- Returns:
- The new
OQLQueryobject. - See Also:
-
newDList
Description copied from interface:ImplementationCreate a newDListobject.- Specified by:
newDListin interfaceImplementation- Specified by:
newDListin interfaceRasImplementationInterface- Returns:
- The new
DListobject. - See Also:
-
newDBag
Description copied from interface:ImplementationCreate a newDBagobject.- Specified by:
newDBagin interfaceImplementation- Specified by:
newDBagin interfaceRasImplementationInterface- Returns:
- The new
DBagobject. - See Also:
-
newDSet
Description copied from interface:ImplementationCreate a newDSetobject.- Specified by:
newDSetin interfaceImplementation- Specified by:
newDSetin interfaceRasImplementationInterface- Returns:
- The new
DSetobject. - See Also:
-
newDArray
Description copied from interface:ImplementationCreate a newDArrayobject,
not yet available in RasDaMan.- Specified by:
newDArrayin interfaceImplementation- Specified by:
newDArrayin interfaceRasImplementationInterface- Returns:
- The new
DArrayobject. - See Also:
-
newDMap
Description copied from interface:ImplementationCreate a newDMapobject,
not yet available in RasDaMan.- Specified by:
newDMapin interfaceImplementation- Specified by:
newDMapin interfaceRasImplementationInterface- Returns:
- The new
DMapobject. - See Also:
-
getObjectId
Description copied from interface:ImplementationGet aStringrepresentation of the object's identifier.- Specified by:
getObjectIdin interfaceImplementation- Specified by:
getObjectIdin interfaceRasImplementationInterface- Parameters:
obj- The object whose identifier is being accessed.- Returns:
- The object's identifier in the form of a String
-
getDatabase
Description copied from interface:ImplementationGet theDatabasethat contains the objectobj,
not yet available in RasDaMan.- Specified by:
getDatabasein interfaceImplementation- Specified by:
getDatabasein interfaceRasImplementationInterface- Parameters:
obj- The object.- Returns:
- The
Databasethat contains the object.
-
openDB
- Specified by:
openDBin interfaceRasImplementationInterface- Throws:
ODMGException
-
closeDB
- Specified by:
closeDBin interfaceRasImplementationInterface- Throws:
ODMGException
-
beginTA
public void beginTA()- Specified by:
beginTAin interfaceRasImplementationInterface
-
isOpenTA
public boolean isOpenTA()- Specified by:
isOpenTAin interfaceRasImplementationInterface
-
commitTA
public void commitTA()- Specified by:
commitTAin interfaceRasImplementationInterface
-
abortTA
public void abortTA()- Specified by:
abortTAin interfaceRasImplementationInterface
-
setMaxRetry
public void setMaxRetry(int newRetry) - Specified by:
setMaxRetryin interfaceRasImplementationInterface
-
getMaxRetry
public int getMaxRetry()- Specified by:
getMaxRetryin interfaceRasImplementationInterface
-
setUserIdentification
- Specified by:
setUserIdentificationin interfaceRasImplementationInterface
-
setUserIdentificationHashed
- Specified by:
setUserIdentificationHashedin interfaceRasImplementationInterface
-
connectClient
- Specified by:
connectClientin interfaceRasImplementationInterface
-
queryRequest
- Specified by:
queryRequestin interfaceRasImplementationInterface- Throws:
RasQueryExecutionFailedException
-
getTypeStructure
- Specified by:
getTypeStructurein interfaceRasImplementationInterface
-
disconnectClient
public void disconnectClient()- Specified by:
disconnectClientin interfaceRasImplementationInterface
-