public abstract class SubCreator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SubCreator.ServerTemplate |
static class |
SubCreator.ServerType |
Constructor and Description |
---|
SubCreator() |
Modifier and Type | Method and Description |
---|---|
boolean |
create(java.lang.String name,
SubCreator.ServerTemplate template,
Version version,
int port)
Create a SubServer
|
abstract boolean |
create(java.util.UUID player,
java.lang.String name,
SubCreator.ServerTemplate template,
Version version,
int port)
Create a SubServer
|
static java.util.Map<Host,java.util.List<java.lang.String>> |
getAllReservedNames()
Get a list of all currently reserved Server names across all hosts
|
abstract java.lang.String |
getBashDirectory()
Gets the Git Bash install directory
|
abstract Host |
getHost()
Gets the host this creator belongs to
|
abstract java.util.List<SubLogger> |
getLogger()
Gets all loggers for All SubCreator Instances
|
abstract SubLogger |
getLogger(java.lang.String thread)
Gets the Logger for a SubCreator Instance
|
abstract java.util.List<java.lang.String> |
getReservedNames()
Get a list of currently reserved Server names
|
abstract SubCreator.ServerTemplate |
getTemplate(java.lang.String name)
Gets a SubCreator Template by name
|
abstract java.util.Map<java.lang.String,SubCreator.ServerTemplate> |
getTemplates()
Gets the Templates that can be used in this SubCreator instance
|
static boolean |
isReserved(java.lang.String name)
Check if a name has been reserved
|
abstract void |
reload()
Reload SubCreator
|
abstract void |
terminate()
Terminate All SubCreator Instances on this host
|
abstract void |
terminate(java.lang.String name)
Terminate a SubCreator Instance
|
abstract void |
waitFor()
Wait for All SubCreator Instances to Finish
|
abstract void |
waitFor(java.lang.String name)
Wait for SubCreator to Finish
|
public abstract boolean create(java.util.UUID player, java.lang.String name, SubCreator.ServerTemplate template, Version version, int port)
player
- Player Creatingname
- Server Nametemplate
- Server Templateversion
- Server Versionport
- Server Port Numberpublic boolean create(java.lang.String name, SubCreator.ServerTemplate template, Version version, int port)
name
- Server Nametemplate
- Server Templateversion
- Server Versionport
- Server Port Numberpublic abstract void terminate()
public abstract void terminate(java.lang.String name)
name
- Name of current creating serverpublic abstract void waitFor() throws java.lang.InterruptedException
java.lang.InterruptedException
public abstract void waitFor(java.lang.String name) throws java.lang.InterruptedException
name
- Name of current creating serverjava.lang.InterruptedException
public abstract Host getHost()
public abstract java.lang.String getBashDirectory()
public abstract java.util.List<SubLogger> getLogger()
public abstract SubLogger getLogger(java.lang.String thread)
thread
- Thread IDpublic abstract java.util.List<java.lang.String> getReservedNames()
public static boolean isReserved(java.lang.String name)
name
- Name to checkpublic static java.util.Map<Host,java.util.List<java.lang.String>> getAllReservedNames()
public abstract java.util.Map<java.lang.String,SubCreator.ServerTemplate> getTemplates()
public abstract SubCreator.ServerTemplate getTemplate(java.lang.String name)
name
- Template Namepublic abstract void reload()