public class JCRServer extends Object implements JCRServerMBean
Constructor and Description |
---|
JCRServer() |
Modifier and Type | Method and Description |
---|---|
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() |
public void start() throws Exception
start
in interface JCRServerMBean
Exception
public void stop() throws Exception
stop
in interface JCRServerMBean
Exception
public void createWorkspace(String username, String password, String name) throws RepositoryException
JCRServerMBean
createWorkspace
in interface JCRServerMBean
username
- administrator usernamepassword
- administrator passwordname
- name of the workspace to createRepositoryException
- if the workspace could not be createdpublic String getLocalAddress()
getLocalAddress
in interface JCRServerMBean
public void setLocalAddress(String localAddress)
setLocalAddress
in interface JCRServerMBean
public String getRemoteAddress()
getRemoteAddress
in interface JCRServerMBean
public void setRemoteAddress(String remoteAddress)
setRemoteAddress
in interface JCRServerMBean
public String getLocalEnvironment()
getLocalEnvironment
in interface JCRServerMBean
public void setLocalEnvironment(String localEnvironment)
setLocalEnvironment
in interface JCRServerMBean
public String getRemoteEnvironment()
getRemoteEnvironment
in interface JCRServerMBean
public void setRemoteEnvironment(String remoteEnvironment)
setRemoteEnvironment
in interface JCRServerMBean
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.