org.opengts.db
Class DCServerConfig.Command
java.lang.Object
org.opengts.db.DCServerConfig.Command
- Enclosing class:
- DCServerConfig
public static class DCServerConfig.Command
- extends java.lang.Object
Constructor Summary |
DCServerConfig.Command(java.lang.String dcsName,
JSON._Object obj)
|
DCServerConfig.Command(java.lang.String dcsName,
java.lang.String cmdName,
java.lang.String desc,
boolean enable,
java.lang.String[] types,
java.lang.String aclName,
AclEntry.AccessLevel aclDft,
java.lang.String cmdStr,
boolean hasArgs,
java.util.Collection<DCServerConfig.CommandArg> cmdArgs,
java.lang.String cmdProtoH,
long maxRteAge,
boolean allowQueue,
boolean expectAck,
int expAckCode,
long stateMask,
boolean stateVal,
int cmdStCode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DCServerConfig.Command
public DCServerConfig.Command(java.lang.String dcsName,
JSON._Object obj)
throws JSON.JSONParsingException
- Throws:
JSON.JSONParsingException
DCServerConfig.Command
public DCServerConfig.Command(java.lang.String dcsName,
java.lang.String cmdName,
java.lang.String desc,
boolean enable,
java.lang.String[] types,
java.lang.String aclName,
AclEntry.AccessLevel aclDft,
java.lang.String cmdStr,
boolean hasArgs,
java.util.Collection<DCServerConfig.CommandArg> cmdArgs,
java.lang.String cmdProtoH,
long maxRteAge,
boolean allowQueue,
boolean expectAck,
int expAckCode,
long stateMask,
boolean stateVal,
int cmdStCode)
getServerName
public java.lang.String getServerName()
getName
public java.lang.String getName()
getDescription
public java.lang.String getDescription()
isEnabled
public boolean isEnabled(BasicPrivateLabel privLabel)
getTypes
public java.lang.String[] getTypes()
isType
public boolean isType(java.lang.String type)
getAclName
public java.lang.String getAclName()
getAclAccessLevelDefault
public AclEntry.AccessLevel getAclAccessLevelDefault()
getCommandString
public java.lang.String getCommandString()
getCommandString
public java.lang.String getCommandString(Device device,
java.lang.String[] cmdArgs)
hasCommandArgs
public boolean hasCommandArgs()
getArgCount
public int getArgCount()
getCommandArg
public DCServerConfig.CommandArg getCommandArg(int argNdx)
getCommandProtocol
public DCServerConfig.CommandProtocol getCommandProtocol()
getCommandProtocol
public DCServerConfig.CommandProtocol getCommandProtocol(DCServerConfig.CommandProtocol dftProto)
isCommandProtocolSMS
public boolean isCommandProtocolSMS()
getCommandProtocolHandler
public java.lang.String getCommandProtocolHandler()
hasMaximumRouteAge
public boolean hasMaximumRouteAge()
getMaximumRouteAge
public long getMaximumRouteAge()
queueIfUndelivered
public boolean queueIfUndelivered()
getExpectAck
public boolean getExpectAck()
getExpectAckCode
public int getExpectAckCode()
hasStateBitMask
public boolean hasStateBitMask()
getStateBitMask
public long getStateBitMask()
getStateBitValue
public boolean getStateBitValue()
hasAuditStatusCode
public boolean hasAuditStatusCode()
getAuditStatusCode
public int getAuditStatusCode()
setDeviceCommandAttributes
public boolean setDeviceCommandAttributes(DCServerFactory.ResultCode result,
Device device,
java.lang.String cmdStr,
boolean update)
toJsonObject
public JSON._Object toJsonObject()