From dabd31a107bb8818596002b4edf12477ac241d61 Mon Sep 17 00:00:00 2001 From: Michael Petretti Date: Wed, 27 Aug 2014 16:10:08 +0200 Subject: Added comments for better documentation. --- .../org/openslx/satellitedaemon/filetransfer/ThriftConnection.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java') diff --git a/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java b/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java index c77d6d6..22f270a 100644 --- a/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java +++ b/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java @@ -114,7 +114,7 @@ public class ThriftConnection { // SessionID is not valid // TODO: Code for new SSID } else if (e.getNumber().equals(AuthorizationError.NO_PERMISSION)) { - // Gibts noch gar nicht + // not yet implemented. } else { e.printStackTrace(); @@ -338,6 +338,8 @@ public class ThriftConnection { theClient = client; isAuthenticated = true; } + // here the client was already used so we are just assuming that the client is still + // authenticated. Should be checked with the ping() method. // try { // isAuthenticated = theClient.ping(); // } catch ( TException x ) { @@ -387,8 +389,8 @@ public class ThriftConnection { /***********************************************************************************************/ /** + * Method for creating a new Client for Thrift communication. * - * @return * @throws IOException */ private static ImageServer.Client newClient() throws IOException { -- cgit v1.2.3-55-g7522