com.cisco.oss.foundation.monitoring.services
Class ServiceImp

java.lang.Object
  extended by com.cisco.oss.foundation.monitoring.services.ServiceImp
All Implemented Interfaces:
Service

public class ServiceImp
extends Object
implements Service


Constructor Summary
ServiceImp(String interfaceName, long port, String protocol, String serviceDescription, String apiName)
           
 
Method Summary
 boolean equals(Object o)
           
 long getFailedRequestCount()
          Total number of failed requests on this interface since the component has started.
 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 getPort()
          Port Number
 String getProtocol()
          Communication protocol e.g.
 String getServiceDescription()
          Description of the service for an Operator.
 long getTotalRequestCount()
          Total number of requests on this interface since the component has started.
 AtomicLong getTotalStatisticsRequestCount()
           
 AtomicLong getTotalStatisticsStartTime()
           
 double getTps()
           
 ConnectionStatus getTransactionStatus()
           
 int getUsedThreads()
           
 int hashCode()
           
 boolean isEquals(ServiceDetails obj)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceImp

public ServiceImp(String interfaceName,
                  long port,
                  String protocol,
                  String serviceDescription,
                  String apiName)
Method Detail

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isEquals

public boolean isEquals(ServiceDetails obj)

getTotalRequestCount

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

Specified by:
getTotalRequestCount in interface Service

getFailedRequestCount

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

Specified by:
getFailedRequestCount in interface Service

getInterfaceName

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

Specified by:
getInterfaceName in interface Service

getLastFailedRequestDescription

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

Specified by:
getLastFailedRequestDescription in interface Service

getLastFailedRequestTime

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

Specified by:
getLastFailedRequestTime in interface Service

getPort

public long getPort()
Description copied from interface: Service
Port Number

Specified by:
getPort in interface Service

getProtocol

public String getProtocol()
Description copied from interface: Service
Communication protocol e.g. RMI, HTTP etc.

Specified by:
getProtocol in interface Service

getServiceDescription

public String getServiceDescription()
Description copied from interface: Service
Description of the service for an Operator.

Specified by:
getServiceDescription in interface Service

getMethodName

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

getLastSuccessfulRequestTime

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

getLastTransactionStartTime

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

getLastTransactionEndTime

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

getLastTransactionProcessingTime

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

getTransactionStatus

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

getTotalStatisticsRequestCount

public AtomicLong getTotalStatisticsRequestCount()

getTps

public double getTps()
Specified by:
getTps in interface Service

getTotalStatisticsStartTime

public AtomicLong getTotalStatisticsStartTime()

getUsedThreads

public int getUsedThreads()
Specified by:
getUsedThreads in interface Service

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Cisco. All Rights Reserved.