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
|
abstract java.lang.String |
getBashDirectory()
Gets the Git Bash install directory
|
abstract Host |
getHost()
Gets the host this creator belongs to
|
abstract SubLogger |
getLogger()
Gets the Logger for the creator
|
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
|
abstract boolean |
isBusy()
Gets the status of SubCreator
|
abstract void |
terminate()
Terminate SubCreator
|
abstract void |
waitFor()
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 waitFor() throws java.lang.InterruptedException
java.lang.InterruptedException
public abstract Host getHost()
public abstract java.lang.String getBashDirectory()
public abstract SubLogger getLogger()
public abstract boolean isBusy()
public abstract java.util.Map<java.lang.String,SubCreator.ServerTemplate> getTemplates()
public abstract SubCreator.ServerTemplate getTemplate(java.lang.String name)
name
- Template Name