org.openanzo.server.repository
Interface ModelServiceApiMBean

All Superinterfaces:
IServerServiceMBean
All Known Implementing Classes:
ModelServiceApi

public interface ModelServiceApiMBean
extends IServerServiceMBean

MBean interface for the ModelServiceApi

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Method Summary
 long getNumberOfStoredNamedGraphs()
          Get the number of stored graphs in the repository
 long getNumberOfStoredStatements()
          Get the number of stored statements in the repository
 boolean getResetDatabaseEnabled()
          Determine if reset is enabled on the server
 java.lang.String getServerURIString()
          Get the server's URI
 java.lang.String[] getStoredNamedGraphs()
          Get the set of stored named graphs
 boolean getUseHardReset()
          Determine if the server uses a hard reset when reseting the server
 void resetDatabase()
          Reset the server
 void setResetDatabaseEnabled(boolean resetEnabled)
          Set whether reset is enabled on the server
 void setUseHardReset(boolean hardReset)
          Set whether the server uses a hard reset when reseting the server
 
Methods inherited from interface org.openanzo.server.repository.IServerServiceMBean
getIsStarted, start, stop
 

Method Detail

getNumberOfStoredNamedGraphs

long getNumberOfStoredNamedGraphs()
Get the number of stored graphs in the repository

Returns:
the number of stored graphs in the repository

getNumberOfStoredStatements

long getNumberOfStoredStatements()
Get the number of stored statements in the repository

Returns:
the number of stored statements in the repository

getServerURIString

java.lang.String getServerURIString()
Get the server's URI

Returns:
the server's URI

resetDatabase

void resetDatabase()
Reset the server


getResetDatabaseEnabled

boolean getResetDatabaseEnabled()
Determine if reset is enabled on the server

Returns:
true if reset is enabled on the server

getUseHardReset

boolean getUseHardReset()
Determine if the server uses a hard reset when reseting the server

Returns:
true if the server uses a hard reset when reseting the server

setUseHardReset

void setUseHardReset(boolean hardReset)
Set whether the server uses a hard reset when reseting the server

Parameters:
hardReset - sets whether the server uses a hard reset when reseting the server

setResetDatabaseEnabled

void setResetDatabaseEnabled(boolean resetEnabled)
Set whether reset is enabled on the server

Parameters:
resetEnabled - sets whether reset is enabled on the server

getStoredNamedGraphs

java.lang.String[] getStoredNamedGraphs()
Get the set of stored named graphs

Returns:
the set of stored named graphs


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.