Package com.tnsai.protocols
Interface ProtocolManagerHandle
public interface ProtocolManagerHandle
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFactory for creating ProtocolManagerHandle instances. -
Method Summary
Modifier and TypeMethodDescriptiongetAgent()Gets the agent managed by this protocol manager.Gets all configured paradigm names.booleanhasParadigm(String paradigm) Checks if a paradigm is configured.booleanChecks if the protocol manager is started.voidstart()Starts all configured protocol handlers.voidstop()Stops all protocol handlers.
-
Method Details
-
start
Starts all configured protocol handlers.- Throws:
TnsAIException- if a handler fails to start
-
stop
void stop()Stops all protocol handlers. -
isStarted
boolean isStarted()Checks if the protocol manager is started.- Returns:
- true if started
-
hasParadigm
Checks if a paradigm is configured.- Parameters:
paradigm- paradigm name (DIRECT, BROADCAST, PUBSUB, REQUEST_REPLY, DEBATE)- Returns:
- true if configured
-
getParadigms
Gets all configured paradigm names.- Returns:
- set of paradigm names
-
getAgent
Agent getAgent()Gets the agent managed by this protocol manager.- Returns:
- agent instance
-