public abstract class Client extends RemoteClient implements ml.karmaconfigs.api.common.karma.KarmaSource
| Constructor and Description |
|---|
Client() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Close the connection
|
abstract ml.karmaconfigs.api.common.timer.scheduler.LateScheduler<Boolean> |
connect()
Try to connect to the server
|
abstract ml.karmaconfigs.api.common.timer.scheduler.LateScheduler<Boolean> |
connect(String accessKey)
Try to connect to the server
|
abstract Client |
debug(boolean status)
Set the client debug status
|
abstract String |
getMAC()
Get the client MAC address
|
abstract String |
getName()
Get the client name
|
abstract RemoteServer |
getServer()
Get the connected remote server
|
abstract WorkLevel |
getWorkLevel()
Get the client work level
|
abstract boolean |
isConnected()
Get if the client is completely connected
to the server
|
abstract boolean |
isConnecting()
Get if the client is trying to connect to the
server
|
abstract void |
rename(String name)
Rename the client on the server interface
|
abstract void |
send(byte[] data)
Send data to the server
|
getHost, getPort, sendMessage, toStringpublic abstract Client debug(boolean status)
status - the client debug statuspublic abstract ml.karmaconfigs.api.common.timer.scheduler.LateScheduler<Boolean> connect()
public abstract ml.karmaconfigs.api.common.timer.scheduler.LateScheduler<Boolean> connect(String accessKey)
accessKey - the server access keypublic abstract String getName()
getName in class RemoteClientpublic abstract String getMAC()
getMAC in class RemoteClientpublic abstract RemoteServer getServer()
public abstract WorkLevel getWorkLevel()
public abstract boolean isConnecting()
public abstract boolean isConnected()
public abstract void rename(String name)
name - the client namepublic abstract void send(byte[] data)
data - the data to sendpublic abstract void close()
Copyright © 2022. All rights reserved.