public abstract class Agent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
service |
Constructor and Description |
---|
Agent()
Default constructor - the service must be set separately.
|
Agent(java.lang.String service)
Constructor specifying the service for which te Agent is responsible.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getService()
Get the service for which the Agent is responsible.
|
protected abstract void |
notifyComplete(Manager manager)
This method is invoked by a Manager when a request is
fully completed.
|
protected abstract void |
notifyPartial(Manager manager)
This method is invoked by a Manager when a request is partially complete.
|
protected abstract void |
requestHandler(Envelope envelope)
This method will be invoked by the Dispatcher when a request is received.
|
void |
setService(java.lang.String service)
Set the service for which the Agent is responsible.
|
java.lang.String |
toString() |
public Agent()
public Agent(java.lang.String service)
service
- The service name.public java.lang.String getService()
protected abstract void notifyComplete(Manager manager)
manager
- The invoking manager.protected abstract void notifyPartial(Manager manager)
manager
- The invoking manager.protected abstract void requestHandler(Envelope envelope) throws EnvelopeOverflowException, VendorTransportException
envelope
- Contains the request.EnvelopeOverflowException
VendorTransportException
public void setService(java.lang.String service)
service
- The service name.public java.lang.String toString()
toString
in class java.lang.Object