net.sf.jagzilla
Interface JagzillaTransport

All Known Implementing Classes:
JagzillaTransportBaseImpl

public interface JagzillaTransport

defines methods to test connectivity against the backend. This interface is part of the jagzilla Core API.
Different implementations may provide different methods of access to the data. This interface provides a simple way of getting information about a connection (ie. web services, JDBC) without using low level, transport specific code.

Author:
Miguel Griffa

Method Summary
 java.lang.Exception getLastException()
          returns the last error that occurs when verifying transport.
 boolean transportAvailable()
          test the access method to prove accesibility to the backend.
 

Method Detail

transportAvailable

public boolean transportAvailable()
test the access method to prove accesibility to the backend. This method must provide different

Returns:
true if the backend is accessible, false otherwise.

getLastException

public java.lang.Exception getLastException()
returns the last error that occurs when verifying transport.

Returns:
an Exception that occured verifying transport availability or null if none.


Distributed under the GPL. By Miguel Griffa. See the Jagzilla project page for more info.