org.ow2.jonas.discovery.jgroups.utils
Class Data

java.lang.Object
  extended by org.ow2.jonas.discovery.jgroups.utils.Data
All Implemented Interfaces:
Serializable

public class Data
extends Object
implements Serializable

Author:
eyindanga
See Also:
Serialized Form

Field Summary
static int DISC_EVENT
          Constant for DiscEvent objects type.
static int DISC_GREETING
          Constant for DiscGreeting objects type.
static int DISC_MESSAGE
          Constant for DiscMessage objects type.
 
Constructor Summary
Data(int type, Serializable payload)
           
 
Method Summary
 Serializable getPayload()
           
 int getType()
           
 void setPayload(Serializable payload)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISC_MESSAGE

public static int DISC_MESSAGE
Constant for DiscMessage objects type.


DISC_EVENT

public static int DISC_EVENT
Constant for DiscEvent objects type.


DISC_GREETING

public static int DISC_GREETING
Constant for DiscGreeting objects type.

Constructor Detail

Data

public Data(int type,
            Serializable payload)
Method Detail

getPayload

public Serializable getPayload()
Returns:
the payload

setPayload

public void setPayload(Serializable payload)
Parameters:
payload - the payload to set

getType

public int getType()
Returns:
the type

setType

public void setType(int type)
Parameters:
type - the type to set


Copyright © 2010 OW2 Consortium. All Rights Reserved.