|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.transport.MonitoredLink
cgl.narada.transport.sslHttpBase.LinkImpl
public class LinkImpl
The Link implementation which serves as a base for SSL communications.
| Field Summary | |
|---|---|
protected String |
m_linkID
|
| Constructor Summary | |
|---|---|
protected |
LinkImpl(Transport transport,
String linkType,
LinkManager parent)
------------------------------------------------------------------- |
| Method Summary | |
|---|---|
void |
closeLink()
------------------------------------------------------------------- |
Object |
getBrokerID()
------------------------------------------------------------------- |
Properties |
getCreationProperties()
------------------------------------------------------------------- Gets the original properties that were passed into LinkFactory.createLink() for this link. |
long |
getKeepAliveEndTime()
------------------------------------------------------------------- |
String |
getLinkId()
------------------------------------------------------------------- |
String |
getLinkType()
------------------------------------------------------------------- |
String |
getName()
-------------------------------------------------------------------- |
Object |
getNaradaBrokeringId()
------------------------------------------------------------------- |
String |
getSecurityInformation()
------------------------------------------------------------------- |
long |
getStatusInterval()
-------------------------------------------------------------------- |
Transport |
getTransport()
------------------------------------------------------------------- |
void |
handlePerformanceMessage(LinkMessage message)
------------------------------------------------------------------- |
boolean |
isSecure()
------------------------------------------------------------------- |
void |
performanceMessagesAvailable(Vector data)
-------------------------------------------------------------------- |
void |
sendData(byte[] data)
------------------------------------------------------------------- |
void |
sendData(byte[] data,
String dataType)
------------------------------------------------------------------- Currently the same as sendData(). |
void |
setCreationProperties(Properties cp)
------------------------------------------------------------------- Sets the original properties that were passed into LinkFactory.createLink() for this link. |
void |
setKeepAliveTime(long keepAliveTime)
------------------------------------------------------------------- Set a keep alive value for this link. |
void |
setLinkId(String stringId)
------------------------------------------------------------------- Update the link id for this broker and the destination broker. |
void |
setLinkMigrationConstraint(String constraint,
String linkType)
------------------------------------------------------------------- |
void |
setLinkStatusInterval(long interval)
------------------------------------------------------------------- |
void |
setNaradaBrokeringId(Object brokeringId)
------------------------------------------------------------------- |
protected void |
updateLinkID(String id)
------------------------------------------------------------------- This does not cause the link id change to be propagated to remote brokers. |
| Methods inherited from class cgl.narada.transport.MonitoredLink |
|---|
disablePerformanceFactor, enablePerformanceFactor, getAllPerformanceData, getLatencies, getPerformanceData, getPerformanceFactorsMeasured, performanceGatheringEnabled, processPerformancePackets, sendPerformancePackets, setPerformanceGathering |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cgl.narada.transport.Link |
|---|
getAllPerformanceData, getPerformanceData, getPerformanceFactorsMeasured, performanceGatheringEnabled, setPerformanceGathering |
| Field Detail |
|---|
protected String m_linkID
| Constructor Detail |
|---|
protected LinkImpl(Transport transport,
String linkType,
LinkManager parent)
| Method Detail |
|---|
public void sendData(byte[] data)
throws TransportException
sendData in interface LinkTransportException
public void sendData(byte[] data,
String dataType)
throws TransportException
sendData in interface LinkTransportExceptionpublic void setLinkId(String stringId)
setLinkId in interface Linkpublic Object getNaradaBrokeringId()
getNaradaBrokeringId in interface Linkpublic void setNaradaBrokeringId(Object brokeringId)
setNaradaBrokeringId in interface Linkpublic String getLinkType()
getLinkType in interface Linkpublic void setKeepAliveTime(long keepAliveTime)
setKeepAliveTime in interface Linkpublic long getKeepAliveEndTime()
public String getLinkId()
getLinkId in interface Linkpublic void closeLink()
closeLink in interface Linkpublic boolean isSecure()
isSecure in interface Linkpublic String getSecurityInformation()
getSecurityInformation in interface Link
public void setLinkMigrationConstraint(String constraint,
String linkType)
setLinkMigrationConstraint in interface Linkpublic void setLinkStatusInterval(long interval)
setLinkStatusInterval in interface Linkpublic Object getBrokerID()
public Transport getTransport()
public void setCreationProperties(Properties cp)
public Properties getCreationProperties()
public void handlePerformanceMessage(LinkMessage message)
public void performanceMessagesAvailable(Vector data)
performanceMessagesAvailable in interface PerformanceMeasurementListenerdata - A vector of ByteArrayOutputStreams containing performance
measurement messages that should be sent. These messages
should be sent immediately and in sequence to avoid errors
in measurement. Each message should be sent out in 10 ms
intervals to avoid buffering to some extent.public long getStatusInterval()
getStatusInterval in interface PerformanceMeasurementListenerpublic String getName()
getName in interface PerformanceMeasurementListenerprotected void updateLinkID(String id)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||