|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Server.LogicalTarget.ServerLogicalTargetManager
public abstract class ServerLogicalTargetManager
This class defines an interface that must be implemented by the new compression systems supported by the CADI Server. This interface is used to manage the supported logical targets.
Usage example:
constructor
setParentName
setLog
logicalTargetIndexing
processClientRequest
getResponseViewWindow
getQuality
deliveryData
getJPIPMessageHeaders
| Field Summary | |
|---|---|
protected int |
EORReasonCode
Reason code. |
protected java.lang.String |
EORReasonMessage
It is and reason message associated with the EORReasonCode. |
protected java.util.ArrayList<JPIPMessageHeader> |
jpipMessageHeaders
An array list to save the JPIP message heders which have been sent as a response to the client. |
protected CADILog |
log
Definition in Scheduler.log |
protected java.lang.String |
parentName
It is the parent name (which invokes an object of this class). |
protected int |
quality
Definition in JPIPResponseFields.quality. |
protected ViewWindowField |
responseViewWindow
Contains the view window for the image served, if it has been changed by the server. |
| Constructor Summary | |
|---|---|
ServerLogicalTargetManager()
|
|
| Method Summary | |
|---|---|
abstract void |
deliveryData(HTTPResponseSender httpResponseSender)
This method deliveries the data which belong to the request view window. |
abstract void |
deliveryData(HTTPResponseSender httpResponseSender,
JPIPMessageEncoder jpipMessageEncoder)
This method deliveries the data which belong to the request view window. |
int |
getEORReasonCode()
Gets the reason code value. |
java.lang.String |
getEORReasonMessage()
Gets the reason message. |
java.util.ArrayList<JPIPMessageHeader> |
getJPIPMessageHeaders()
Gets the jpipMessageHeaders attribute. |
int |
getQuality()
Returns the quality. |
ViewWindowField |
getResponseViewWindow()
|
abstract ServerLogicalTarget |
logicalTargetIndexing(BufferedDataInputStream in)
Indexes a logical target file, i.e, reads the logical target structure and it is kept in memory be used later when a client request for a Window of Interest of the logical target. |
abstract void |
processClientRequest(ServerLogicalTarget logicalTarget,
ServerCache serverCache,
ViewWindowField requestViewWindow,
long maxLen)
This method processes the request WOI of the client. |
void |
setLog(CADILog log)
Sets the log attribute. |
void |
setParentName(java.lang.String parentName)
Sets the parent name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<JPIPMessageHeader> jpipMessageHeaders
Worker object to update the server cache.
protected ViewWindowField responseViewWindow
protected int quality
JPIPResponseFields.quality.
protected CADILog log
Scheduler.log
protected java.lang.String parentName
This attribute will be used to be passed to the log object as the thread name.
protected int EORReasonCode
EORCodes
protected java.lang.String EORReasonMessage
EORReasonCode.
It is an optional attribute.
| Constructor Detail |
|---|
public ServerLogicalTargetManager()
| Method Detail |
|---|
public final void setLog(CADILog log)
log - definition in Scheduler.log.public final void setParentName(java.lang.String parentName)
parentName - definition in parentName.
public abstract ServerLogicalTarget logicalTargetIndexing(BufferedDataInputStream in)
throws WarningException,
ErrorException
in -
WarningException
ErrorException
public abstract void processClientRequest(ServerLogicalTarget logicalTarget,
ServerCache serverCache,
ViewWindowField requestViewWindow,
long maxLen)
throws java.lang.IllegalArgumentException
This function must be implemented for each logical target supported.
logicalTarget - serverCache - requestViewWindow - maxLen -
java.lang.IllegalArgumentException - If an illegal or inappropiate argument has been passed.
public abstract void deliveryData(HTTPResponseSender httpResponseSender)
throws java.io.IOException,
ErrorException
httpResponseSender -
java.io.IOException
ErrorException
public abstract void deliveryData(HTTPResponseSender httpResponseSender,
JPIPMessageEncoder jpipMessageEncoder)
throws java.io.IOException,
ErrorException
httpResponseSender - jpipMessageEncoder -
java.io.IOException
ErrorExceptionpublic final ViewWindowField getResponseViewWindow()
public final int getQuality()
quality.
quality.public final java.util.ArrayList<JPIPMessageHeader> getJPIPMessageHeaders()
jpipMessageHeaders attribute.
jpipMessageHeaders.public final int getEORReasonCode()
EORReasonCodepublic final java.lang.String getEORReasonMessage()
EORReasonMessage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||