|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umich.eecs.tac.props.AbstractTransportable
edu.umich.eecs.tac.props.Ranking.Slot
public static class Ranking.Slot
The slot for the ranking. The slot contains the ad link and the promoted status.
| Constructor Summary | |
|---|---|
Ranking.Slot()
Creates an empty slot. |
|
Ranking.Slot(AdLink adLink,
boolean promoted)
Creates a slot with an ad link and promoted status. |
|
| Method Summary | |
|---|---|
AdLink |
getAdLink()
Returns the ad link. |
boolean |
isPromoted()
Returns the promoted status. |
protected void |
readWithLock(se.sics.isl.transport.TransportReader reader)
Read the ad link and the promoted status from the reader. |
void |
setAdLink(AdLink adLink)
Sets the ad link. |
void |
setPromoted(boolean promoted)
Sets the promoted status. |
protected void |
writeWithLock(se.sics.isl.transport.TransportWriter writer)
Write the ad link and the promoted status to the writer. |
| Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportable |
|---|
getTransportName, isLocked, lock, lockCheck, read, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ranking.Slot()
public Ranking.Slot(AdLink adLink,
boolean promoted)
ad link and promoted status.
adLink - the ad link.promoted - the promoted status.| Method Detail |
|---|
public final AdLink getAdLink()
ad link.
ad link.public final void setAdLink(AdLink adLink)
ad link.
adLink - the ad link.public final boolean isPromoted()
public final void setPromoted(boolean promoted)
promoted - the promoted status.
protected final void readWithLock(se.sics.isl.transport.TransportReader reader)
throws java.text.ParseException
ad link and the promoted status from the reader.
readWithLock in class AbstractTransportablereader - the reader to read data from.
java.text.ParseException - if an exception occurs while reading the promoted status and ad link.protected final void writeWithLock(se.sics.isl.transport.TransportWriter writer)
ad link and the promoted status to the writer.
writeWithLock in class AbstractTransportablewriter - the writer to write data to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||