|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.ucsb.cs.jicos.services.Environment
public final class Environment
| Constructor Summary | |
|---|---|
Environment(java.lang.Object input,
Shared shared)
Used to construct the client's computational environment. |
|
| Method Summary | |
|---|---|
void |
addEvent(java.lang.Object event)
|
void |
fetchTask()
Initiate a non-blocking Task request from the Host's TaskServer. |
java.lang.Object |
getCache()
returns host's cache. |
edu.ucsb.cs.jicos.foundation.Q |
getEventQ()
returns input that is common to all tasks of this computation. |
java.lang.Object |
getInput()
returns input that is common to all tasks of this computation. |
edu.ucsb.cs.jicos.services.external.services.ProxyServiceExternal |
getProxyServiceExternal()
|
Shared |
getShared()
returns the modifiable Object that is common to all tasks
of this computation. |
void |
setCache(java.lang.Object cache)
Sets the value of the host's mutable cache Object. |
void |
setProxyServiceExternal(edu.ucsb.cs.jicos.services.external.services.ProxyServiceExternal proxyServiceExternal)
|
void |
setShared(Shared shared)
Sets the value of the mutable Shared Object that
is common to all tasks of this computation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Environment(java.lang.Object input,
Shared shared)
input - Input to the entire computation.
Every Task that the client sends to the Hsp has access to it
this input.
It is immutable.
See the TSP example given above.shared - Every Task that the client sends to the Hsp has access to
this object, and can change its value: It is mutable.
See the TSP example given above.
See Shared.| Method Detail |
|---|
public void addEvent(java.lang.Object event)
public void fetchTask()
public java.lang.Object getCache()
Object:
It must be cast appropriately.public edu.ucsb.cs.jicos.foundation.Q getEventQ()
Object that is common to all tasks of this computation:
It must be cast appropriately.public java.lang.Object getInput()
Object that is common to all tasks of this computation:
It must be cast appropriately.public edu.ucsb.cs.jicos.services.external.services.ProxyServiceExternal getProxyServiceExternal()
public void setProxyServiceExternal(edu.ucsb.cs.jicos.services.external.services.ProxyServiceExternal proxyServiceExternal)
public Shared getShared()
Object that is common to all tasks
of this computation.
Intended to be invoked by hosted Task.
Object that is common to all tasks of this
computation: It must be cast appropriately.public void setCache(java.lang.Object cache)
cache Object.
Intended to be invoked by a Task.
cache - The new cache value.public void setShared(Shared shared)
Shared Object that
is common to all tasks of this computation.
Jicos propagates this value until either all Hosts have received
it, or some TaskServer deems it not new. See Shared.
Intended to be invoked by a Task.
shared - The Shared Object value proposed by the
invoking task as being a newer value for the Shared Object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||