org.overlord.bam.activity.model
Class Origin

java.lang.Object
  extended by org.overlord.bam.activity.model.Origin
All Implemented Interfaces:
Externalizable, Serializable

public class Origin
extends Object
implements Externalizable

This class represents information about the origin of the activity events reported.

See Also:
Serialized Form

Constructor Summary
Origin()
          The default constructor.
Origin(Origin origin)
          The copy constructor.
 
Method Summary
 String getHost()
          This method gets the host.
 String getNode()
          This method gets the name of the node.
 String getPort()
          This method gets the port.
 String getPrincipal()
          This method gets the principal.
 String getThread()
          This method gets the thread.
 void readExternal(ObjectInput in)
          
 void setHost(String host)
          This method sets the host.
 void setNode(String node)
          This method sets the name of the node.
 void setPort(String port)
          This method sets the port.
 void setPrincipal(String principal)
          This method sets the principal.
 void setThread(String thread)
          This method sets the thread.
 void writeExternal(ObjectOutput out)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Origin

public Origin()
The default constructor.


Origin

public Origin(Origin origin)
The copy constructor.

Parameters:
origin - The origin to copy
Method Detail

setPrincipal

public void setPrincipal(String principal)
This method sets the principal.

Parameters:
principal - The principal

getPrincipal

public String getPrincipal()
This method gets the principal.

Returns:
The principal

setThread

public void setThread(String thread)
This method sets the thread.

Parameters:
thread - The thread

getThread

public String getThread()
This method gets the thread.

Returns:
The thread

setHost

public void setHost(String host)
This method sets the host.

Parameters:
host - The host

getHost

public String getHost()
This method gets the host.

Returns:
The host

setNode

public void setNode(String node)
This method sets the name of the node. This name may identify the environment within a clustered configuration.

Parameters:
node - The node

getNode

public String getNode()
This method gets the name of the node. This name may identify the environment within a clustered configuration.

Returns:
The node

setPort

public void setPort(String port)
This method sets the port.

Parameters:
port - The port

getPort

public String getPort()
This method gets the port.

Returns:
The port

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException

Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException

Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2012. All Rights Reserved.