|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ncl.cs.instantsoap.mapprocessor.MultiplexingMapProcessor
public class MultiplexingMapProcessor
Multiplex over a set of map processors.
Incomming requests are routed through to the underlying processor that can handle that request. The requests taht this processor can handle is the union of those that all of the underlying processors can.
Constructor Summary | |
---|---|
MultiplexingMapProcessor()
|
|
MultiplexingMapProcessor(Set<MapProcessor> processors)
Create a new processor that multiplexes over the supplied processors. |
Method Summary | |
---|---|
void |
deRegisterHandler(MapProcessor processor)
|
MetaData |
describeApplication(String application)
Describe an application. |
Set<MetaData> |
getInputs(String application)
Get the inputs assocaited with an application. |
Set<MetaData> |
getOutputs(String application)
Get the outputs assocaited with an application. |
boolean |
handlesApplication(String application)
Indicates if this processor can handle applications with a particuar name. |
List<String> |
listApplications()
List all of the applications handled, by name. |
Map<String,String> |
process(String application,
Map<String,String> inputs)
Handle a request. |
void |
registerHandler(MapProcessor processor)
|
void |
validate(String application,
Map<String,String> inputs)
Validate the inputs for the application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiplexingMapProcessor(Set<MapProcessor> processors)
processors
- the Set
of MapProcessor
instances that will be used to handle requestspublic MultiplexingMapProcessor()
Method Detail |
---|
public void registerHandler(MapProcessor processor)
public void deRegisterHandler(MapProcessor processor)
public boolean handlesApplication(String application)
MapProcessor
listApplicaionts
.
handlesApplication
in interface MapProcessor
application
- the name of the application to be checked
public List<String> listApplications()
MapProcessor
listApplications
in interface MapProcessor
List
of handled applicationspublic MetaData describeApplication(String application) throws UnknownApplicationException
MapProcessor
describeApplication
in interface MapProcessor
application
- the name of the application
MetaData
with the name matching application
providing the description and semantic annotation for this application
UnknownApplicationException
public Map<String,String> process(String application, Map<String,String> inputs) throws JobExecutionException, UnknownApplicationException
MapProcessor
process
in interface MapProcessor
application
- the name of the applicationinputs
- the input Map
JobExecutionException
UnknownApplicationException
public void validate(String application, Map<String,String> inputs) throws InvalidJobSpecificationException, UnknownApplicationException
MapProcessor
validate
in interface MapProcessor
application
- the name of the applicationinputs
- the Map
of input values
InvalidJobSpecificationException
UnknownApplicationException
public Set<MetaData> getInputs(String application) throws UnknownApplicationException
MapProcessor
getInputs
in interface MapProcessor
application
- the name of the application
Set
of MetaData
instances
UnknownApplicationException
public Set<MetaData> getOutputs(String application) throws UnknownApplicationException
MapProcessor
getOutputs
in interface MapProcessor
application
- the name of the application
Set
of MetaData
instances
UnknownApplicationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |