public abstract class ServerMonitorCommand
extends java.lang.Object
Constructor and Description |
---|
ServerMonitorCommand() |
Modifier and Type | Method and Description |
---|---|
static ServerMonitorCommand |
getCommandObjectFor(java.lang.String commandName,
java.lang.String commandContent)
Factory method for obtaining command objects, given a command name and the corresponding command options in texutal format
|
static ServerMonitorCommand |
getCommandObjectFrom(java.lang.String commandText)
Factory method for obtaining command objects, given a fulltext command such as "ASSERT R,R(...)" or "CMD(...)CMD(...)"
|
abstract java.lang.String |
getCommandParametersText()
Gets the full textual representation of the command's parameters
|
abstract int |
getCorrespondingMessageTypeID()
Gets the MessageTypeID of the corresponding message type to send to the server to get this (type of) command executed
|
abstract java.lang.String |
getFullCommandText()
Gets the full textual representation of the command
|
abstract MessageParams |
getMessageParms()
Gets a messageParams object that can be used by a MessageType implementation to factory a Message object.
|
java.lang.String |
toString() |
public static ServerMonitorCommand getCommandObjectFor(java.lang.String commandName, java.lang.String commandContent) throws NotFoundException, IllegalServerCommandException
commandName
- The name, or alias, of the commandcommandContent
- The command options to be represented in the returned ServerCommand objectNotFoundException
- -IllegalServerCommandException
- -public static ServerMonitorCommand getCommandObjectFrom(java.lang.String commandText) throws NotFoundException, IllegalServerCommandException
commandText
- A complete SIRA_PRISE commandNotFoundException
- -IllegalServerCommandException
- -public abstract java.lang.String getFullCommandText()
public abstract java.lang.String getCommandParametersText()
public abstract int getCorrespondingMessageTypeID()
public final java.lang.String toString()
toString
in class java.lang.Object
public abstract MessageParams getMessageParms()