public class ProducerInfo extends Object implements Externalizable
| Constructor and Description |
|---|
ProducerInfo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getDuration() |
String |
getFragmentId() |
String |
getHostAddress() |
String |
getHostName() |
String |
getId() |
Set<Property> |
getProperties() |
Set<Property> |
getProperties(String name)
This method returns the set of properties having the
supplied property name.
|
String |
getSourceOperation() |
String |
getSourceUri() |
long |
getTimestamp() |
int |
hashCode() |
boolean |
hasProperty(String name)
This method determines whether there is atleast one
property with the supplied name.
|
boolean |
isMultipleConsumers() |
void |
readExternal(ObjectInput ois) |
void |
setDuration(long duration) |
void |
setFragmentId(String fragmentId) |
void |
setHostAddress(String hostAddress) |
void |
setHostName(String hostName) |
void |
setId(String id) |
void |
setMultipleConsumers(boolean multipleConsumers) |
void |
setProperties(Set<Property> properties) |
void |
setSourceOperation(String sourceOperation) |
void |
setSourceUri(String sourceUri) |
void |
setTimestamp(long timestamp) |
String |
toString() |
void |
writeExternal(ObjectOutput oos) |
public String getId()
public void setId(String id)
id - the id to setpublic String getSourceUri()
public void setSourceUri(String sourceUri)
sourceUri - the sourceUri to setpublic String getSourceOperation()
public void setSourceOperation(String sourceOperation)
sourceOperation - the sourceOperation to setpublic long getTimestamp()
public void setTimestamp(long timestamp)
timestamp - the timestamp to setpublic long getDuration()
public void setDuration(long duration)
duration - the duration to setpublic String getFragmentId()
public void setFragmentId(String fragmentId)
fragmentId - the fragmentId to setpublic String getHostName()
public void setHostName(String hostName)
hostName - the hostName to setpublic String getHostAddress()
public void setHostAddress(String hostAddress)
hostAddress - the hostAddress to setpublic boolean isMultipleConsumers()
public void setMultipleConsumers(boolean multipleConsumers)
multipleConsumers - the multipleConsumers to setpublic void setProperties(Set<Property> properties)
properties - the properties to setpublic boolean hasProperty(String name)
name - The property namepublic Set<Property> getProperties(String name)
name - The property namepublic void readExternal(ObjectInput ois) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput oos) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.