|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlime.UponMgr
Field Summary | |
static java.lang.String |
AGENT
|
static short |
AGENT_BYE
|
static java.lang.String |
AGENT_GONE
|
static short |
AGENT_HELLO
|
static int |
AGENT_ID_TAG
|
static short |
AGENT_LOCALHOST
|
static short |
AGENT_NOTINSYS
|
static short |
AGENT_REMOTE
|
static short |
AGENT_UNSPECIFIED
|
static short |
DATA
|
static short |
DECLARE_LEADER
|
static short |
DISENGAGE_AGENT
|
static short |
DISENGAGE_HOST
|
static short |
ENGAGE_AGENT
|
static short |
ENGAGE_HOST
|
static short |
GO
|
static java.lang.String |
HOST
|
static int |
HOST_ADDR_TAG
|
static short |
HOST_BYE
|
static java.lang.String |
HOST_GONE
|
static short |
HOST_HELLO
|
static short |
HOST_LOCALHOST
|
static short |
HOST_NOTINSYS
|
static short |
HOST_REMOTE
|
static int |
HOST_TUPLE_HOST_TAG
|
static short |
HOST_UNSPECIFIED
|
static short |
ING
|
static short |
INITIATOR_REQ
|
static short |
INST_REACTS_TO
|
static short |
INST_REM_UPON_LISTENER
|
static short |
INST_UPON_LISTENER
|
static short |
LOCAL_SYS_TAKE
|
private static short |
LOCATIONS
|
(package private) LimeTSMgr |
ltsm
It is going to be null if this is the UponMgr for a private LTS. |
static int |
MAX_ROUNDS
|
(package private) java.util.Hashtable |
nonInstallableUpon
|
static short |
OUTG
|
(package private) java.util.Hashtable |
pendingUpon
from seqnum->registered reaction |
private static long |
pendingUponSeqNum
|
static short |
RDG
|
(package private) Reactor |
reactor
|
static short |
REACTS_TO
|
static short |
READ
|
static short |
READY
|
static short |
READY_SPECIAL
|
static short |
REM_ING
|
static short |
REM_OUTG
|
static short |
REM_OUTG_ACK
|
static short |
REM_RDG
|
static short |
REM_SYS_READ
|
static short |
REM_SYS_TAKE
|
static short |
REMOVE_REACTS_TO
|
static short |
REMOVE_REM_UPON_LISTENER
|
static short |
REMOVE_UPON
|
static short |
REQUEST_TRANSACTION
|
static short |
SET_HOST
|
static short |
SET_SHARED
|
static short |
SETUP
|
static short |
SETUP_SPECIAL
|
static short |
START
|
private static short |
SUBSCRIBERS
|
static short |
SYS_READ
|
static short |
SYS_REPLY
|
static short |
SYS_TAKE
|
static short |
TAKE
|
static short |
TRANSACTION_GRANTED
|
static java.lang.String |
TS
|
static java.lang.String |
TS_GONE
|
static int |
TS_ID_TAG
|
static int |
TYPE_TAG
|
static short |
UPON
|
static short |
UPON_EVENT
|
static java.lang.String |
VERSION
|
static short |
WAIT_TO_READ
|
static short |
WAIT_TO_TAKE
|
static short |
WRITE
|
Constructor Summary | |
(package private) |
UponMgr(Reactor reactor,
LimeTSMgr ltsm)
|
Method Summary | |
(package private) RegisteredReaction |
findRemoteRegisteredReaction(long seqNum,
AgentID subscriber)
|
(package private) RegisteredReaction[] |
findRemRegReactBySubscriber(AgentID[] agents)
|
(package private) RegisteredReaction[] |
getAllUpons()
|
(package private) RegisteredReaction[] |
getUpons(boolean installed)
Retrieve either the already installed upons or the noninstallable upons (based on the parameter) fromthe pendingUpon structure (NOT THE REACTOR). |
(package private) RegisteredReaction[][] |
getUpons(java.lang.Object[] o,
boolean pending,
short type)
|
(package private) RegisteredReaction[][] |
getUponsWithLocation(Location[] locations,
boolean pending)
Pick all the registered reactions that have the current location equal to one of those supplied. |
(package private) RegisteredReaction[][] |
getUponsWithSubscriber(AgentID[] subscribers,
boolean pending)
Pick all the registered reactions that have the subscriber equal to one of those supplied. |
(package private) void |
installRemUponListeners(UponProbeDescriptor[] upds)
|
(package private) RegisteredReaction[] |
installUpons(Reaction[] reactions,
java.lang.String name,
AgentID a)
|
(package private) boolean |
isRegistered(RegisteredReaction upon)
|
(package private) long |
newSeqNum()
Returns a new sequence number. |
(package private) void |
printNonInstallableUpon()
|
(package private) void |
printPendingUpon()
|
(package private) void |
putLocalizedReactions(RegisteredReaction r)
|
(package private) void |
putLocalizedReactions(RegisteredReaction[] rr)
|
(package private) void |
putUpons(RegisteredReaction[] rr,
boolean installed)
assumes that the RegisteredReaction[] being sent to it contains listeners which are all PendingUponListeners because they are put directly into the pendingUpon or non-installable structure after the upons is set. |
(package private) boolean |
removeUpons(RegisteredReaction[] reactions)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final short LOCATIONS
private static final short SUBSCRIBERS
private static long pendingUponSeqNum
java.util.Hashtable pendingUpon
java.util.Hashtable nonInstallableUpon
Reactor reactor
LimeTSMgr ltsm
public static final java.lang.String VERSION
public static final short WRITE
public static final short OUTG
public static final short REM_OUTG_ACK
public static final short TAKE
public static final short WAIT_TO_TAKE
public static final short ING
public static final short READ
public static final short WAIT_TO_READ
public static final short RDG
public static final short REACTS_TO
public static final short UPON
public static final short REMOVE_REACTS_TO
public static final short REMOVE_UPON
public static final short INST_REACTS_TO
public static final short INST_UPON_LISTENER
public static final short INST_REM_UPON_LISTENER
public static final short REMOVE_REM_UPON_LISTENER
public static final short REM_SYS_TAKE
public static final short REM_SYS_READ
public static final short REM_ING
public static final short REM_RDG
public static final short SYS_TAKE
public static final short SYS_READ
public static final short REM_OUTG
public static final short UPON_EVENT
public static final short SYS_REPLY
public static final short LOCAL_SYS_TAKE
public static final short SET_SHARED
public static final short SET_HOST
public static final short DECLARE_LEADER
public static final short ENGAGE_AGENT
public static final short ENGAGE_HOST
public static final short DISENGAGE_AGENT
public static final short DISENGAGE_HOST
public static final short GO
public static final short INITIATOR_REQ
public static final short SETUP
public static final short READY
public static final short START
public static final short DATA
public static final short SETUP_SPECIAL
public static final short READY_SPECIAL
public static final short REQUEST_TRANSACTION
public static final short TRANSACTION_GRANTED
public static final short HOST_BYE
public static final short HOST_HELLO
public static final short AGENT_BYE
public static final short AGENT_HELLO
public static final short HOST_LOCALHOST
public static final short HOST_REMOTE
public static final short HOST_NOTINSYS
public static final short HOST_UNSPECIFIED
public static final short AGENT_LOCALHOST
public static final short AGENT_REMOTE
public static final short AGENT_NOTINSYS
public static final short AGENT_UNSPECIFIED
public static final int TYPE_TAG
public static final int HOST_TUPLE_HOST_TAG
public static final int HOST_ADDR_TAG
public static final int AGENT_ID_TAG
public static final int TS_ID_TAG
public static final java.lang.String HOST
public static final java.lang.String AGENT
public static final java.lang.String TS
public static final java.lang.String HOST_GONE
public static final java.lang.String AGENT_GONE
public static final java.lang.String TS_GONE
public static final int MAX_ROUNDS
Constructor Detail |
UponMgr(Reactor reactor, LimeTSMgr ltsm)
Method Detail |
long newSeqNum()
boolean isRegistered(RegisteredReaction upon)
RegisteredReaction[] getAllUpons()
RegisteredReaction[] getUpons(boolean installed)
installed
- true if installed upons are to be returned. false if
noninstallable upons are to be returned.
void putUpons(RegisteredReaction[] rr, boolean installed)
rr
- a value of type 'RegisteredReaction[]' where the listeners are
ALL PendingUponListenersinstalled
- determines whether the reactions are enabled (true) or
not (false) where enabled means they belong in the pendingUpon structure
and not enabled mesns they belong in nonInstallableUpon.RegisteredReaction[] installUpons(Reaction[] reactions, java.lang.String name, AgentID a)
void putLocalizedReactions(RegisteredReaction r)
void putLocalizedReactions(RegisteredReaction[] rr)
boolean removeUpons(RegisteredReaction[] reactions)
RegisteredReaction[][] getUponsWithLocation(Location[] locations, boolean pending)
locations
- the set of locations.pending
- true if we are looking into the pendingUpon, false if we
are looking into the nonInstalledUpon.
RegisteredReaction[][] getUponsWithSubscriber(AgentID[] subscribers, boolean pending)
subscribers
- the set of subscribers.pending
- true if we are looking into the pendingUpon, false if we
are looking into the nonInstalledUpon.
RegisteredReaction[][] getUpons(java.lang.Object[] o, boolean pending, short type)
void installRemUponListeners(UponProbeDescriptor[] upds) throws lights.interfaces.TupleSpaceException
lights.interfaces.TupleSpaceException
RegisteredReaction findRemoteRegisteredReaction(long seqNum, AgentID subscriber)
RegisteredReaction[] findRemRegReactBySubscriber(AgentID[] agents)
void printPendingUpon()
void printNonInstallableUpon()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |