com.bea.b2b.management.hub.runtime
Interface HubMBean


public interface HubMBean

The HubMBean interface represents a c-hub.

Author:
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.

Method Summary
 CollaboratorMBean[] getActiveCollaborators()
          Gets CollaboratorMBeans for all of the collaborators on this c-hub.
 GlobalConversationMBean[] getActiveConversations()
          Gets GlobalConversationMBeans for all of the active conversations on this c-hub.
 CSpaceMBean[] getActiveCSpaces()
          Gets CSpaceMBeans for all of the active c-spaces on this c-hub.
 java.util.Date getActiveSince()
          Gets the start time of this c-hub.
 CSpaceMBean[] getCSpaces()
          Gets CSpaceMBeans for all of the c-spaces on this c-hub.
 int getNumConversationsDefined()
          Gets the number of conversations defined on this c-hub.
 int getNumMessagesReceived()
          Gets the number of messages received on this c-hub.
 int getNumMessagesSent()
          Gets the number of messages sent on this c-hub.
 java.util.Date getTimeLastMessageReceived()
          Gets the time of the last message received on this c-hub.
 java.util.Date getTimeLastMessageSent()
          Gets the time when the last message was sent on this c-hub.
 boolean getTracking()
          Checks the status of dynamic message tracking.
 void shutDown(java.lang.Integer mode)
          Shuts down the current c-hub.
 void startMessageTracking()
          Starts dynamic message tracking.
 void startupCSpace(java.lang.String cspaceName)
          Starts up a c-space that has been shut down.
 void stopMessageTracking()
          Stops dynamic message tracking.
 

Method Detail

getActiveSince

public java.util.Date getActiveSince()
Gets the start time of this c-hub.

Returns:
Date - Time when this c-hub was started.

getActiveCSpaces

public CSpaceMBean[] getActiveCSpaces()
Gets CSpaceMBeans for all of the active c-spaces on this c-hub.

Returns:
CSpaceMBean[] - Array of CSpaceMBeans for active c-spaces.

getActiveConversations

public GlobalConversationMBean[] getActiveConversations()
Gets GlobalConversationMBeans for all of the active conversations on this c-hub.

Returns:
GlobalConversationMBean[] - Array of GlobalConversationMBeans for active conversations.

getActiveCollaborators

public CollaboratorMBean[] getActiveCollaborators()
Gets CollaboratorMBeans for all of the collaborators on this c-hub.

Returns:
CollaboratorMBean[] - Array of CollaboratorMBeans for collaborators.

getCSpaces

public CSpaceMBean[] getCSpaces()
Gets CSpaceMBeans for all of the c-spaces on this c-hub.

Returns:
CSpaceMBean[] - Array of CSpaceMBeans for c-spaces.

getNumConversationsDefined

public int getNumConversationsDefined()
Gets the number of conversations defined on this c-hub.

Returns:
int - Number of conversations.

getNumMessagesReceived

public int getNumMessagesReceived()
Gets the number of messages received on this c-hub.

Returns:
int - Number of messages received.

getTimeLastMessageReceived

public java.util.Date getTimeLastMessageReceived()
Gets the time of the last message received on this c-hub.

Returns:
Date - Time when the last message was received.

getNumMessagesSent

public int getNumMessagesSent()
Gets the number of messages sent on this c-hub.

Returns:
int - Number of messages sent.

getTimeLastMessageSent

public java.util.Date getTimeLastMessageSent()
Gets the time when the last message was sent on this c-hub.

Returns:
Date - Time when the last message was sent.

shutDown

public void shutDown(java.lang.Integer mode)
              throws ManagementException
Shuts down the current c-hub.

Parameters:
mode - Mode for the shutdown. One of the following values:

ShutdownMode.KILL - Terminates all active conversations. Forces trading partners to leave c-spaces. Rejects all new messages. Messages in the trading partner's queues are discarded.

ShutdownMode.NOW (reserved for future use)

ShutdownMode.NORMAL (reserved for future use)

ShutdownMode.QUIESCE (reserved for future use)

Throws:
ManagementException - If an error occurred during shutdown.

startMessageTracking

public void startMessageTracking()
Starts dynamic message tracking.

stopMessageTracking

public void stopMessageTracking()
Stops dynamic message tracking.

getTracking

public boolean getTracking()
Checks the status of dynamic message tracking.

startupCSpace

public void startupCSpace(java.lang.String cspaceName)
                   throws ManagementException
Starts up a c-space that has been shut down.

Parameters:
cspaceName - The name of the CSpace to start.
Throws:
ManagementException - If an error occurred during shutdown.