AdventNet WiFi Mediation API, v1.0

com.adventnet.wifi.mediation
Class CmdResult

java.lang.Object
  extended bycom.adventnet.wifi.mediation.CmdResult

public class CmdResult
extends java.lang.Object

Class which has details about each command executed as part of the configuration operation. Each and every configuration operation in turn will be translated into many device specific commands by the mediation server and is executed on the device. A separate instance of this class is created for each command that is executed and this instance will hold all the details of that executed command like the command string, the status of execution, the output of the command etc.


Constructor Summary
CmdResult(java.lang.Object obj)
          Creates a new instance of CmdResult.
 
Method Summary
 java.lang.String getCommand()
          Fetches the command represented by this class.
 java.lang.String getCommandOutput()
          Fetches the output of the command.
 int getCounter()
          Fetches the number of times this particular command is executed.
 java.lang.String getId()
          Fetches the ID of this command.
 int getRootCauseID()
          Fetches the root cause explaining the problem during execution.
 int getStatus()
          Returns the status of the command.
 boolean isConfigured()
          Says whether the Command is successfully configured or not.
 java.lang.String toString()
          Returns the string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmdResult

public CmdResult(java.lang.Object obj)
Creates a new instance of CmdResult.

Parameters:
obj - Holds details on the executed commands.
Method Detail

getCommand

public java.lang.String getCommand()
Fetches the command represented by this class.

Returns:
the command.

getId

public java.lang.String getId()
Fetches the ID of this command.


getCommandOutput

public java.lang.String getCommandOutput()
Fetches the output of the command.

Returns:
the command output.

getStatus

public int getStatus()
Returns the status of the command.

See Also:
ConfigResult.SUCCESS, ConfigResult.FAILURE, ConfigResult.NOT_EXECUTED

isConfigured

public boolean isConfigured()
Says whether the Command is successfully configured or not.

Returns:
true if successfully configured, otherwise false.

getCounter

public int getCounter()
Fetches the number of times this particular command is executed.

Returns:
the counter.

getRootCauseID

public int getRootCauseID()
Fetches the root cause explaining the problem during execution.

Returns:
the problem explanation.

toString

public java.lang.String toString()
Returns the string representation of this object.

Returns:
this object as string.

AdventNet WiFi Mediation API, v1.0

Copyright © 2005 AdventNet Inc. All Rights Reserved.