|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface defines the externally visible portion of the ActorManager class. In particular, actor manager implementations are expected to implement this interface in order to provide access to external services (off-node or otherwise). Typically, an instance of this interface is used to open one or more RequestHandler sessions, which provide the means for interacting with an actor manager.
ActorManager,
RequestHandler| Method Summary | |
ActorName |
managerCreate(ActorCreateRequest request,
ActorName newName)
This method is called to request that a new local actor be created and managed by the target actor. |
void |
managerDeliver(ActorMsgRequest del)
This method is called to indicate that a new message should be delivered to a local actor. |
ActorManagerName |
managerGetName()
Returns the name of this actor manager. |
java.lang.Object |
managerInvokeService(ServiceName serviceName,
java.lang.String meth,
java.lang.Object[] serviceArgs)
Called by other foundry modules (or remote managers) to invoke a local service. |
void |
managerMigrate(ActorMigrationStructure mig)
This method is called to pass an actor migration request. |
void |
managerRegisterService(ServiceName sName,
Service S)
Called externally to register a new node service. |
void |
managerRemoveService(ServiceName sName)
Called externally to remove a node service. |
| Methods inherited from interface osl.handler.RequestClient |
handlerException |
| Method Detail |
public ActorName managerCreate(ActorCreateRequest request,
ActorName newName)
throws RemoteRequestRefusedException,
RemoteCodeException,
IllegalTargetException,
java.lang.IllegalAccessException
request - An ActorCreateRequest structure
describing the new actor to be created. The ID and site fields
are ignored and the new actor is always created locally.newName - An optional argument indicating the desired
ActorName of the new actor. If null then a new actor
name is generated, otherwise an attempt is made to use the
provided name.
public void managerDeliver(ActorMsgRequest del)
throws IllegalTargetException,
RemoteRequestRefusedException,
RemoteCodeException
del - The ActorMsg structure to deliver to a
local actor.
public void managerMigrate(ActorMigrationStructure mig)
throws RemoteRequestRefusedException,
RemoteCodeException
mig - The ActorMigrationStructure giving the
properties of the actor to migrate.
public void managerRegisterService(ServiceName sName,
Service S)
sName - The ServiceName of the new service.S - A reference to the new Service.
public void managerRemoveService(ServiceName sName)
throws ServiceNotFoundException
sName - The name of the service to remove.
public java.lang.Object managerInvokeService(ServiceName serviceName,
java.lang.String meth,
java.lang.Object[] serviceArgs)
throws ServiceNotFoundException,
ServiceException
serviceName - The ServiceName of the service
to invoke.serviceArgs - An Object which represents the
sole argument to pass to the invocation function of the service.public ActorManagerName managerGetName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||