|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContainer
Field Summary | |
---|---|
static int |
INFINITE_SIZE
Constant representing infinite Container size. |
Method Summary | |
---|---|
java.lang.String |
addAspects(java.util.List<IPoint> p,
IAspect aspect,
java.util.Properties aspectProperties)
Adds an Aspect to the Container. |
void |
addCoordinator(java.lang.Class<? extends Selector> s,
ICoordinator c)
Adds a coordinator to the engine. |
void |
commit(Transaction txn)
Commits an existing Transaction for this container. |
int |
currentSize()
Returns the current size of the container. |
void |
destroy()
Called if the container is destroyed. |
java.lang.Object |
execute(OperationTask task)
Executes the task. |
java.util.List<ICoordinator> |
getCoordinators()
Get a List of all Coordinators supported by this Container. |
ContainerRef |
getCref()
Get the ContainerRef of the container. |
void |
removeAspect(IPoint p,
java.net.URI uri,
java.util.Properties aspectContext)
Removes an Aspect from the Container. |
void |
rollback(Transaction txn)
Does a rollback on this Transaction . |
void |
setCref(ContainerRef cref)
Set the ContainerRef of the container. |
void |
updateTimeouts()
Updates the timeout information of each blocking event. |
Field Detail |
---|
static final int INFINITE_SIZE
Method Detail |
---|
java.lang.Object execute(OperationTask task) throws ContainerFullException, CountNotMetException, TransactionLockException, AspectRescheduleException, AspectNotOkException
task
- the task to execute.
ContainerFullException
- thrown if the there is no place left for the new entry.
CountNotMetException
- thrown if there are not enough entries to read.
TransactionLockException
- thrown if the container is used by annother tx.
AspectRescheduleException
AspectNotOkException
void commit(Transaction txn) throws TransactionLockException, InvalidTransactionException, AspectRescheduleException, AspectNotOkException
Transaction
for this container.
txn
- The Transaction
that should be commited.
TransactionLockException
- thrown if the container is locked by another transaction.
InvalidTransactionException
- thrown if tx is not valid.
AspectRescheduleException
- thrown if an aspect answered with
AspectResult#RESCHEDULE
.
AspectNotOkException
- thrown if an aspect answered with AspectResult#NOTOK
.void rollback(Transaction txn) throws InvalidTransactionException, TransactionLockException, AspectRescheduleException, AspectNotOkException
Transaction
.
txn
- The Transaction
that should be rollbacked.
TransactionLockException
- thrown if the container is locked by another transaction.
InvalidTransactionException
- thrown if tx is not valid.
AspectRescheduleException
- thrown if an aspect answered with
AspectResult#RESCHEDULE
.
AspectNotOkException
- thrown if an aspect answered with AspectResult#NOTOK
.ContainerRef getCref()
ContainerRef
of the container.
ContainerRef
void setCref(ContainerRef cref)
ContainerRef
of the container.
cref
- the new ContainerRef
void updateTimeouts()
java.lang.String addAspects(java.util.List<IPoint> p, IAspect aspect, java.util.Properties aspectProperties)
p
- the IPoint were the Aspect should be called.aspect
- the Aspect that should be called.aspectProperties
- possible properties that the aspect retreives, when it is
called.void removeAspect(IPoint p, java.net.URI uri, java.util.Properties aspectContext)
p
- the IPoint were the Aspect should be removed.uri
- the URI of the aspect which shall be removed.aspectContext
- possible properties that the aspect retrieves, when it is
called.void addCoordinator(java.lang.Class<? extends Selector> s, ICoordinator c)
s
- the class of the selector to register the coordinator with.c
- the new coordinator.java.util.List<ICoordinator> getCoordinators()
void destroy()
int currentSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |