org.opennms.bb.dp.capsd.components
Class ServiceStatus

java.lang.Object
  |
  +--org.opennms.bb.dp.capsd.components.ServiceStatus

public final class ServiceStatus
extends Object

The ServiceStatus is designed to hold a serviceID, the identifier in the database, and its current status. The service will either be supported or unsupported.

Version:
$Revision: 1.5 $
Author:
Sowmya, OpenNMS

Field Summary
private  int m_serviceID
          The service identifier.
private  boolean m_supported
          The supported flag.
 
Constructor Summary
private ServiceStatus()
          The default class constructor.
  ServiceStatus(int serviceID, boolean b)
          Constructs a new service status object.
 
Method Summary
 int getServiceID()
          Returns the service identifier for the status object.
 boolean isSupported()
          Returns true if the service defined by this object is supported.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

m_serviceID

private int m_serviceID

The service identifier.


m_supported

private boolean m_supported

The supported flag. If set to true the the protocol is supported, if false then the protocol is not supported.

Constructor Detail

ServiceStatus

private ServiceStatus()
               throws UnsupportedOperationException

The default class constructor. The constructor will always throw an exception.

Throws:
UnsupportedOperationException - Always thrown by the constructor.

ServiceStatus

public ServiceStatus(int serviceID,
                     boolean b)

Constructs a new service status object.

Parameters:
serviceID - service ID of the service in the SERVICE table
b - true if the service is supported, false if not
Method Detail

getServiceID

public int getServiceID()

Returns the service identifier for the status object.

Returns:
The service id for the status information.

isSupported

public boolean isSupported()

Returns true if the service defined by this object is supported. A false is returned if the services is not supported.

Returns:
The supported status of the service.