Package org.opennms.netmgt.model
Class OnmsAssetRecord
- java.lang.Object
-
- org.opennms.netmgt.model.OnmsAssetRecord
-
- All Implemented Interfaces:
Serializable
@Entity public class OnmsAssetRecord extends Object implements Serializable
Represents the asset information for a node.- See Also:
- Serialized Form
- Hibernate class:
- table="assets"
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTOENABLED
ConstantAUTOENABLED="A"
static String
RSH_CONNECTION
ConstantRSH_CONNECTION="rsh"
static String
SSH_CONNECTION
ConstantSSH_CONNECTION="ssh"
static String
TELNET_CONNECTION
ConstantTELNET_CONNECTION="telnet"
-
Constructor Summary
Constructors Constructor Description OnmsAssetRecord()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAdditionalhardware()
getAdditionalhardwareString
getAddress1()
Deprecated.String
getAddress2()
Deprecated.String
getAdmin()
getAdminString
getAssetNumber()
--# assetNumber : A business-specified asset number.String
getAutoenable()
getAutoenableString
getBuilding()
--# building : The building where this asset resides.String
getCategory()
--# category : A broad idea of what this asset does (examples are --# desktop, printer, server, infrastructure, etc.).String
getCircuitId()
--# circuitId : The electrical/network circuit this asset connects to.String
getCity()
Deprecated.String
getComment()
getCommentString
getConnection()
getConnectionString
getCountry()
Deprecated.String
getCpu()
getCpuString
getDateInstalled()
--# dateInstalled : The date the asset was installed.String
getDepartment()
--# department : The department this asset belongs to.String
getDescription()
--# description : A free-form description.String
getDisplayCategory()
getDisplayCategoryString
getDivision()
--# division : A broad geographical or organizational area.String
getEnable()
getEnableString
getFloor()
--# floor : The floor of the building where this asset resides.OnmsGeolocation
getGeolocation()
String
getHdd1()
getHdd1String
getHdd2()
getHdd2String
getHdd3()
getHdd3String
getHdd4()
getHdd4String
getHdd5()
getHdd5String
getHdd6()
getHdd6Integer
getId()
getIdString
getInputpower()
getInputpowerString
getLastModifiedBy()
--# userLastModified : The last user who modified this record.Date
getLastModifiedDate()
--# lastModifiedDate : The last time this record was modified.Double
getLatitude()
Deprecated.String
getLease()
--# lease : The lease number of this asset.String
getLeaseExpires()
--# leaseExpires : The date the lease expires for this asset.Double
getLongitude()
Deprecated.String
getMaintcontract()
--# maintcontract : The maintenance contract number for this asset.String
getMaintContractExpiration()
getMaintContractExpirationString
getMaintContractNumber()
Deprecated.This field is provided for backwards compatibility with OpenNMS < 1.10String
getManagedObjectInstance()
getManagedObjectInstanceString
getManagedObjectType()
getManagedObjectTypeString
getManufacturer()
--# manufacturer : Name of the manufacturer of this asset.String
getModelNumber()
--# modelNumber : The model number of this asset.OnmsNode
getNode()
The node this asset information belongs to.String
getNotifyCategory()
getNotifyCategoryString
getNumpowersupplies()
getNumpowersuppliesString
getOperatingSystem()
--# operatingSystem : The operating system, if any.String
getPassword()
getPasswordString
getPollerCategory()
getPollerCategoryString
getPort()
--# port : For servers, the port in the slot it is installed in.String
getRack()
--# rack : For servers, the rack it is installed in.String
getRackunitheight()
getRackunitheightString
getRam()
getRamString
getRegion()
--# region : A broad geographical or organizational area.String
getRoom()
--# room : The room where this asset resides.String
getSerialNumber()
--# serialNumber : The serial number of this asset.String
getSlot()
--# slot : For servers, the slot in the rack it is installed in.String
getSnmpcommunity()
getSnmpcommunityString
getState()
Deprecated.String
getStoragectrl()
getStoragectrlString
getSupportPhone()
--# supportPhone : A support phone number for this asset.String
getThresholdCategory()
getThresholdCategoryString
getUsername()
getUsernameString
getVendor()
--# vendor : Vendor from whom this asset was purchased.String
getVendorAssetNumber()
getVendorAssetNumberString
getVendorFax()
--# vendorFax : A fax number for the vendor.String
getVendorPhone()
--# vendorPhone : A contact number for the vendor.String
getZip()
Deprecated.int
hashCode()
void
mergeRecord(OnmsAssetRecord newRecord)
Used to merge the contents of one asset record to another.void
setAdditionalhardware(String additionalhardware)
setAdditionalhardwarevoid
setAddress1(String address1)
Deprecated.void
setAddress2(String address2)
Deprecated.void
setAdmin(String admin)
setAdminvoid
setAssetNumber(String assetnumber)
setAssetNumbervoid
setAutoenable(String autoenable)
setAutoenablevoid
setBuilding(String building)
setBuildingvoid
setCategory(String category)
setCategoryvoid
setCircuitId(String circuitid)
setCircuitIdvoid
setCity(String city)
Deprecated.void
setComment(String comment)
setCommentvoid
setConnection(String connection)
setConnectionvoid
setCountry(String country)
Deprecated.void
setCpu(String cpu)
setCpuvoid
setDateInstalled(String dateinstalled)
setDateInstalledvoid
setDepartment(String department)
setDepartmentvoid
setDescription(String description)
setDescriptionvoid
setDisplayCategory(String displaycategory)
setDisplayCategoryvoid
setDivision(String division)
setDivisionvoid
setEnable(String enable)
setEnablevoid
setFloor(String floor)
setFloorvoid
setGeolocation(OnmsGeolocation geolocation)
void
setHdd1(String hdd1)
setHdd1void
setHdd2(String hdd2)
setHdd2void
setHdd3(String hdd3)
setHdd3void
setHdd4(String hdd4)
setHdd4void
setHdd5(String hdd5)
setHdd5void
setHdd6(String hdd6)
setHdd6void
setId(Integer id)
setIdvoid
setInputpower(String inputpower)
setInputpowervoid
setLastModifiedBy(String userlastmodified)
setLastModifiedByvoid
setLastModifiedDate(Date lastmodifieddate)
setLastModifiedDatevoid
setLatitude(Double latitude)
Deprecated.void
setLease(String lease)
setLeasevoid
setLeaseExpires(String leaseexpires)
setLeaseExpiresvoid
setLongitude(Double longitude)
Deprecated.void
setMaintcontract(String maintcontract)
setMaintContractvoid
setMaintContractExpiration(String maintcontractexpires)
setMaintContractExpirationvoid
setMaintContractNumber(String maintcontract)
Deprecated.This field is provided for backwards compatibility with OpenNMS < 1.10void
setManagedObjectInstance(String moi)
setManagedObjectInstancevoid
setManagedObjectType(String mot)
setManagedObjectTypevoid
setManufacturer(String manufacturer)
setManufacturervoid
setModelNumber(String modelnumber)
setModelNumbervoid
setNode(OnmsNode node)
Set the node associated with the asset recordvoid
setNotifyCategory(String notifycategory)
setNotifyCategoryvoid
setNumpowersupplies(String numpowersupplies)
setNumpowersuppliesvoid
setOperatingSystem(String operatingsystem)
setOperatingSystemvoid
setPassword(String password)
setPasswordvoid
setPollerCategory(String pollercategory)
setPollerCategoryvoid
setPort(String port)
setPortvoid
setRack(String rack)
setRackvoid
setRackunitheight(String rackunitheight)
void
setRam(String ram)
setRamvoid
setRegion(String region)
setRegionvoid
setRoom(String room)
setRoomvoid
setSerialNumber(String serialnumber)
setSerialNumbervoid
setSlot(String slot)
setSlotvoid
setSnmpcommunity(String snmpcommunity)
setSnmpcommunityvoid
setState(String state)
Deprecated.void
setStoragectrl(String storagectrl)
setStoragectrlvoid
setSupportPhone(String supportphone)
setSupportPhonevoid
setThresholdCategory(String thresholdcategory)
setThresholdCategoryvoid
setUsername(String username)
setUsernamevoid
setVendor(String vendor)
setVendorvoid
setVendorAssetNumber(String vendorassetnumber)
setVendorAssetNumbervoid
setVendorFax(String vendorfax)
setVendorFaxvoid
setVendorPhone(String vendorphone)
setVendorPhonevoid
setZip(String zip)
Deprecated.String
toString()
-
-
-
Field Detail
-
AUTOENABLED
public static final String AUTOENABLED
ConstantAUTOENABLED="A"
- See Also:
- Constant Field Values
-
SSH_CONNECTION
public static final String SSH_CONNECTION
ConstantSSH_CONNECTION="ssh"
- See Also:
- Constant Field Values
-
TELNET_CONNECTION
public static final String TELNET_CONNECTION
ConstantTELNET_CONNECTION="telnet"
- See Also:
- Constant Field Values
-
RSH_CONNECTION
public static final String RSH_CONNECTION
ConstantRSH_CONNECTION="rsh"
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNode
public OnmsNode getNode()
The node this asset information belongs to.- Returns:
- a
OnmsNode
object.
-
setNode
public void setNode(OnmsNode node)
Set the node associated with the asset record- Parameters:
node
- aOnmsNode
object.
-
getCategory
public String getCategory()
--# category : A broad idea of what this asset does (examples are --# desktop, printer, server, infrastructure, etc.).- Returns:
- a
String
object.
-
setCategory
public void setCategory(String category)
setCategory
- Parameters:
category
- aString
object.
-
getManufacturer
public String getManufacturer()
--# manufacturer : Name of the manufacturer of this asset.- Returns:
- a
String
object.
-
setManufacturer
public void setManufacturer(String manufacturer)
setManufacturer
- Parameters:
manufacturer
- aString
object.
-
getVendor
public String getVendor()
--# vendor : Vendor from whom this asset was purchased.- Returns:
- a
String
object.
-
getModelNumber
public String getModelNumber()
--# modelNumber : The model number of this asset.- Returns:
- a
String
object.
-
setModelNumber
public void setModelNumber(String modelnumber)
setModelNumber
- Parameters:
modelnumber
- aString
object.
-
getSerialNumber
public String getSerialNumber()
--# serialNumber : The serial number of this asset.- Returns:
- a
String
object.
-
setSerialNumber
public void setSerialNumber(String serialnumber)
setSerialNumber
- Parameters:
serialnumber
- aString
object.
-
getDescription
public String getDescription()
--# description : A free-form description.- Returns:
- a
String
object.
-
setDescription
public void setDescription(String description)
setDescription
- Parameters:
description
- aString
object.
-
getCircuitId
public String getCircuitId()
--# circuitId : The electrical/network circuit this asset connects to.- Returns:
- a
String
object.
-
setCircuitId
public void setCircuitId(String circuitid)
setCircuitId
- Parameters:
circuitid
- aString
object.
-
getAssetNumber
public String getAssetNumber()
--# assetNumber : A business-specified asset number.- Returns:
- a
String
object.
-
setAssetNumber
public void setAssetNumber(String assetnumber)
setAssetNumber
- Parameters:
assetnumber
- aString
object.
-
getOperatingSystem
public String getOperatingSystem()
--# operatingSystem : The operating system, if any.- Returns:
- a
String
object.
-
setOperatingSystem
public void setOperatingSystem(String operatingsystem)
setOperatingSystem
- Parameters:
operatingsystem
- aString
object.
-
getRack
public String getRack()
--# rack : For servers, the rack it is installed in.- Returns:
- a
String
object.
-
getSlot
public String getSlot()
--# slot : For servers, the slot in the rack it is installed in.- Returns:
- a
String
object.
-
getPort
public String getPort()
--# port : For servers, the port in the slot it is installed in.- Returns:
- a
String
object.
-
getRegion
public String getRegion()
--# region : A broad geographical or organizational area.- Returns:
- a
String
object.
-
getDivision
public String getDivision()
--# division : A broad geographical or organizational area.- Returns:
- a
String
object.
-
setDivision
public void setDivision(String division)
setDivision
- Parameters:
division
- aString
object.
-
getDepartment
public String getDepartment()
--# department : The department this asset belongs to.- Returns:
- a
String
object.
-
setDepartment
public void setDepartment(String department)
setDepartment
- Parameters:
department
- aString
object.
-
getGeolocation
public OnmsGeolocation getGeolocation()
-
setGeolocation
public void setGeolocation(OnmsGeolocation geolocation)
-
getBuilding
public String getBuilding()
--# building : The building where this asset resides.- Returns:
- a
String
object.
-
setBuilding
public void setBuilding(String building)
setBuilding
- Parameters:
building
- aString
object.
-
getFloor
public String getFloor()
--# floor : The floor of the building where this asset resides.- Returns:
- a
String
object.
-
getRoom
public String getRoom()
--# room : The room where this asset resides.- Returns:
- a
String
object.
-
getVendorPhone
public String getVendorPhone()
--# vendorPhone : A contact number for the vendor.- Returns:
- a
String
object.
-
setVendorPhone
public void setVendorPhone(String vendorphone)
setVendorPhone
- Parameters:
vendorphone
- aString
object.
-
getVendorFax
public String getVendorFax()
--# vendorFax : A fax number for the vendor.- Returns:
- a
String
object.
-
setVendorFax
public void setVendorFax(String vendorfax)
setVendorFax
- Parameters:
vendorfax
- aString
object.
-
getVendorAssetNumber
public String getVendorAssetNumber()
getVendorAssetNumber
- Returns:
- a
String
object.
-
setVendorAssetNumber
public void setVendorAssetNumber(String vendorassetnumber)
setVendorAssetNumber
- Parameters:
vendorassetnumber
- aString
object.
-
getLastModifiedBy
public String getLastModifiedBy()
--# userLastModified : The last user who modified this record.- Returns:
- a
String
object.
-
setLastModifiedBy
public void setLastModifiedBy(String userlastmodified)
setLastModifiedBy
- Parameters:
userlastmodified
- aString
object.
-
getLastModifiedDate
public Date getLastModifiedDate()
--# lastModifiedDate : The last time this record was modified.- Returns:
- a
Date
object.
-
setLastModifiedDate
public void setLastModifiedDate(Date lastmodifieddate)
setLastModifiedDate
- Parameters:
lastmodifieddate
- aDate
object.
-
getDateInstalled
public String getDateInstalled()
--# dateInstalled : The date the asset was installed.- Returns:
- a
String
object.
-
setDateInstalled
public void setDateInstalled(String dateinstalled)
setDateInstalled
- Parameters:
dateinstalled
- aString
object.
-
getLease
public String getLease()
--# lease : The lease number of this asset.- Returns:
- a
String
object.
-
getLeaseExpires
public String getLeaseExpires()
--# leaseExpires : The date the lease expires for this asset.- Returns:
- a
String
object.
-
setLeaseExpires
public void setLeaseExpires(String leaseexpires)
setLeaseExpires
- Parameters:
leaseexpires
- aString
object.
-
getSupportPhone
public String getSupportPhone()
--# supportPhone : A support phone number for this asset.- Returns:
- a
String
object.
-
setSupportPhone
public void setSupportPhone(String supportphone)
setSupportPhone
- Parameters:
supportphone
- aString
object.
-
getMaintcontract
public String getMaintcontract()
--# maintcontract : The maintenance contract number for this asset.- Returns:
- a
String
object.
-
setMaintcontract
public void setMaintcontract(String maintcontract)
setMaintContract
- Parameters:
maintcontract
- aString
object.
-
getMaintContractNumber
public String getMaintContractNumber()
Deprecated.This field is provided for backwards compatibility with OpenNMS < 1.10--# maintContractNumber: The maintenance contract number for this asset.- Returns:
- a
String
object.
-
setMaintContractNumber
public void setMaintContractNumber(String maintcontract)
Deprecated.This field is provided for backwards compatibility with OpenNMS < 1.10setMaintContractNumber
- Parameters:
maintcontract
- aString
object.
-
getMaintContractExpiration
public String getMaintContractExpiration()
getMaintContractExpiration
- Returns:
- a
String
object.
-
setMaintContractExpiration
public void setMaintContractExpiration(String maintcontractexpires)
setMaintContractExpiration
- Parameters:
maintcontractexpires
- aString
object.
-
setDisplayCategory
public void setDisplayCategory(String displaycategory)
setDisplayCategory
- Parameters:
displaycategory
- aString
object.
-
setNotifyCategory
public void setNotifyCategory(String notifycategory)
setNotifyCategory
- Parameters:
notifycategory
- aString
object.
-
setPollerCategory
public void setPollerCategory(String pollercategory)
setPollerCategory
- Parameters:
pollercategory
- aString
object.
-
getThresholdCategory
public String getThresholdCategory()
getThresholdCategory
- Returns:
- a
String
object.
-
setThresholdCategory
public void setThresholdCategory(String thresholdcategory)
setThresholdCategory
- Parameters:
thresholdcategory
- aString
object.
-
setComment
public void setComment(String comment)
setComment
- Parameters:
comment
- aString
object.
-
getManagedObjectType
public String getManagedObjectType()
getManagedObjectType
- Returns:
- a
String
object.
-
setManagedObjectType
public void setManagedObjectType(String mot)
setManagedObjectType
- Parameters:
mot
- aString
object.
-
getManagedObjectInstance
public String getManagedObjectInstance()
getManagedObjectInstance
- Returns:
- a
String
object.
-
setManagedObjectInstance
public void setManagedObjectInstance(String moi)
setManagedObjectInstance
- Parameters:
moi
- aString
object.
-
setUsername
public void setUsername(String username)
setUsername
- Parameters:
username
- aString
object.
-
setPassword
public void setPassword(String password)
setPassword
- Parameters:
password
- aString
object.
-
setConnection
public void setConnection(String connection)
setConnection
- Parameters:
connection
- aString
object.
-
setAutoenable
public void setAutoenable(String autoenable)
setAutoenable
- Parameters:
autoenable
- aString
object.
-
setSnmpcommunity
public void setSnmpcommunity(String snmpcommunity)
setSnmpcommunity
- Parameters:
snmpcommunity
- aString
object.
-
setRackunitheight
public void setRackunitheight(String rackunitheight)
-
getAdditionalhardware
public String getAdditionalhardware()
getAdditionalhardware
- Returns:
- a
String
object.
-
setAdditionalhardware
public void setAdditionalhardware(String additionalhardware)
setAdditionalhardware
- Parameters:
additionalhardware
- aString
object.
-
setInputpower
public void setInputpower(String inputpower)
setInputpower
- Parameters:
inputpower
- aString
object.
-
getNumpowersupplies
public String getNumpowersupplies()
getNumpowersupplies
- Returns:
- a
String
object.
-
setNumpowersupplies
public void setNumpowersupplies(String numpowersupplies)
setNumpowersupplies
- Parameters:
numpowersupplies
- aString
object.
-
setStoragectrl
public void setStoragectrl(String storagectrl)
setStoragectrl
- Parameters:
storagectrl
- aString
object.
-
getAddress1
@Deprecated public String getAddress1()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocation
is truly a separate table, or projection mapping will fail.
-
setAddress1
@Deprecated public void setAddress1(String address1)
Deprecated.
-
getAddress2
@Deprecated public String getAddress2()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocation
is truly a separate table, or projection mapping will fail.
-
setAddress2
@Deprecated public void setAddress2(String address2)
Deprecated.
-
getCity
@Deprecated public String getCity()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocation
is truly a separate table, or projection mapping will fail.
-
setCity
@Deprecated public void setCity(String city)
Deprecated.
-
getState
@Deprecated public String getState()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocation
is truly a separate table, or projection mapping will fail.
-
setState
@Deprecated public void setState(String state)
Deprecated.
-
getZip
@Deprecated public String getZip()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocation
is truly a separate table, or projection mapping will fail.
-
setZip
@Deprecated public void setZip(String zip)
Deprecated.
-
getCountry
@Deprecated public String getCountry()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocation
is truly a separate table, or projection mapping will fail.
-
setCountry
@Deprecated public void setCountry(String country)
Deprecated.
-
getLongitude
@Deprecated public Double getLongitude()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocation
is truly a separate table, or projection mapping will fail.
-
setLongitude
@Deprecated public void setLongitude(Double longitude)
Deprecated.
-
getLatitude
@Deprecated public Double getLatitude()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocation
is truly a separate table, or projection mapping will fail.
-
setLatitude
@Deprecated public void setLatitude(Double latitude)
Deprecated.
-
mergeRecord
public void mergeRecord(OnmsAssetRecord newRecord)
Used to merge the contents of one asset record to another. If equals implementation returns false, the merge is aborted.- Parameters:
newRecord
- aOnmsAssetRecord
object.
-
-