com.cisco.oss.foundation.monitoring.serverconnection
Class ServerConnectionImp

java.lang.Object
  extended by com.cisco.oss.foundation.monitoring.serverconnection.ServerConnectionImp
All Implemented Interfaces:
ServerConnection

public class ServerConnectionImp
extends Object
implements ServerConnection


Constructor Summary
ServerConnectionImp(long destinationPort, String hostName, String interfaceName, String serverName, String apiName)
           
 
Method Summary
 boolean equals(Object o)
           
 long getDestinationPort()
          Port connected to.
 long getFailedRequestCount()
          Total number of failed requests on this interface since the component has started.
 String getHostName()
          Host Name for connection.
 String getInterfaceName()
          Interface Name as defined in the component.
 String getLastFailedRequestDescription()
          Description of last failure on this interface for consumption by an operator.
 Date getLastFailedRequestTime()
          Date Time of last failure on this interface.
 Date getLastSuccessfulRequestTime()
           
 Date getLastTransactionEndTime()
           
 long getLastTransactionProcessingTime()
           
 Date getLastTransactionStartTime()
           
 String getMethodName()
           
 long getOpenSince()
           
 String getServerName()
          Name of the component connected to.
 long getTotalRequestCount()
          Total number of requests on this interface since the component has started.
 TransactionOpen getTransactionOpen()
           
 ConnectionStatus getTransactionStatus()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConnectionImp

public ServerConnectionImp(long destinationPort,
                           String hostName,
                           String interfaceName,
                           String serverName,
                           String apiName)
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getDestinationPort

public long getDestinationPort()
Description copied from interface: ServerConnection
Port connected to.

Specified by:
getDestinationPort in interface ServerConnection

getFailedRequestCount

public long getFailedRequestCount()
Description copied from interface: ServerConnection
Total number of failed requests on this interface since the component has started.

Specified by:
getFailedRequestCount in interface ServerConnection

getHostName

public String getHostName()
Description copied from interface: ServerConnection
Host Name for connection.

Specified by:
getHostName in interface ServerConnection

getInterfaceName

public String getInterfaceName()
Description copied from interface: ServerConnection
Interface Name as defined in the component.

Specified by:
getInterfaceName in interface ServerConnection

getLastFailedRequestDescription

public String getLastFailedRequestDescription()
Description copied from interface: ServerConnection
Description of last failure on this interface for consumption by an operator.

Specified by:
getLastFailedRequestDescription in interface ServerConnection

getLastFailedRequestTime

public Date getLastFailedRequestTime()
Description copied from interface: ServerConnection
Date Time of last failure on this interface.

Specified by:
getLastFailedRequestTime in interface ServerConnection

getServerName

public String getServerName()
Description copied from interface: ServerConnection
Name of the component connected to.

Specified by:
getServerName in interface ServerConnection

getTotalRequestCount

public long getTotalRequestCount()
Description copied from interface: ServerConnection
Total number of requests on this interface since the component has started.

Specified by:
getTotalRequestCount in interface ServerConnection

getMethodName

public String getMethodName()
Specified by:
getMethodName in interface ServerConnection

getLastSuccessfulRequestTime

public Date getLastSuccessfulRequestTime()
Specified by:
getLastSuccessfulRequestTime in interface ServerConnection

getLastTransactionStartTime

public Date getLastTransactionStartTime()
Specified by:
getLastTransactionStartTime in interface ServerConnection

getLastTransactionEndTime

public Date getLastTransactionEndTime()
Specified by:
getLastTransactionEndTime in interface ServerConnection

getLastTransactionProcessingTime

public long getLastTransactionProcessingTime()
Specified by:
getLastTransactionProcessingTime in interface ServerConnection

getTransactionStatus

public ConnectionStatus getTransactionStatus()
Specified by:
getTransactionStatus in interface ServerConnection

getOpenSince

public long getOpenSince()
Specified by:
getOpenSince in interface ServerConnection

getTransactionOpen

public TransactionOpen getTransactionOpen()


Copyright © 2015 Cisco. All Rights Reserved.