springs.context.threads
Class AgentCreator_RMIImpl

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--springs.context.threads.AgentCreator
              |
              +--springs.context.threads.AgentCreator_RMIImpl
All Implemented Interfaces:
java.lang.Runnable

public class AgentCreator_RMIImpl
extends AgentCreator

A Springs agent creator implemented in RMI.

Author:
Sergio Ilarri Artigas

Field Summary
private  springs.context.ContextAddress _contextAddress
           
 
Fields inherited from class springs.context.threads.AgentCreator
_agent, _error, _isMoving
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AgentCreator_RMIImpl(springs.agent.SpringsAgent agent, springs.context.ContextAddress contextAddress, boolean isMoving)
          Constructor.
 
Method Summary
 void createAgentTemplate()
          Creates a Springs agent.
 
Methods inherited from class springs.context.threads.AgentCreator
createAgent, getError, isSuccessful, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_contextAddress

private springs.context.ContextAddress _contextAddress
Constructor Detail

AgentCreator_RMIImpl

public AgentCreator_RMIImpl(springs.agent.SpringsAgent agent,
                            springs.context.ContextAddress contextAddress,
                            boolean isMoving)
Constructor.

Parameters:
agent - the agent.
contextAddress - the address of the context.
isMoving - a boolean indicating if the agent is sent because of a movement from another context.
See Also:
SpringsAgent, ContextAddress
Method Detail

createAgentTemplate

public void createAgentTemplate()
                         throws CreationException,
                                AlreadyExistingAgentException
Creates a Springs agent.

Specified by:
createAgentTemplate in class AgentCreator
Throws:
CreationException - if error.
AlreadyExistingAgentException - if the agent cannot be registered because it already exist at the context.
See Also:
CreationException, AlreadyExistingAgentException