com.ibm.sysmgt.sdk.remote
Class ManagedGroup

java.lang.Object
  extended bycom.ibm.sysmgt.sdk.remote.ManagedGroup
All Implemented Interfaces:
CompositeSystem, java.io.Serializable, TaskTarget

public class ManagedGroup
extends java.lang.Object
implements CompositeSystem, TaskTarget, java.io.Serializable

A Director Group as seen on the left panel of the Director Console

See Also:
Serialized Form

Field Summary
static int GROUP_TYPE_DYNAMIC
           
static int GROUP_TYPE_STATIC
           
static int GROUP_TYPE_TASK
           
 
Constructor Summary
ManagedGroup(long id, java.lang.String lbl, int typ)
          Constructor
 
Method Summary
static java.util.List getAllGroups(LoginSession s)
          getAllGroups
static ManagedGroup getAllSystemsAndDevicesGroup(LoginSession s)
          getallSystemsAndDevicesGroup
 java.util.List getChildSystems(LoginSession s)
          This will return the ManagedSystems that are members of the group.
 CompositeStatus getCompositeStatus()
          getCompositeStatus
 CompositeStatus getCompositeStatus(LoginSession s)
          getCompositeStatus
static ManagedGroup getGroupByOid(LoginSession s, long oid)
          getGroupByOid
 java.lang.String getGroupType()
          getGroupType
 java.lang.String getLabel()
          getLabel
 long getOid()
          getOid
 int getType()
          getType
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GROUP_TYPE_STATIC

public static final int GROUP_TYPE_STATIC
See Also:
Constant Field Values

GROUP_TYPE_DYNAMIC

public static final int GROUP_TYPE_DYNAMIC
See Also:
Constant Field Values

GROUP_TYPE_TASK

public static final int GROUP_TYPE_TASK
See Also:
Constant Field Values
Constructor Detail

ManagedGroup

public ManagedGroup(long id,
                    java.lang.String lbl,
                    int typ)
Constructor

Method Detail

getAllGroups

public static java.util.List getAllGroups(LoginSession s)
                                   throws ServerCommunicationException,
                                          RequestFailedException
getAllGroups

Throws:
ServerCommunicationException
RequestFailedException

getGroupByOid

public static ManagedGroup getGroupByOid(LoginSession s,
                                         long oid)
                                  throws ServerCommunicationException,
                                         RequestFailedException
getGroupByOid

Throws:
ServerCommunicationException
RequestFailedException

getAllSystemsAndDevicesGroup

public static ManagedGroup getAllSystemsAndDevicesGroup(LoginSession s)
                                                 throws ServerCommunicationException,
                                                        RequestFailedException
getallSystemsAndDevicesGroup

Throws:
ServerCommunicationException
RequestFailedException

getOid

public long getOid()
getOid

Specified by:
getOid in interface TaskTarget

getChildSystems

public java.util.List getChildSystems(LoginSession s)
                               throws ServerCommunicationException,
                                      RequestFailedException
This will return the ManagedSystems that are members of the group.

Specified by:
getChildSystems in interface CompositeSystem
Parameters:
s - - the login session to the Director Server
Returns:
A List of ManagedSystems.
Throws:
ServerCommunicationException
RequestFailedException
See Also:
CompositeSystem.getChildSystems(com.ibm.sysmgt.sdk.remote.LoginSession)

getLabel

public java.lang.String getLabel()
getLabel

Specified by:
getLabel in interface CompositeSystem
Returns:

getType

public int getType()
getType

Returns:

getGroupType

public java.lang.String getGroupType()
getGroupType


toString

public java.lang.String toString()

getCompositeStatus

public CompositeStatus getCompositeStatus()
getCompositeStatus

Specified by:
getCompositeStatus in interface CompositeSystem

getCompositeStatus

public CompositeStatus getCompositeStatus(LoginSession s)
                                   throws ServerCommunicationException,
                                          RequestFailedException
getCompositeStatus

Throws:
ServerCommunicationException
RequestFailedException