com.metamatrix.admin.objects
Class MMConnectorBinding

java.lang.Object
  extended by com.metamatrix.admin.objects.MMAdminObject
      extended by com.metamatrix.admin.objects.MMConnectorBinding
All Implemented Interfaces:
AdminObject, ConnectorBinding, java.io.Serializable

public class MMConnectorBinding
extends MMAdminObject
implements ConnectorBinding

A Connector Binding is a Connector Type with properties that have been bond to a Connector. May are may not be assigned to a VDB

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.admin.objects.MMAdminObject
deployed, enabled, identifier, identifierParts, name, OBJECT_TYPE_CACHE, OBJECT_TYPE_CONNECTOR_BINDING, OBJECT_TYPE_CONNECTOR_TYPE, OBJECT_TYPE_DQP, OBJECT_TYPE_ENTITLEMENT, OBJECT_TYPE_EXTENSION_MODULE, OBJECT_TYPE_GROUP, OBJECT_TYPE_HOST, OBJECT_TYPE_LOG_CONFIGURATION, OBJECT_TYPE_MODEL, OBJECT_TYPE_PROCESS_OBJECT, OBJECT_TYPE_PROPERTY_DEFINITION, OBJECT_TYPE_QUEUE_WORKER_POOL, OBJECT_TYPE_REQUEST, OBJECT_TYPE_RESOURCE, OBJECT_TYPE_ROLE, OBJECT_TYPE_SERVICE, OBJECT_TYPE_SESSION, OBJECT_TYPE_SYSTEM_OBJECT, OBJECT_TYPE_TRANSACTION, OBJECT_TYPE_USER, OBJECT_TYPE_VDB, OBJECTS_PACKAGE, registered, serialVersionUID
 
Fields inherited from interface com.metamatrix.admin.api.objects.ConnectorBinding
PASSWORD, STATE_CLOSED, STATE_DATA_SOURCE_UNAVAILABLE, STATE_FAILED, STATE_INIT_FAILED, STATE_NOT_DEPLOYED, STATE_NOT_INITIALIZED, STATE_NOT_REGISTERED, STATE_OPEN
 
Fields inherited from interface com.metamatrix.admin.api.objects.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
 
Constructor Summary
MMConnectorBinding(java.lang.String[] identifierParts)
          Constructor.
 
Method Summary
 java.lang.String getConnectorTypeName()
          Get the identifier for this connector binding's ConnectorType.
 java.lang.String getDescription()
          Returns the description
 java.lang.String getHostName()
           
 java.lang.String getProcessName()
           
 java.lang.String getRoutingUUID()
          Returns the String globally unique routing UUID for this Connector Binding
 long getServiceID()
           
 int getState()
          Retrieve the current connector state.
 java.lang.String getStateAsString()
          Retrieve the current connector state as a printable String.
 java.util.Date getStateChangedTime()
          Returns time of last state change.
 void setConnectorTypeName(java.lang.String connectorTypeName)
           
 void setDescription(java.lang.String description)
          Set the description
 void setRoutingUUID(java.lang.String routingUUID)
           
 void setServiceID(long serviceID)
           
 void setState(int state)
          Set the state
 void setStateChangedTime(java.util.Date stateChangedTime)
          Set the state changed time
 java.lang.String toString()
          Get MetaMatrix Object as a String
 
Methods inherited from class com.metamatrix.admin.objects.MMAdminObject
buildIdentifier, buildIdentifierArray, buildIdentifierList, getCreated, getCreatedBy, getCreatedDate, getIdentifier, getIdentifierArray, getLastChangedBy, getLastChangedDate, getLastUpdated, getLastUpdatedBy, getName, getNameFromIdentifier, getObjectType, getParentName, getProperties, getPropertiesAsString, getPropertyValue, getProps, isDeployed, isEnabled, isRegistered, setCreated, setCreatedBy, setDeployed, setEnabled, setIdentifier, setLastUpdated, setLastUpdatedBy, setProperties, setRegistered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.metamatrix.admin.api.objects.AdminObject
getIdentifier, getName, getProperties, getPropertyValue
 

Constructor Detail

MMConnectorBinding

public MMConnectorBinding(java.lang.String[] identifierParts)
Constructor.

Parameters:
identifierParts -
Since:
4.3
Method Detail

toString

public java.lang.String toString()
Description copied from class: MMAdminObject
Get MetaMatrix Object as a String

Specified by:
toString in class MMAdminObject
See Also:
Object.toString()

getDescription

public java.lang.String getDescription()
Returns the description

Specified by:
getDescription in interface ConnectorBinding
Returns:
description

setDescription

public void setDescription(java.lang.String description)
Set the description

Parameters:
description -

getRoutingUUID

public java.lang.String getRoutingUUID()
Returns the String globally unique routing UUID for this Connector Binding

Specified by:
getRoutingUUID in interface ConnectorBinding
Returns:
Returns the routingUUID.
Since:
4.3

setRoutingUUID

public void setRoutingUUID(java.lang.String routingUUID)
Parameters:
routingUUID - The routingUUID to set.
Since:
4.3

getState

public int getState()
Description copied from interface: ConnectorBinding
Retrieve the current connector state. This will be one of the constants: DQP.STATE_OPEN. DQP.STATE_NOT_INITIALIZED. DQP.STATE_CLOSED. DQP.STATE_FAILED. DQP.STATE_INIT_FAILED. DQP.STATE_NOT_REGISTERED. DQP.STATE_DATA_SOURCE_UNAVAILABLE. DQP.STATE_NOT_DEPLOYED.

Specified by:
getState in interface ConnectorBinding
Returns:
the current state of this connector binding.

getStateAsString

public java.lang.String getStateAsString()
Description copied from interface: ConnectorBinding
Retrieve the current connector state as a printable String.

Specified by:
getStateAsString in interface ConnectorBinding
Returns:
Returns the currentState as String.
Since:
4.3

setState

public void setState(int state)
Set the state

Parameters:
state -
Since:
4.3

getStateChangedTime

public java.util.Date getStateChangedTime()
Description copied from interface: ConnectorBinding
Returns time of last state change.

Specified by:
getStateChangedTime in interface ConnectorBinding
Returns:
Returns time of last state change.
Since:
4.3

setStateChangedTime

public void setStateChangedTime(java.util.Date stateChangedTime)
Set the state changed time

Parameters:
stateChangedTime -
Since:
4.3

getServiceID

public long getServiceID()
Returns:
Returns the serviceID.
Since:
4.3

setServiceID

public void setServiceID(long serviceID)
Parameters:
serviceID - The serviceID to set.
Since:
4.3

getProcessName

public java.lang.String getProcessName()
Returns:
Returns the processID.
Since:
4.3

getHostName

public java.lang.String getHostName()
Returns:
Returns the hostName.
Since:
4.3

setConnectorTypeName

public void setConnectorTypeName(java.lang.String connectorTypeName)
Parameters:
connectorTypeName - the identifier for a connector type
Since:
4.3

getConnectorTypeName

public java.lang.String getConnectorTypeName()
Description copied from interface: ConnectorBinding
Get the identifier for this connector binding's ConnectorType.

Specified by:
getConnectorTypeName in interface ConnectorBinding
Returns:
the Connector Type identifier which can be used to find the ConnectorType.
Since:
4.3
See Also:
ConnectorBinding.getConnectorTypeName()


Copyright © 2009. All Rights Reserved.