org.apache.jackrabbit.rmi.server.jmx
Class JCRServer

java.lang.Object
  extended by org.apache.jackrabbit.rmi.server.jmx.JCRServer
All Implemented Interfaces:
JCRServerMBean

public class JCRServer
extends Object
implements JCRServerMBean

MBean that registers a JCR RMI server through JNDI.


Constructor Summary
JCRServer()
           
 
Method Summary
 void createWorkspace(String username, String password, String name)
          Creates a workspace in the managed repository.
 String getLocalAddress()
           
 String getLocalEnvironment()
           
 String getRemoteAddress()
           
 String getRemoteEnvironment()
           
 void setLocalAddress(String localAddress)
           
 void setLocalEnvironment(String localEnvironment)
           
 void setRemoteAddress(String remoteAddress)
           
 void setRemoteEnvironment(String remoteEnvironment)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCRServer

public JCRServer()
Method Detail

start

public void start()
           throws Exception
Specified by:
start in interface JCRServerMBean
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface JCRServerMBean
Throws:
Exception

createWorkspace

public void createWorkspace(String username,
                            String password,
                            String name)
                     throws RepositoryException
Description copied from interface: JCRServerMBean
Creates a workspace in the managed repository.

Specified by:
createWorkspace in interface JCRServerMBean
Parameters:
username - administrator username
password - administrator password
name - name of the workspace to create
Throws:
RepositoryException - if the workspace could not be created

getLocalAddress

public String getLocalAddress()
Specified by:
getLocalAddress in interface JCRServerMBean

setLocalAddress

public void setLocalAddress(String localAddress)
Specified by:
setLocalAddress in interface JCRServerMBean

getRemoteAddress

public String getRemoteAddress()
Specified by:
getRemoteAddress in interface JCRServerMBean

setRemoteAddress

public void setRemoteAddress(String remoteAddress)
Specified by:
setRemoteAddress in interface JCRServerMBean

getLocalEnvironment

public String getLocalEnvironment()
Specified by:
getLocalEnvironment in interface JCRServerMBean

setLocalEnvironment

public void setLocalEnvironment(String localEnvironment)
Specified by:
setLocalEnvironment in interface JCRServerMBean

getRemoteEnvironment

public String getRemoteEnvironment()
Specified by:
getRemoteEnvironment in interface JCRServerMBean

setRemoteEnvironment

public void setRemoteEnvironment(String remoteEnvironment)
Specified by:
setRemoteEnvironment in interface JCRServerMBean


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.