org.jboss.messaging.core.server.impl
Class MessagingServerImpl

java.lang.Object
  extended by org.jboss.messaging.core.server.impl.MessagingServerImpl
All Implemented Interfaces:
MessagingComponent, MessagingServer

public class MessagingServerImpl
extends java.lang.Object
implements MessagingServer

A Messaging Server

Version:
$Revision: 3543 $

$Id: ServerPeer.java 3543 2008-01-07 22:31:58Z clebert.suconic@jboss.com $

Author:
Ovidiu Feodorov, Tim Fox, Juha Lindfors, Aslak Knutsen,
Constructor Summary
MessagingServerImpl()
          typically called by the MC framework or embedded if the user want to create and start their own RemotingService
MessagingServerImpl(Configuration configuration)
          called when the usewr wants the MessagingServer to handle the creation of the RemotingTransport
 
Method Summary
 CreateConnectionResponse createConnection(java.lang.String username, java.lang.String password, long remotingClientSessionID, java.lang.String clientAddress, int incrementVersion, PacketReturner sender)
           
 Configuration getConfiguration()
           
 ConnectionManager getConnectionManager()
           
 DeploymentManager getDeploymentManager()
           
 PostOffice getPostOffice()
           
 HierarchicalRepository<QueueSettings> getQueueSettingsRepository()
           
 RemotingService getRemotingService()
           
 JBMSecurityManager getSecurityManager()
           
 HierarchicalRepository<java.util.HashSet<Role>> getSecurityRepository()
           
 SecurityStore getSecurityStore()
           
 StorageManager getStorageManager()
           
 Version getVersion()
           
 boolean isStarted()
           
 void setCleanUpNotifier(CleanUpNotifier cleanUpNotifier)
           
 void setConfiguration(Configuration configuration)
           
 void setPostOffice(PostOffice postOffice)
           
 void setRemotingService(RemotingService remotingService)
           
 void setSecurityManager(JBMSecurityManager securityManager)
           
 void setStorageManager(StorageManager storageManager)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagingServerImpl

public MessagingServerImpl()
typically called by the MC framework or embedded if the user want to create and start their own RemotingService


MessagingServerImpl

public MessagingServerImpl(Configuration configuration)
called when the usewr wants the MessagingServer to handle the creation of the RemotingTransport

Parameters:
configuration - the configuration
Method Detail

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface MessagingComponent
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface MessagingComponent
Throws:
java.lang.Exception

getVersion

public Version getVersion()
Specified by:
getVersion in interface MessagingServer
Returns:
The server version

getConfiguration

public Configuration getConfiguration()
Specified by:
getConfiguration in interface MessagingServer
Returns:
The configuration for this server

isStarted

public boolean isStarted()
Specified by:
isStarted in interface MessagingServer

setConfiguration

public void setConfiguration(Configuration configuration)
Specified by:
setConfiguration in interface MessagingServer

setRemotingService

public void setRemotingService(RemotingService remotingService)
Specified by:
setRemotingService in interface MessagingServer

getRemotingService

public RemotingService getRemotingService()
Specified by:
getRemotingService in interface MessagingServer

getDeploymentManager

public DeploymentManager getDeploymentManager()
Specified by:
getDeploymentManager in interface MessagingServer

getConnectionManager

public ConnectionManager getConnectionManager()
Specified by:
getConnectionManager in interface MessagingServer

getStorageManager

public StorageManager getStorageManager()
Specified by:
getStorageManager in interface MessagingServer

setStorageManager

public void setStorageManager(StorageManager storageManager)
Specified by:
setStorageManager in interface MessagingServer

setCleanUpNotifier

public void setCleanUpNotifier(CleanUpNotifier cleanUpNotifier)

getPostOffice

public PostOffice getPostOffice()
Specified by:
getPostOffice in interface MessagingServer

setPostOffice

public void setPostOffice(PostOffice postOffice)
Specified by:
setPostOffice in interface MessagingServer

getSecurityRepository

public HierarchicalRepository<java.util.HashSet<Role>> getSecurityRepository()
Specified by:
getSecurityRepository in interface MessagingServer

getQueueSettingsRepository

public HierarchicalRepository<QueueSettings> getQueueSettingsRepository()
Specified by:
getQueueSettingsRepository in interface MessagingServer

getSecurityStore

public SecurityStore getSecurityStore()
Specified by:
getSecurityStore in interface MessagingServer

getSecurityManager

public JBMSecurityManager getSecurityManager()
Specified by:
getSecurityManager in interface MessagingServer

setSecurityManager

public void setSecurityManager(JBMSecurityManager securityManager)
Specified by:
setSecurityManager in interface MessagingServer

createConnection

public CreateConnectionResponse createConnection(java.lang.String username,
                                                 java.lang.String password,
                                                 long remotingClientSessionID,
                                                 java.lang.String clientAddress,
                                                 int incrementVersion,
                                                 PacketReturner sender)
                                          throws java.lang.Exception
Specified by:
createConnection in interface MessagingServer
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.