|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netxms.client.objects.GenericObject
public class GenericObject
Generic NetXMS object class
Field Summary | |
---|---|
static int |
OBJECT_AGENTPOLICY
|
static int |
OBJECT_AGENTPOLICY_CONFIG
|
static int |
OBJECT_CLUSTER
|
static int |
OBJECT_CONDITION
|
static int |
OBJECT_CONTAINER
|
static int |
OBJECT_GENERIC
|
static int |
OBJECT_INTERFACE
|
static int |
OBJECT_NETWORK
|
static int |
OBJECT_NETWORKMAP
|
static int |
OBJECT_NETWORKMAPGROUP
|
static int |
OBJECT_NETWORKMAPROOT
|
static int |
OBJECT_NETWORKSERVICE
|
static int |
OBJECT_NODE
|
static int |
OBJECT_POLICYGROUP
|
static int |
OBJECT_POLICYROOT
|
static int |
OBJECT_SERVICEROOT
|
static int |
OBJECT_SUBNET
|
static int |
OBJECT_TEMPLATE
|
static int |
OBJECT_TEMPLATEGROUP
|
static int |
OBJECT_TEMPLATEROOT
|
static int |
OBJECT_VPNCONNECTOR
|
static int |
OBJECT_ZONE
|
static int |
STATUS_CRITICAL
|
static int |
STATUS_DISABLED
|
static int |
STATUS_MAJOR
|
static int |
STATUS_MINOR
|
static int |
STATUS_NORMAL
|
static int |
STATUS_TESTING
|
static int |
STATUS_UNKNOWN
|
static int |
STATUS_UNMANAGED
|
static int |
STATUS_WARNING
|
Constructor Summary | |
---|---|
protected |
GenericObject(long id,
NXCSession session)
Create dummy object of GENERIC class |
|
GenericObject(NXCPMessage msg,
NXCSession session)
Create object from NXCP message |
Method Summary | |
---|---|
AccessListElement[] |
getAccessList()
|
java.util.Iterator<java.lang.Long> |
getChilds()
|
GenericObject[] |
getChildsAsArray()
|
java.lang.String |
getComments()
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomAttributes()
Get object's custom attributes |
GeoLocation |
getGeolocation()
|
java.util.UUID |
getGuid()
|
int |
getNumberOfChilds()
|
int |
getNumberOfParents()
|
int |
getObjectClass()
|
java.lang.String |
getObjectClassName()
|
long |
getObjectId()
|
java.lang.String |
getObjectName()
|
java.util.Iterator<java.lang.Long> |
getParents()
|
GenericObject[] |
getParentsAsArray()
|
java.net.InetAddress |
getPrimaryIP()
|
int |
getStatus()
|
GenericObject[] |
getTrustedNodes()
|
int |
hashCode()
|
boolean |
isChildOf(long objectId)
Check if given object is direct or indirect parent |
boolean |
isChildOf(long[] objects)
Check if at least one of given objects is direct or indirect parent |
boolean |
isDeleted()
|
boolean |
isDirectChildOf(long objectId)
Check if given object is direct parent |
boolean |
isInheritAccessRights()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OBJECT_GENERIC
public static final int OBJECT_SUBNET
public static final int OBJECT_NODE
public static final int OBJECT_INTERFACE
public static final int OBJECT_NETWORK
public static final int OBJECT_CONTAINER
public static final int OBJECT_ZONE
public static final int OBJECT_SERVICEROOT
public static final int OBJECT_TEMPLATE
public static final int OBJECT_TEMPLATEGROUP
public static final int OBJECT_TEMPLATEROOT
public static final int OBJECT_NETWORKSERVICE
public static final int OBJECT_VPNCONNECTOR
public static final int OBJECT_CONDITION
public static final int OBJECT_CLUSTER
public static final int OBJECT_POLICYGROUP
public static final int OBJECT_POLICYROOT
public static final int OBJECT_AGENTPOLICY
public static final int OBJECT_AGENTPOLICY_CONFIG
public static final int OBJECT_NETWORKMAPROOT
public static final int OBJECT_NETWORKMAPGROUP
public static final int OBJECT_NETWORKMAP
public static final int STATUS_NORMAL
public static final int STATUS_WARNING
public static final int STATUS_MINOR
public static final int STATUS_MAJOR
public static final int STATUS_CRITICAL
public static final int STATUS_UNKNOWN
public static final int STATUS_UNMANAGED
public static final int STATUS_DISABLED
public static final int STATUS_TESTING
Constructor Detail |
---|
protected GenericObject(long id, NXCSession session)
id
- object ID to setsession
- associated sessionpublic GenericObject(NXCPMessage msg, NXCSession session)
msg
- Message to create object fromsession
- Associated client sessionMethod Detail |
---|
public java.util.Iterator<java.lang.Long> getParents()
public java.util.Iterator<java.lang.Long> getChilds()
public AccessListElement[] getAccessList()
public java.lang.String getComments()
public long getObjectId()
public java.lang.String getObjectName()
public java.net.InetAddress getPrimaryIP()
public int getStatus()
public boolean isDeleted()
public boolean isInheritAccessRights()
public boolean isChildOf(long objectId)
objectId
- ID of object to checkpublic boolean isChildOf(long[] objects)
objects
- List of object ID to checkpublic boolean isDirectChildOf(long objectId)
objectId
- ID of object to checkpublic GenericObject[] getParentsAsArray()
public GenericObject[] getChildsAsArray()
public GenericObject[] getTrustedNodes()
public int getNumberOfParents()
public int getNumberOfChilds()
public int getObjectClass()
public java.lang.String getObjectClassName()
public java.util.Map<java.lang.String,java.lang.String> getCustomAttributes()
public GeoLocation getGeolocation()
public int hashCode()
hashCode
in class java.lang.Object
public java.util.UUID getGuid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |