public class ZMQServer extends ZMQSocketWrapper
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<String,Object> |
externalObjects_ |
static String |
VERSION |
context_, port_, portSocketMap_, socket_, STARTING_PORT_NUMBER, type_| Constructor and Description |
|---|
ZMQServer()
This constructor used if making a new server on a different port and all the classloader info already parsed
|
ZMQServer(Collection<ClassLoader> cls,
Function<Class,Object> classMapper,
String[] excludePaths,
Consumer<String> debugLogger) |
ZMQServer(Collection<ClassLoader> cls,
Function<Class,Object> classMapper,
String[] excludePaths,
Consumer<String> debugLogger,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected mmcorej.org.json.JSONObject |
getField(Object obj,
mmcorej.org.json.JSONObject json) |
static ZMQServer |
getMasterServer() |
void |
initialize(int port) |
protected mmcorej.org.json.JSONObject |
parseAndExecuteCommand(mmcorej.org.json.JSONObject request) |
protected void |
setField(Object obj,
mmcorej.org.json.JSONObject json) |
getPort, receiveMessage, sendMessageprotected final ConcurrentHashMap<String,Object> externalObjects_
public static final String VERSION
public ZMQServer()
public ZMQServer(Collection<ClassLoader> cls, Function<Class,Object> classMapper, String[] excludePaths, Consumer<String> debugLogger) throws URISyntaxException, UnsupportedEncodingException
public ZMQServer(Collection<ClassLoader> cls, Function<Class,Object> classMapper, String[] excludePaths, Consumer<String> debugLogger, int port) throws URISyntaxException, UnsupportedEncodingException
public static ZMQServer getMasterServer()
public void initialize(int port)
initialize in class ZMQSocketWrapperpublic void close()
close in class ZMQSocketWrapperprotected mmcorej.org.json.JSONObject getField(Object obj, mmcorej.org.json.JSONObject json) throws mmcorej.org.json.JSONException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException
mmcorej.org.json.JSONExceptionNoSuchFieldExceptionIllegalArgumentExceptionIllegalAccessExceptionprotected void setField(Object obj, mmcorej.org.json.JSONObject json) throws mmcorej.org.json.JSONException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException
mmcorej.org.json.JSONExceptionNoSuchFieldExceptionIllegalArgumentExceptionIllegalAccessExceptionCopyright © 2023. All rights reserved.