public class ProxyClientSessionTarget extends ServerSideSessionTarget
Modifier and Type | Field and Description |
---|---|
private int |
MAX_HISTORY_RECORDS
Is the maximum number of WOIs to be recorded in the historic.
|
private java.util.ArrayList<ViewWindowField> |
woiHistory
This attribute is used to store a historic of WOIs requested by clients.
|
cache
channels, returnType, tid
Constructor and Description |
---|
ProxyClientSessionTarget(java.lang.String tid,
ProxyJPEG2KCodestream codestream)
Constructor.
|
ProxyClientSessionTarget(java.lang.String tid,
ProxyJPEG2KCodestream codestream,
java.lang.String returnType)
Constructor.
|
ProxyClientSessionTarget(java.lang.String tid,
ProxyJPEG2KCodestream codestream,
java.lang.String returnType,
boolean recordHistoric)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addWOIToHistory(ViewWindowField woi)
Adds a new WOI to the historic.
|
ProxyCacheModel |
getCache()
Returns the cache object.
|
ViewWindowField |
getLastWOIHistory() |
java.util.ArrayList<ViewWindowField> |
getWOIHistory()
Returns the
#woisHistoric attribute. |
void |
list(java.io.PrintStream out)
Prints this Proxy Session Target out to the specified output stream.
|
java.lang.String |
newChannel() |
java.lang.String |
newChannel(java.lang.String transport) |
void |
remove()
Removes all the attributes.
|
java.lang.String |
toString() |
closeChannel, contains, getChannel, getCid, getCids, getReturnType, getTid, getTID, numOfChannels, setTID
private java.util.ArrayList<ViewWindowField> woiHistory
Its usefulness is to be used by the prefetching module.
private int MAX_HISTORY_RECORDS
public ProxyClientSessionTarget(java.lang.String tid, ProxyJPEG2KCodestream codestream)
tid
- codestream
- public ProxyClientSessionTarget(java.lang.String tid, ProxyJPEG2KCodestream codestream, java.lang.String returnType)
tid
- codestream
- returnType
- public ProxyClientSessionTarget(java.lang.String tid, ProxyJPEG2KCodestream codestream, java.lang.String returnType, boolean recordHistoric)
tid
- codestream
- returnType
- recordHistoric
- public ProxyCacheModel getCache()
public java.lang.String newChannel()
newChannel
in class SessionTarget
public java.lang.String newChannel(java.lang.String transport)
newChannel
in class SessionTarget
transport
- public void remove()
remove
in class SessionTarget
public void addWOIToHistory(ViewWindowField woi)
woi
- the WOI to be added.public java.util.ArrayList<ViewWindowField> getWOIHistory()
#woisHistoric
attribute.#woisHistoric
.public ViewWindowField getLastWOIHistory()
public java.lang.String toString()
toString
in class ServerSideSessionTarget
public void list(java.io.PrintStream out)
list
in class ServerSideSessionTarget
out
- an output stream.
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)