public class ACCProvider
extends java.lang.Object
Constructor and Description |
---|
ACCProvider(TucsonNodeService n,
TucsonTupleCentreId tid) |
Modifier and Type | Method and Description |
---|---|
boolean |
processContextRequest(ACCDescription profile,
AbstractTucsonProtocol dialog) |
void |
shutdown() |
boolean |
shutdownContext(int ctxId,
TucsonAgentId id) |
public ACCProvider(TucsonNodeService n, TucsonTupleCentreId tid)
n
- the TuCSoN node whose ACC should referencetid
- the identifier of the tuple centre used for internal
configuration purposepublic boolean processContextRequest(ACCDescription profile, AbstractTucsonProtocol dialog) throws TucsonInvalidAgentIdException, TucsonInvalidTupleCentreIdException
profile
- the Object decribing a request for an ACCdialog
- the network protocol used to dialog with the (possibly) given
ACCTucsonInvalidTupleCentreIdException
- if the TupleCentreId, contained into AbstractTucsonProtocol's
message, does not represent a valid TuCSoN identifierTucsonInvalidAgentIdException
- if the ACCDescription's "agent-identity" property does not
represent a valid TuCSoN identifierpublic void shutdown() throws java.lang.InterruptedException
java.lang.InterruptedException
- if this provider is interrupted during terminationpublic boolean shutdownContext(int ctxId, TucsonAgentId id)
ctxId
- the numeric, progressive identifier of the ACC givenid
- the identifier of the agent requiring shutdown