|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.capsd.components.ServiceStatus
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.
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 |
|
Field Detail |
private int m_serviceID
The service identifier.
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 |
private ServiceStatus() throws UnsupportedOperationException
The default class constructor. The constructor will always throw an exception.
UnsupportedOperationException
- Always
thrown by the constructor.public ServiceStatus(int serviceID, boolean b)
Constructs a new service status object.
serviceID
- service ID of the service in the SERVICE tableb
- true if the service is supported, false if notMethod Detail |
public int getServiceID()
Returns the service identifier for the status object.
public boolean isSupported()
Returns true if the service defined by this object is supported. A false is returned if the services is not supported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |