Package aQute.remote.agent
Class AgentDispatcher
java.lang.Object
aQute.remote.agent.AgentDispatcher
This class collaborates with the Envoy part of this design. After the envoy
has installed the -runpath it will reflectively call this class to create a
framework and run an
AgentServer.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose()Closestatic AgentDispatcher.DescriptorCreate a new framework.static voidtoAgent(AgentDispatcher.Descriptor descriptor, DataInputStream in, DataOutputStream out) Create a new agent on an existing framework.
-
Constructor Details
-
AgentDispatcher
public AgentDispatcher()
-
-
Method Details
-
createFramework
public static AgentDispatcher.Descriptor createFramework(String name, Map<String, Object> configuration, File storage, File shacache) throws ExceptionCreate a new framework. This is reflectively called from the Envoy- Throws:
Exception
-
toAgent
public static void toAgent(AgentDispatcher.Descriptor descriptor, DataInputStream in, DataOutputStream out) Create a new agent on an existing framework. -
close
Close- Throws:
IOException
-