Supervisor - The supervisor typeAgent - The agent typepublic class AgentSupervisor<Supervisor,Agent>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
exitCode |
| Constructor and Description |
|---|
AgentSupervisor() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addFile(java.io.File file) |
void |
close() |
protected void |
connect(java.lang.Class<Agent> agent,
Supervisor supervisor,
java.lang.String host,
int port) |
protected void |
connect(java.lang.Class<Agent> agent,
Supervisor supervisor,
java.lang.String host,
int port,
int timeout) |
protected void |
exit(int exitCode) |
Agent |
getAgent() |
byte[] |
getFile(java.lang.String sha) |
boolean |
isOpen() |
int |
join() |
void |
setAgent(Link<Supervisor,Agent> link) |
protected void connect(java.lang.Class<Agent> agent, Supervisor supervisor, java.lang.String host, int port) throws java.lang.Exception
java.lang.Exceptionprotected void connect(java.lang.Class<Agent> agent, Supervisor supervisor, java.lang.String host, int port, int timeout) throws java.lang.Exception
java.lang.Exceptionpublic byte[] getFile(java.lang.String sha)
throws java.lang.Exception
java.lang.Exceptionpublic void setAgent(Link<Supervisor,Agent> link)
public void close()
throws java.io.IOException
java.io.IOExceptionpublic int join()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected void exit(int exitCode)
public Agent getAgent()
public java.lang.String addFile(java.io.File file)
throws java.security.NoSuchAlgorithmException,
java.lang.Exception
java.security.NoSuchAlgorithmExceptionjava.lang.Exceptionpublic boolean isOpen()
Copyright (c) aQute SARL (2000, 2018) and others. All Rights Reserved.