com.ibm.commerce.messaging.util
Class Connector

java.lang.Object
  |
  +--com.ibm.commerce.messaging.util.Connector
Direct Known Subclasses:
ParallelConnector

public class Connector
extends java.lang.Object

This class represents a CCF Inbound or Outbound Connector. It contains all of the generic information required across all connectors.


Constructor Summary
Connector()
          Initialize the Connector object.
 
Method Summary
 boolean enabled()
          Indicates whether the connector is enabled or not.
 void enabled(boolean value)
          Enables or disables the connector.
 Specification getConnectionSpec()
          Gets the connectionSpec property (runtime.Specification) value.
 Specification getInteractionSpec()
          Gets the interactionSpec property (runtime.Specification) value.
 int getRetries()
          Returns the number to retries for the Connector.
 long getTimeToReconnect()
          Returns the time to reconnect to the transport.
 void setConnectionSpec(Specification connectionSpec)
          Sets the connectionSpec property (runtime.Specification) value.
 void setInteractionSpec(Specification interactionSpec)
          Sets the interactionSpec property (runtime.Specification) value.
 void setRetries(int newRetries)
          Sets the retries.
 void setTimeToReconnect(long newTimeToReconnect)
          Sets the time to reconnect to the Transport.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connector

public Connector()
Initialize the Connector object.
Method Detail

enabled

public boolean enabled()
Indicates whether the connector is enabled or not.
Returns:
boolean

enabled

public void enabled(boolean value)
Enables or disables the connector.
Parameters:
boolean -  

getConnectionSpec

public Specification getConnectionSpec()
Gets the connectionSpec property (runtime.Specification) value.
Returns:
The connectionSpec property value.
See Also:
setConnectionSpec(com.ibm.commerce.messaging.util.Specification)

getInteractionSpec

public Specification getInteractionSpec()
Gets the interactionSpec property (runtime.Specification) value.
Returns:
The interactionSpec property value.
See Also:
setInteractionSpec(com.ibm.commerce.messaging.util.Specification)

getRetries

public int getRetries()
Returns the number to retries for the Connector.
Returns:
int

getTimeToReconnect

public long getTimeToReconnect()
Returns the time to reconnect to the transport.
Returns:
long

setConnectionSpec

public void setConnectionSpec(Specification connectionSpec)
Sets the connectionSpec property (runtime.Specification) value.
Parameters:
connectionSpec - The new value for the property.
See Also:
getConnectionSpec()

setInteractionSpec

public void setInteractionSpec(Specification interactionSpec)
Sets the interactionSpec property (runtime.Specification) value.
Parameters:
interactionSpec - The new value for the property.
See Also:
getInteractionSpec()

setRetries

public void setRetries(int newRetries)
Sets the retries.
Parameters:
newRetries - int

setTimeToReconnect

public void setTimeToReconnect(long newTimeToReconnect)
Sets the time to reconnect to the Transport.
Parameters:
newRetries - long