com.softwareag.tamino.db.api.accessor.logging
Class TSystemAccessorTimeLoggingImpl

java.lang.Object
  extended by com.softwareag.tamino.db.api.accessor.TAbstractAccessor
      extended by com.softwareag.tamino.db.api.accessor.TSystemAccessorImpl
          extended by com.softwareag.tamino.db.api.accessor.logging.TSystemAccessorTimeLoggingImpl
All Implemented Interfaces:
TAccessor, TInvalidatableAccessor, TSystemAccessor

public class TSystemAccessorTimeLoggingImpl
extends TSystemAccessorImpl

TSystemAccessorTimeLoggingImpl is an extension of TSystemAccessorImpl that support time logging for the methods of the TSystemAccessor interface.

Version:
$Revision: 1.2 $
Author:
Oliver.Kleber@softwareag.com

Field Summary
 
Fields inherited from class com.softwareag.tamino.db.api.accessor.TAbstractAccessor
canBeCancelled, clientRequests, requestCounter, SGUAI
 
Constructor Summary
TSystemAccessorTimeLoggingImpl(TGenericAccessor genericAccessor)
          Special Constructor.
 
Method Summary
 java.lang.String getAPIVersion()
          Get this a API�s version number.
 java.lang.String getServerAPIVersion()
          Deprecated. Please use getServerVersion() instead.
 TServerEcho getServerEcho()
          Get the echo object.
 TServerTime getServerTime()
          Get the server up time information.
 java.lang.String getServerVersion()
          Get the Tamino server version.
 boolean isServerAlive()
          Tries to establish a connection and returns the answer.
 
Methods inherited from class com.softwareag.tamino.db.api.accessor.TSystemAccessorImpl
diagnose, getFullServerVersion
 
Methods inherited from class com.softwareag.tamino.db.api.accessor.TAbstractAccessor
cancelRequests, getAccessCollection, getAccessLocation, getApplicationName, getCanBeCancelled, getDatabaseUri, getInvocation, getLocale, getLockMode, getLockwaitMode, getMaximumRequestDuration, invalidate, invoke, invoke, invoke, setAccessLocation, setApplicationName, setCanBeCancelled, setInvocation, setLockMode, setLockwaitMode, setMaximumRequestDuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.softwareag.tamino.db.api.accessor.TAccessor
cancelRequests, getAccessLocation, getApplicationName, getCanBeCancelled, getLockMode, getLockwaitMode, getMaximumRequestDuration, setAccessLocation, setApplicationName, setCanBeCancelled, setLockMode, setLockwaitMode, setMaximumRequestDuration
 
Methods inherited from interface com.softwareag.tamino.db.api.accessor.TInvalidatableAccessor
invalidate
 

Constructor Detail

TSystemAccessorTimeLoggingImpl

public TSystemAccessorTimeLoggingImpl(TGenericAccessor genericAccessor)
Special Constructor. Initializes the accessor with the given TGenericAccessor.

Parameters:
genericAccessor -
Method Detail

isServerAlive

public boolean isServerAlive()
                      throws TAccessorException
Tries to establish a connection and returns the answer.

Specified by:
isServerAlive in interface TSystemAccessor
Overrides:
isServerAlive in class TSystemAccessorImpl
Returns:
success or failure of establishing a connection.
Throws:
TAccrssorException - if the the operation fails.
TAccessorException - signals an error while attempting to connect to the database.

getServerEcho

public TServerEcho getServerEcho()
                          throws TAccessorException
Get the echo object.

Specified by:
getServerEcho in interface TSystemAccessor
Overrides:
getServerEcho in class TSystemAccessorImpl
Returns:
TServerEcho instance.
Throws:
TAccrssorException - if the the operation fails.
TAccessorException - signals an error while attempting to connect to retrieve the information from the database.

getServerVersion

public java.lang.String getServerVersion()
                                  throws TAccessorException
Get the Tamino server version.

Specified by:
getServerVersion in interface TSystemAccessor
Overrides:
getServerVersion in class TSystemAccessorImpl
Returns:
Tamino server version.
Throws:
TAccrssorException - if the the operation fails.
TAccessorException - signals an error while attempting to to retrieve the information from the database.

getServerAPIVersion

public java.lang.String getServerAPIVersion()
                                     throws TAccessorException
Deprecated. Please use getServerVersion() instead.

Gets the version of the Tamino server API. The version is returned as a string consisting of 2 numbers separated by a period, e.g. 1.1.

Specified by:
getServerAPIVersion in interface TSystemAccessor
Overrides:
getServerAPIVersion in class TSystemAccessorImpl
Returns:
Tamino server API version.
Throws:
TAccessorException - signals an error while attempting to connect to retrieve the information from the database.

getServerTime

public TServerTime getServerTime()
                          throws TAccessorException
Get the server up time information.

Specified by:
getServerTime in interface TSystemAccessor
Overrides:
getServerTime in class TSystemAccessorImpl
Returns:
TServerTime instance
Throws:
TAccessorException - if the the operation fails.

getAPIVersion

public java.lang.String getAPIVersion()
Get this a API�s version number.

Specified by:
getAPIVersion in interface TSystemAccessor
Overrides:
getAPIVersion in class TSystemAccessorImpl
Returns:
API version number or null if not present.


Copyright (c) 2013 Software AG. All Rights Reserved.