com.metamatrix.admin.objects
Class MMService

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

public class MMService
extends MMAdminObject
implements Service

A Service

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.admin.objects.MMAdminObject
deployed, enabled, identifier, identifierParts, name, registered
 
Fields inherited from interface com.metamatrix.admin.api.Service
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 org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
 
Constructor Summary
MMService(java.lang.String[] identifierParts)
          Constructor.
 
Method Summary
 java.lang.String getComponentTypeName()
          Get the component type identifier for this service ComponentType.
 java.lang.String getDescription()
          Returns the description
 java.lang.String getHostName()
           
 java.lang.String getProcessName()
           
 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 setComponentTypeName(java.lang.String componentTypeName)
           
 void setDescription(java.lang.String description)
          Set the description
 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, getParentName, getProperties, getPropertiesAsString, getPropertyValue, getProps, isEnabled, isRegistered, setCreated, setCreatedBy, 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 org.teiid.adminapi.AdminObject
getIdentifier, getName, getProperties, getPropertyValue
 

Constructor Detail

MMService

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

Parameters:
identifierParts -
Since:
6.1
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 Service
Returns:
description

setDescription

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

Parameters:
description -

getState

public int getState()
Description copied from interface: Service
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 Service
Returns:
the current state of this connector binding.

getStateAsString

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

Specified by:
getStateAsString in interface Service
Returns:
Returns the currentState as String.
Since:
6.1

setState

public void setState(int state)
Set the state

Parameters:
state -
Since:
6.1

getStateChangedTime

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

Specified by:
getStateChangedTime in interface Service
Returns:
Returns time of last state change.
Since:
6.1

setStateChangedTime

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

Parameters:
stateChangedTime -
Since:
6.1

getServiceID

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

setServiceID

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

getProcessName

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

getHostName

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

setComponentTypeName

public void setComponentTypeName(java.lang.String componentTypeName)
Parameters:
connectorTypeName - the identifier for a connector type
Since:
6.1

getComponentTypeName

public java.lang.String getComponentTypeName()
Description copied from interface: Service
Get the component type identifier for this service ComponentType.

Specified by:
getComponentTypeName in interface Service
Returns:
the Component Type identifier which can be used to find the ComponentType.
Since:
6.1
See Also:
Service.getComponentTypeName()


Copyright © 2009. All Rights Reserved.