public abstract class SubCreator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SubCreator.ServerType |
Constructor and Description |
---|
SubCreator() |
Modifier and Type | Method and Description |
---|---|
boolean |
create(java.lang.String name,
SubCreator.ServerType type,
Version version,
int memory,
int port)
Create a SubServer
|
abstract boolean |
create(java.util.UUID player,
java.lang.String name,
SubCreator.ServerType type,
Version version,
int memory,
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 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.ServerType type, Version version, int memory, int port)
player
- Player Creatingname
- Server Nametype
- Server Typeversion
- Server Versionmemory
- Server Memory Amount (in MB)port
- Server Port Numberpublic boolean create(java.lang.String name, SubCreator.ServerType type, Version version, int memory, int port)
name
- Server Nametype
- Server Typeversion
- Server Versionmemory
- Server Memory Amount (in MB)port
- 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()