org.almendra.janet.cas.agents
Interface IAgentProxy

All Known Implementing Classes:
AbstractAgentProxy, AgentProxy, MultiAgentProxy

public interface IAgentProxy

Author:
Oliver

Method Summary
 void accept(CommandEnvelope env)
           
 void accept(ICommand command)
           
 void accept(ICommand command, Acknowledge ack)
           
 void accept(ICommand command, FutureResult futureResult)
          Send commmand to an agent expecting a result to be sent back.
 void accept(ICommand command, IHistorizableCallbackHandler handler)
           
 void accept(ICommand command, int kind)
           
 void accept(IWorkLoadBalancingCommand command)
           
 void accept(IWorkLoadBalancingCommand command, Acknowledge ack)
           
 void accept(IWorkLoadBalancingCommand command, FutureResult futureResult)
          Send commmand to an agent expecting a result to be sent back.
 void accept(IWorkLoadBalancingCommand command, IHistorizableCallbackHandler handler)
           
 void accept(IWorkLoadSharingCommand command)
           
 void accept(IWorkLoadSharingCommand command, Acknowledge ack)
           
 void accept(IWorkLoadSharingCommand command, FutureResult futureResult)
          Send commmand to an agent expecting a result to be sent back.
 void accept(IWorkLoadSharingCommand command, IHistorizableCallbackHandler handler)
           
 int size()
           
 

Method Detail

accept

void accept(ICommand command)
            throws java.rmi.RemoteException,
                   InvalidCommandException
Parameters:
command -
Throws:
java.rmi.RemoteException
InvalidCommandException

accept

void accept(ICommand command,
            int kind)
            throws java.rmi.RemoteException,
                   InvalidCommandException
Parameters:
command -
Throws:
java.rmi.RemoteException
InvalidCommandException

accept

void accept(IWorkLoadSharingCommand command)
            throws java.rmi.RemoteException,
                   InvalidCommandException
Parameters:
command -
Throws:
java.rmi.RemoteException
InvalidCommandException

accept

void accept(IWorkLoadBalancingCommand command)
            throws java.rmi.RemoteException,
                   InvalidCommandException
Parameters:
command -
Throws:
java.rmi.RemoteException
InvalidCommandException

accept

void accept(ICommand command,
            Acknowledge ack)
            throws java.rmi.RemoteException,
                   InvalidCommandException
Parameters:
command -
ackHandler -
Throws:
java.rmi.RemoteException
InvalidCommandException

accept

void accept(ICommand command,
            FutureResult futureResult)
            throws java.lang.IllegalArgumentException,
                   java.rmi.RemoteException,
                   InvalidCommandException
Send commmand to an agent expecting a result to be sent back.

Parameters:
command - to be sent to another agent
replyToAgentPath - path to agent that should receive result
Throws:
java.lang.IllegalArgumentException
java.rmi.RemoteException
InvalidCommandException

accept

void accept(ICommand command,
            IHistorizableCallbackHandler handler)
            throws java.rmi.RemoteException,
                   InvalidCommandException
Parameters:
command -
handler -
Throws:
java.rmi.RemoteException
InvalidCommandException

accept

void accept(IWorkLoadSharingCommand command,
            Acknowledge ack)
            throws java.rmi.RemoteException,
                   InvalidCommandException
Parameters:
command -
ackHandler -
Throws:
java.rmi.RemoteException
InvalidCommandException

accept

void accept(IWorkLoadSharingCommand command,
            FutureResult futureResult)
            throws java.lang.IllegalArgumentException,
                   java.rmi.RemoteException,
                   InvalidCommandException
Send commmand to an agent expecting a result to be sent back.

Parameters:
command - to be sent to another agent
replyToAgentPath - path to agent that should receive result
Throws:
java.lang.IllegalArgumentException
java.rmi.RemoteException
InvalidCommandException

accept

void accept(IWorkLoadBalancingCommand command,
            IHistorizableCallbackHandler handler)
            throws java.rmi.RemoteException,
                   InvalidCommandException
Parameters:
command -
handler -
Throws:
java.rmi.RemoteException
InvalidCommandException

accept

void accept(IWorkLoadBalancingCommand command,
            Acknowledge ack)
            throws java.rmi.RemoteException,
                   InvalidCommandException
Parameters:
command -
ackHandler -
Throws:
java.rmi.RemoteException
InvalidCommandException

accept

void accept(IWorkLoadBalancingCommand command,
            FutureResult futureResult)
            throws java.lang.IllegalArgumentException,
                   java.rmi.RemoteException,
                   InvalidCommandException
Send commmand to an agent expecting a result to be sent back.

Parameters:
command - to be sent to another agent
replyToAgentPath - path to agent that should receive result
Throws:
java.lang.IllegalArgumentException
java.rmi.RemoteException
InvalidCommandException

accept

void accept(IWorkLoadSharingCommand command,
            IHistorizableCallbackHandler handler)
            throws java.rmi.RemoteException,
                   InvalidCommandException
Parameters:
command -
handler -
Throws:
java.rmi.RemoteException
InvalidCommandException

accept

void accept(CommandEnvelope env)
            throws java.rmi.RemoteException,
                   InvalidCommandException
Parameters:
command -
Throws:
java.rmi.RemoteException
InvalidCommandException

size

int size()
Returns: