Class DriverCommandSource
java.lang.Object
eu.cloudnetservice.node.impl.command.source.DriverCommandSource
- All Implemented Interfaces:
eu.cloudnetservice.driver.base.Named, eu.cloudnetservice.node.command.source.CommandSource
public class DriverCommandSource
extends Object
implements eu.cloudnetservice.node.command.source.CommandSource
The driver command source represents a message receiving object for the driver api. All messages regarding command
execution and command parsing are sent to the command source, which captures all of them to send them over the
network, see
ClusterNodeProvider.sendCommandLine(String)- Since:
- 4.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckPermission(@NonNull String permission) booleaninthashCode()messages()name()voidsendMessage(@NonNull String message) voidsendMessage(@NonNull String... messages) voidsendMessage(@NonNull Collection<String> messages) toString()
-
Field Details
-
messages
-
-
Constructor Details
-
DriverCommandSource
public DriverCommandSource()
-
-
Method Details
-
name
-
sendMessage
-
sendMessage
-
sendMessage
- Specified by:
sendMessagein interfaceeu.cloudnetservice.node.command.source.CommandSource
-
checkPermission
- Specified by:
checkPermissionin interfaceeu.cloudnetservice.node.command.source.CommandSource- Parameters:
permission- the permission to check for- Returns:
- always true as the driver is allowed to execute every command
- Throws:
NullPointerException- if permission is null.
-
messages
- Returns:
- all captured messages for the driver
-
toString
-
equals
-
hashCode
-