public class InternalSubCreator extends SubCreator
SubCreator.ServerType
Constructor and Description |
---|
InternalSubCreator(InternalHost host,
java.lang.String gitBash)
Creates an Internal SubCreator
|
Modifier and Type | Method and Description |
---|---|
boolean |
create(java.util.UUID player,
java.lang.String name,
SubCreator.ServerType type,
Version version,
int memory,
int port)
Create a SubServer
|
java.lang.String |
getGitBashDirectory()
Gets the Git Bash install directory
|
Host |
getHost()
Gets the host this creator belongs to
|
SubLogger |
getLogger()
Gets the Logger for the creator
|
boolean |
isBusy()
Gets the status of SubCreator
|
void |
terminate()
Terminate SubCreator
|
void |
waitFor()
Wait for SubCreator to Finish
|
create
public InternalSubCreator(InternalHost host, java.lang.String gitBash)
host
- HostgitBash
- Git Bashpublic boolean create(java.util.UUID player, java.lang.String name, SubCreator.ServerType type, Version version, int memory, int port)
SubCreator
create
in class SubCreator
player
- Player Creatingname
- Server Nametype
- Server Typeversion
- Server Versionmemory
- Server Memory Amount (in MB)port
- Server Port Numberpublic void terminate()
SubCreator
terminate
in class SubCreator
public void waitFor() throws java.lang.InterruptedException
SubCreator
waitFor
in class SubCreator
java.lang.InterruptedException
public Host getHost()
SubCreator
getHost
in class SubCreator
public java.lang.String getGitBashDirectory()
SubCreator
getGitBashDirectory
in class SubCreator
public SubLogger getLogger()
SubCreator
getLogger
in class SubCreator
public boolean isBusy()
SubCreator
isBusy
in class SubCreator