Package org.netxms.client
Class NXCObjectCreationData
java.lang.Object
org.netxms.client.NXCObjectCreationData
NetXMS object creation data
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
-
Constructor Summary
ConstructorDescriptionNXCObjectCreationData
(int objectClass, String name, long parentId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
long
long
int
long
long
int
final String
int
long
int
getFlags()
long
int
long
int
int
int
int
int
long
int
long
int
short
getModel()
int
long
getName()
int
long
int
getPIC()
int
getPort()
Long[]
final String
int
int
long
int
long
final String
long
int
boolean
boolean
boolean
void
setAgentPort
(int agentPort) void
setAgentProxyId
(long agentProxyId) void
setAssetId
(long assetId) void
setAssetProperties
(Map<String, String> assetProperties) void
setChassis
(int chassis) void
setChassisId
(long chassisId) void
setComments
(String comments) void
setControllerId
(long controllerId) void
setCreateStatusDci
(boolean createStatusDci) void
setCreationFlags
(int creationFlags) void
setDeviceAddress
(String deviceAddress) void
setDeviceClass
(SensorDeviceClass deviceClass) final void
setDeviceId
(String deviceId) void
setEtherNetIpPort
(int etherNetIpPort) void
setEtherNetIpProxyId
(long etherNetIpProxyId) void
setFlags
(int flags) void
setGatewayNodeId
(long gatewayNodeId) void
setHeight
(int height) void
setIcmpProxyId
(long icmpProxyId) void
setIfIndex
(int ifIndex) void
setIfType
(int ifType) void
setInstanceDiscoveryMethod
(int instanceDiscoveryMethod) void
setIpAddress
(InetAddressEx ipAddress) void
setIpPort
(int ipPort) void
setIpProtocol
(int ipProtocol) void
setLinkedNodeId
(long linkedNodeId) void
setMacAddress
(MacAddress macAddress) void
setMapType
(int mapType) void
setModbusProxyId
(long modbusProxyId) void
setModbusTcpPort
(int modbusTcpPort) void
setModbusUnitId
(short modbusUnitId) void
void
setModule
(int module) void
setMqttProxyId
(long mqttProxyId) void
void
setObjectAlias
(String alias) void
setObjectClass
(int objectClass) void
setParentId
(long parentId) void
setPhysicalPort
(boolean physicalPort) void
setPIC
(int pic) void
setPort
(int port) void
setPrimaryName
(String primaryName) void
setRequest
(String request) void
setResponse
(String response) void
setSeedObjectId
(long seedObjectId) void
setSeedObjectIds
(Collection<Long> seedObjectIds) void
setSerialNumber
(String serialNumber) void
setServiceType
(int serviceType) void
setSnmpPort
(int snmpPort) void
setSnmpProxyId
(long snmpProxyId) void
setSshLogin
(String sshLogin) void
setSshPassword
(String sshPassword) void
setSshPort
(int sshPort) void
setSshProxyId
(long sshProxyId) void
setTemplate
(boolean template) void
void
setWebServiceProxyId
(long webServiceProxyId) void
setZoneUIN
(int zoneUIN) toString()
void
Update creation data from modify object
-
Field Details
-
CF_DISABLE_ICMP
public static int CF_DISABLE_ICMP -
CF_DISABLE_NXCP
public static int CF_DISABLE_NXCP -
CF_DISABLE_SNMP
public static int CF_DISABLE_SNMP -
CF_CREATE_UNMANAGED
public static int CF_CREATE_UNMANAGED -
CF_ENTER_MAINTENANCE
public static int CF_ENTER_MAINTENANCE -
CF_AS_ZONE_PROXY
public static int CF_AS_ZONE_PROXY -
CF_DISABLE_ETHERNET_IP
public static int CF_DISABLE_ETHERNET_IP -
CF_SNMP_SETTINGS_LOCKED
public static int CF_SNMP_SETTINGS_LOCKED -
CF_EXTERNAL_GATEWAY
public static int CF_EXTERNAL_GATEWAY -
CF_DISABLE_SSH
public static int CF_DISABLE_SSH -
CF_DISABLE_MODBUS_TCP
public static int CF_DISABLE_MODBUS_TCP
-
-
Constructor Details
-
NXCObjectCreationData
Constructor.- Parameters:
objectClass
- Class of new object (one of NXCObject.OBJECT_xxx constants)name
- Name of new objectparentId
- Parent object ID- See Also:
-
-
Method Details
-
updateFromModificationData
Update creation data from modify object- Parameters:
data
- modifyt data
-
getObjectClass
public int getObjectClass()- Returns:
- the objectClass
-
setObjectClass
public void setObjectClass(int objectClass) - Parameters:
objectClass
- the objectClass to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name
- the name to set
-
getParentId
public long getParentId()- Returns:
- the parentId
-
setParentId
public void setParentId(long parentId) - Parameters:
parentId
- the parentId to set
-
getComments
- Returns:
- the comments
-
setComments
- Parameters:
comments
- the comments to set
-
getCreationFlags
public int getCreationFlags()- Returns:
- the creationFlags
-
setCreationFlags
public void setCreationFlags(int creationFlags) - Parameters:
creationFlags
- Node creation flags (combination of NXCObjectCreationData.CF_xxx constants)
-
getIpAddress
- Returns:
- the ipAddress
-
setIpAddress
- Parameters:
ipAddress
- the ipAddress to set
-
getAgentProxyId
public long getAgentProxyId()- Returns:
- the agentProxyId
-
setAgentProxyId
public void setAgentProxyId(long agentProxyId) - Parameters:
agentProxyId
- the agentProxyId to set
-
getSnmpProxyId
public long getSnmpProxyId()- Returns:
- the snmpProxyId
-
setSnmpProxyId
public void setSnmpProxyId(long snmpProxyId) - Parameters:
snmpProxyId
- the snmpProxyId to set
-
getMqttProxyId
public long getMqttProxyId()- Returns:
- the mqttProxyId
-
setMqttProxyId
public void setMqttProxyId(long mqttProxyId) - Parameters:
mqttProxyId
- the mqttProxyId to set
-
getIcmpProxyId
public long getIcmpProxyId()- Returns:
- the icmpProxyId
-
setIcmpProxyId
public void setIcmpProxyId(long icmpProxyId) - Parameters:
icmpProxyId
- the icmpProxyId to set
-
getSshProxyId
public long getSshProxyId()- Returns:
- the sshProxyId
-
setSshProxyId
public void setSshProxyId(long sshProxyId) - Parameters:
sshProxyId
- the sshProxyId to set
-
getWebServiceProxyId
public long getWebServiceProxyId()- Returns:
- the webServiceProxyId
-
setWebServiceProxyId
public void setWebServiceProxyId(long webServiceProxyId) - Parameters:
webServiceProxyId
- the webServiceProxyId to set
-
getMapType
public int getMapType()- Returns:
- the mapType
-
setMapType
public void setMapType(int mapType) - Parameters:
mapType
- the mapType to set
-
getSeedObjectIds
- Returns:
- the seedObjectIds
-
setSeedObjectId
public void setSeedObjectId(long seedObjectId) - Parameters:
seedObjectId
- the seedObjectId to set
-
setSeedObjectIds
- Parameters:
seedObjectIds
- the seed node object Ids to set
-
getZoneUIN
public int getZoneUIN()- Returns:
- the zoneId
-
setZoneUIN
public void setZoneUIN(int zoneUIN) - Parameters:
zoneUIN
- the zoneId to set
-
getServiceType
public int getServiceType()- Returns:
- the serviceType
-
setServiceType
public void setServiceType(int serviceType) - Parameters:
serviceType
- the serviceType to set
-
getIpProtocol
public int getIpProtocol()- Returns:
- the ipProtocol
-
setIpProtocol
public void setIpProtocol(int ipProtocol) - Parameters:
ipProtocol
- the ipProtocol to set
-
getIpPort
public int getIpPort()- Returns:
- the ipPort
-
setIpPort
public void setIpPort(int ipPort) - Parameters:
ipPort
- the ipPort to set
-
getRequest
- Returns:
- the request
-
setRequest
- Parameters:
request
- the request to set
-
getResponse
- Returns:
- the response
-
setResponse
- Parameters:
response
- the response to set
-
getLinkedNodeId
public long getLinkedNodeId()- Returns:
- the linkedNodeId
-
setLinkedNodeId
public void setLinkedNodeId(long linkedNodeId) - Parameters:
linkedNodeId
- the linkedNodeId to set
-
getPrimaryName
- Returns:
- the primaryName
-
setPrimaryName
- Parameters:
primaryName
- the primaryName to set
-
setObjectAlias
- Parameters:
alias
- the alias to set
-
getObjectAlias
- Returns:
- the alias
-
isTemplate
public boolean isTemplate()- Returns:
- the template
-
setTemplate
public void setTemplate(boolean template) - Parameters:
template
- the template to set
-
getMacAddress
- Returns:
- the macAddress
-
setMacAddress
- Parameters:
macAddress
- the macAddress to set
-
getIfIndex
public int getIfIndex()- Returns:
- the ifIndex
-
setIfIndex
public void setIfIndex(int ifIndex) - Parameters:
ifIndex
- the ifIndex to set
-
getIfType
public int getIfType()- Returns:
- the ifType
-
setIfType
public void setIfType(int ifType) - Parameters:
ifType
- the ifType to set
-
getModule
public int getModule()- Returns:
- interface module number
-
setModule
public void setModule(int module) - Parameters:
module
- interface module number
-
getChassis
public int getChassis()- Returns:
- the chassis
-
setChassis
public void setChassis(int chassis) - Parameters:
chassis
- the chassis to set
-
getPIC
public int getPIC()- Returns:
- the pic
-
setPIC
public void setPIC(int pic) - Parameters:
pic
- the pic to set
-
getPort
public int getPort()- Returns:
- the port
-
setPort
public void setPort(int port) - Parameters:
port
- the port to set
-
isPhysicalPort
public boolean isPhysicalPort()- Returns:
- the physicalPort
-
setPhysicalPort
public void setPhysicalPort(boolean physicalPort) - Parameters:
physicalPort
- the physicalPort to set
-
isCreateStatusDci
public boolean isCreateStatusDci()- Returns:
- the createStatusDci
-
setCreateStatusDci
public void setCreateStatusDci(boolean createStatusDci) - Parameters:
createStatusDci
- the createStatusDci to set
-
getAgentPort
public int getAgentPort()- Returns:
- the agentPort
-
setAgentPort
public void setAgentPort(int agentPort) - Parameters:
agentPort
- the agentPort to set
-
getSnmpPort
public int getSnmpPort()- Returns:
- the snmpPort
-
setSnmpPort
public void setSnmpPort(int snmpPort) - Parameters:
snmpPort
- the snmpPort to set
-
getDeviceId
- Returns:
- the deviceId
-
setDeviceId
- Parameters:
deviceId
- the deviceId to set
-
getHeight
public int getHeight()- Returns:
- the height
-
setHeight
public void setHeight(int height) - Parameters:
height
- the height to set
-
getFlags
public int getFlags()- Returns:
- the flags
-
setFlags
public void setFlags(int flags) - Parameters:
flags
- the flags to set
-
getControllerId
public long getControllerId()- Returns:
- the controllerId
-
setControllerId
public void setControllerId(long controllerId) - Parameters:
controllerId
- the controllerId to set
-
getChassisId
public long getChassisId()- Returns:
- the chassisId
-
setChassisId
public void setChassisId(long chassisId) - Parameters:
chassisId
- the chassisId to set
-
getSshLogin
- Returns:
- the sshLogin
-
setSshLogin
- Parameters:
sshLogin
- the sshLogin to set
-
getSshPassword
- Returns:
- the sshPassword
-
setSshPassword
- Parameters:
sshPassword
- the sshPassword to set
-
getDeviceClass
- Returns:
- the deviceClass
-
setDeviceClass
- Parameters:
deviceClass
- the deviceClass to set
-
getDeviceAddress
- Returns:
- the deviceAddress
-
setDeviceAddress
- Parameters:
deviceAddress
- the deviceAddress to set
-
setVendor
- Parameters:
vendor
- the vendor to set
-
getModel
- Returns:
- the model
-
setModel
- Parameters:
model
- the model to set
-
setSerialNumber
- Parameters:
serialNumber
- the serialNumber to set
-
getVendor
- Returns:
- the vendor
-
getSerialNumber
- Returns:
- the serialNumber
-
getGatewayNodeId
public long getGatewayNodeId()- Returns:
- the sensorProxy
-
setGatewayNodeId
public void setGatewayNodeId(long gatewayNodeId) - Parameters:
gatewayNodeId
- the sensorProxy to set
-
getEtherNetIpPort
public int getEtherNetIpPort()- Returns:
- the etherNetIpPort
-
setEtherNetIpPort
public void setEtherNetIpPort(int etherNetIpPort) - Parameters:
etherNetIpPort
- the etherNetIpPort to set
-
getEtherNetIpProxyId
public long getEtherNetIpProxyId()- Returns:
- the etherNetIpProxyId
-
setEtherNetIpProxyId
public void setEtherNetIpProxyId(long etherNetIpProxyId) - Parameters:
etherNetIpProxyId
- the etherNetIpProxyId to set
-
getModbusTcpPort
public int getModbusTcpPort()- Returns:
- the modbusTcpPort
-
setModbusTcpPort
public void setModbusTcpPort(int modbusTcpPort) - Parameters:
modbusTcpPort
- the modbusTcpPort to set
-
getModbusUnitId
public short getModbusUnitId()- Returns:
- the modbusUnitId
-
setModbusUnitId
public void setModbusUnitId(short modbusUnitId) - Parameters:
modbusUnitId
- the modbusUnitId to set
-
getModbusProxyId
public long getModbusProxyId()- Returns:
- the modbusProxyId
-
setModbusProxyId
public void setModbusProxyId(long modbusProxyId) - Parameters:
modbusProxyId
- the modbusProxyId to set
-
getSshPort
public int getSshPort()- Returns:
- the sshPort
-
setSshPort
public void setSshPort(int sshPort) - Parameters:
sshPort
- the sshPort to set
-
getInstanceDiscoveryMethod
public int getInstanceDiscoveryMethod()- Returns:
- the instanceDiscoveryMethod
-
setInstanceDiscoveryMethod
public void setInstanceDiscoveryMethod(int instanceDiscoveryMethod) - Parameters:
instanceDiscoveryMethod
- the instanceDiscoveryMethod to set
-
getAssetId
public long getAssetId()- Returns:
- the assetId
-
setAssetId
public void setAssetId(long assetId) - Parameters:
assetId
- the assetId to set
-
getAssetProperties
- Returns:
- the assetProperties
-
setAssetProperties
- Parameters:
assetProperties
- the assetProperties to set
-
toString
-