public class DefaultGroupDescription extends java.lang.Object implements GroupDescription
GroupDescription.Type
Constructor and Description |
---|
DefaultGroupDescription(DeviceId deviceId,
GroupDescription.Type type,
GroupBuckets buckets)
Constructor to be used by group subsystem internal components.
|
DefaultGroupDescription(DeviceId deviceId,
GroupDescription.Type type,
GroupBuckets buckets,
GroupKey appCookie,
java.lang.Integer groupId,
ApplicationId appId)
Constructor to be used by north bound applications.
|
DefaultGroupDescription(GroupDescription groupDesc)
Constructor to be used by group subsystem internal components.
|
Modifier and Type | Method and Description |
---|---|
GroupKey |
appCookie()
Returns application cookie associated with a group object.
|
ApplicationId |
appId()
Returns application identifier that has created this group object.
|
GroupBuckets |
buckets()
Returns group buckets of a group.
|
DeviceId |
deviceId()
Returns device identifier on which this group object is created.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
givenGroupId()
Returns groupId passed in by application.
|
int |
hashCode() |
java.lang.String |
toString() |
GroupDescription.Type |
type()
Returns type of a group object.
|
public DefaultGroupDescription(DeviceId deviceId, GroupDescription.Type type, GroupBuckets buckets, GroupKey appCookie, java.lang.Integer groupId, ApplicationId appId)
deviceId
- device identifiertype
- type of the groupbuckets
- immutable list of group bucketappCookie
- immutable application cookie of type DefaultGroupKey
to be associated with the groupgroupId
- group identifierappId
- application idpublic DefaultGroupDescription(GroupDescription groupDesc)
groupDesc
- group description objectpublic DefaultGroupDescription(DeviceId deviceId, GroupDescription.Type type, GroupBuckets buckets)
deviceId
- device identifiertype
- type of the groupbuckets
- immutable list of group bucketpublic GroupDescription.Type type()
type
in interface GroupDescription
public DeviceId deviceId()
deviceId
in interface GroupDescription
public ApplicationId appId()
appId
in interface GroupDescription
public GroupKey appCookie()
appCookie
in interface GroupDescription
public GroupBuckets buckets()
buckets
in interface GroupDescription
public java.lang.Integer givenGroupId()
givenGroupId
in interface GroupDescription
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object