|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jcreme.processing.RMIProducer
This class provides access to a RemoteProducer. Note all the exchanged Objects must be serializable.
| Constructor Summary | |
RMIProducer(RemoteProducer producer)
Creates a new RMIProducer. |
|
| Method Summary | |
boolean |
isProductionOver()
Returns true if the production is over, false if not. |
java.lang.Object |
nextItem()
Returns the next item free for consumption. |
boolean |
produceItem()
Produces next item, i.e. marks it as consumable. |
void |
setProductionOver(boolean bool)
Sets a flag that shows whether the production is over. |
boolean |
validateItem(java.lang.Object theItem)
Validates an item, i.e. marks it as having been consumed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RMIProducer(RemoteProducer producer)
throws java.lang.IllegalArgumentException
producer - the RemoteProducer that is exposed through this RMIProducer.
java.lang.IllegalArgumentException - if producer is null.| Method Detail |
public void setProductionOver(boolean bool)
Producer
setProductionOver in interface Producerbool - The boolean value that the flag has to be set on.Producer.setProductionOver(boolean)public boolean isProductionOver()
Producer
isProductionOver in interface ProducerProducer.isProductionOver()public java.lang.Object nextItem()
Producer
nextItem in interface ProducerProducer.nextItem()public boolean validateItem(java.lang.Object theItem)
Producer
validateItem in interface ProducertheItem - The item to be validated.
Producer.validateItem(java.lang.Object)public boolean produceItem()
Producer
produceItem in interface ProducerProducer.produceItem()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||