Package zombie.network
Class CoopMaster
java.lang.Object
zombie.network.CoopMaster
public class CoopMaster
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CoopMaster.ListenerOptions
static class
CoopMaster.TerminationReason
-
Field Summary
Fields Modifier and Type Field Description static CoopMaster
instance
-
Method Summary
Modifier and Type Method Description void
abortServer()
void
addListener(ICoopServerMessageListener listener)
void
addListener(ICoopServerMessageListener listener, CoopMaster.ListenerOptions options)
java.lang.String
getMessage()
java.lang.String
getPlayerSaveFolder(java.lang.String serverName)
java.lang.String
getServerName()
java.lang.String
getServerSaveFolder(java.lang.String serverName)
void
invokeServer(java.lang.String tag, java.lang.String payload, ICoopServerMessageListener responseHandler)
boolean
isRunning()
void
launchServer(java.lang.String serverName, java.lang.String username, int memory)
void
register(Platform platform, KahluaTable environment)
void
removeListener(ICoopServerMessageListener listener)
void
sendMessage(java.lang.String tag, java.lang.String payload)
void
sendMessage(java.lang.String tag, java.lang.String cookie, java.lang.String payload)
void
softreset(java.lang.String serverName, java.lang.String username, int memory)
CoopMaster.TerminationReason
terminationReason()
void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
-
Method Details
-
launchServer
public void launchServer(java.lang.String serverName, java.lang.String username, int memory) throws java.io.IOException- Throws:
java.io.IOException
-
softreset
public void softreset(java.lang.String serverName, java.lang.String username, int memory) throws java.io.IOException- Throws:
java.io.IOException
-
abortServer
public void abortServer() -
isRunning
public boolean isRunning() -
terminationReason
-
sendMessage
public void sendMessage(java.lang.String tag, java.lang.String cookie, java.lang.String payload) -
sendMessage
public void sendMessage(java.lang.String tag, java.lang.String payload) -
invokeServer
public void invokeServer(java.lang.String tag, java.lang.String payload, ICoopServerMessageListener responseHandler) -
getMessage
public java.lang.String getMessage() -
update
public void update() -
register
-
addListener
-
addListener
-
removeListener
-
getServerName
public java.lang.String getServerName() -
getServerSaveFolder
public java.lang.String getServerSaveFolder(java.lang.String serverName) -
getPlayerSaveFolder
public java.lang.String getPlayerSaveFolder(java.lang.String serverName)
-