Ontimize 5.2072EN

com.ontimize.gui
Interface ConnectionOptimizer

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
SecureReferenceLocator

public interface ConnectionOptimizer
extends java.rmi.Remote

This interface is used to set the compression level for an EntityResult in a query


Method Summary
 int getDataCompressionThreshold(int sessionId)
          Gets the value of the data compression threshold for the specified user
 void setDataCompressionThreshold(java.lang.String user, int id, int compression)
          Sets the value of the user data compression threshold
 EntityResult testConnectionSpeed(int sizeInBytes, boolean compressed)
          This method test the connection speed an return an EntityResult to check the line
 

Method Detail

testConnectionSpeed

public EntityResult testConnectionSpeed(int sizeInBytes,
                                        boolean compressed)
                                 throws java.lang.Exception
This method test the connection speed an return an EntityResult to check the line

Parameters:
sizeInBytes -
compressed -
Returns:
Throws:
java.lang.Exception

setDataCompressionThreshold

public void setDataCompressionThreshold(java.lang.String user,
                                        int id,
                                        int compression)
                                 throws java.lang.Exception
Sets the value of the user data compression threshold

Parameters:
user - User name
id - User session identifier
compression - Compression threshold value
Throws:
java.lang.Exception

getDataCompressionThreshold

public int getDataCompressionThreshold(int sessionId)
                                throws java.lang.Exception
Gets the value of the data compression threshold for the specified user

Parameters:
sessionId - User session identifier
Returns:
Throws:
java.lang.Exception

Ontimize