| 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRemoteJSpaceAdmin
This interface contains all the administrative methods that GigaSpaces provides to control the JavaSpaces service.
 Usage:
        IJSpace space = (IJSpace) SpaceFinder.find(spaceUrl);
        IRemoteJSpaceAdmin spaceAdmin = (IRemoteJSpaceAdmin)space.getAdmin();
 The code examples on each method assumes the above usage.
 
| Field Summary | |
|---|---|
static int | 
REPLICATION_STATUS_ACTIVE
Deprecated. Since 8.0. This constant is relevant only in the old depracated replication module and will be removed in a future version.  | 
static int | 
REPLICATION_STATUS_DISABLED
Deprecated. Since 8.0. This constant is relevant only in the old depracated replication module and will be removed in a future version.  | 
static int | 
REPLICATION_STATUS_DISCONNECTED
Deprecated. Since 8.0. This constant is relevant only in the old depracated replication module and will be removed in a future version.  | 
| Method Summary | |
|---|---|
 void | 
dropClass(String className,
          SpaceContext sc)
Drop all Class entries and all its templates from the space.  | 
 BasicTypeInfo | 
getClassTypeInfo(String className)
Deprecated. Since 8.0 - Use GigaSpaceTypeManager.getTypeDescriptor instead. | 
 ClusterPolicy | 
getClusterPolicy()
Return the present ClusterPolicy objects.  | 
 SpaceConfig | 
getConfig()
Returns SpaceConfig of this space. | 
 String | 
getName()
Returns the Space Name.  | 
 Object[] | 
getReplicationStatus()
Deprecated. Since 8.0 - This method is relevant only in the old deprecated replication module and will be removed in a future version.  | 
 SpaceRuntimeInfo | 
getRuntimeInfo()
Returns SpaceRuntimeInfo. | 
 SpaceRuntimeInfo | 
getRuntimeInfo(String className)
Returns SpaceRuntimeInfo for specific class name and its subclasses. | 
 int | 
getState()
Returns the particular condition of this space.  | 
 void | 
ping()
Ping to space to see if alive.  | 
 void | 
restart()
Deprecated. To restart a space, restart the corresponding processing unit instance  | 
 void | 
setConfig(com.j_spaces.core.JSpaceAttributes config)
Deprecated. Since 8.0 - This method is reserved for internal usage only.  | 
 SpaceCopyStatus | 
spaceCopy(IJSpace remoteSpace,
          Object template,
          boolean includeNotifyTemplates,
          int chunkSize)
 | 
 SpaceCopyStatus | 
spaceCopy(String remoteUrl,
          Object template,
          boolean includeNotifyTemplates,
          int chunkSize)
Given Url of a remote space, Copy all entries/notify templates from the space.  | 
 void | 
start()
Deprecated. To stop and start a space, restart the corresponding processing unit instance  | 
 void | 
stop()
Deprecated. To stop and start a space, restart the corresponding processing unit instance  | 
| Field Detail | 
|---|
@Deprecated static final int REPLICATION_STATUS_ACTIVE
@Deprecated static final int REPLICATION_STATUS_DISCONNECTED
@Deprecated static final int REPLICATION_STATUS_DISABLED
| Method Detail | 
|---|
@Deprecated
void restart()
             throws RemoteException
 Usage:
   try
   {
        spaceAdmin.restart();
   }
   catch( java.rmi.RemoteException ex )
   {
        System.err.println("Failed to restart space: " + ((IJSpace)space).getName());
        System.err.println("Exception: " + ex);
   }
 
RemoteException - Failed to restart space.
String getName()
               throws RemoteException
 Usage:
        spaceAdmin.getName()
 
RemoteException - Failed to get name
SpaceRuntimeInfo getRuntimeInfo()
                                throws RemoteException
SpaceRuntimeInfo.
 
 Usage:
   SpaceRuntimeInfo runtime = spaceAdmin.getRuntimeInfo();
   List classNames = runtime.m_ClassNames;
   List numOfEntries = runtime.m_NumOFEntries;
 
RemoteException - if a communication error occurs
SpaceRuntimeInfo getRuntimeInfo(String className)
                                throws RemoteException
SpaceRuntimeInfo for specific class name and its subclasses.
 
 Usage:
         String className = ExampleObject.class.getName();
   SpaceRuntimeInfo runtime = spaceAdmin.getRuntimeInfo(className);
   List classNames = runtime.m_ClassNames;
   List numOfEntries = runtime.m_NumOFEntries;
 
RemoteException - if a communication error occurs
SpaceConfig getConfig()
                      throws RemoteException
SpaceConfig of this space.
 
 Usage:
        SpaceConfig config = spaceAdmin.getConfig();
        if (config != null)
                boolean isClustered = config.m_isClustered;
 
RemoteException - if a communication error occurs
@Deprecated
void setConfig(com.j_spaces.core.JSpaceAttributes config)
               throws RemoteException
RemoteException
void ping()
          throws RemoteException
Usage:
 try
 {
     spaceAdmin.ping();
 }
 catch (RemoteException re)
 {
     System.err.println("Space not accessible");
 }
RemoteException - if a communication error occursgetState()
SpaceCopyStatus spaceCopy(String remoteUrl,
                          Object template,
                          boolean includeNotifyTemplates,
                          int chunkSize)
                          throws RemoteException
 Usage:
   SpaceCopyStatus copyStatus = spaceAdmin.spaceCopy( sourceSpaceURL, template, false );
   System.out.println("Copy-Status: " + copyStatus );
 
remoteUrl - url of remote space to copy fromtemplate - Entry template or null.includeNotifyTemplates - - if true ALL notify templates will be copied toochunkSize - Chunk size (batch) for this copy operation.
RemoteException - if a communication error occurs
SpaceCopyStatus spaceCopy(IJSpace remoteSpace,
                          Object template,
                          boolean includeNotifyTemplates,
                          int chunkSize)
                          throws RemoteException
RemoteException
@Deprecated
Object[] getReplicationStatus()
                              throws RemoteException
 Usage:
   Object[] replStatus = spaceAdmin.getReplicationStatus();
   String[] peers = (String[])replStatus[0];
   int[] status = (int[])replStatus[1];
 
RemoteException - if a communication error occurs
@Deprecated
BasicTypeInfo getClassTypeInfo(String className)
                               throws RemoteException
GigaSpaceTypeManager.getTypeDescriptor instead.
 Usage:
   com.j_spaces.core.client.BasicTypeInfo classInfo
        = spaceAdmin.getClassTypeInfo( className );
 
   String[] fieldNames = classInfo.m_FieldsNames;
   String[] fieldTypes = classInfo.m_FieldsTypes;
 
className - - The name of the class to retrieve the information from.
RemoteException - if a communication error occurs
ClusterPolicy getClusterPolicy()
                               throws RemoteException
RemoteException - if a communication error occurs
void dropClass(String className,
               SpaceContext sc)
               throws RemoteException,
                      DropClassException
 Usage:
        spaceAdmin.dropClass( className );
 
className - name of class to delete.
DropClassException - Failed to drop desired class.
RemoteException - if a communication error occurs
@Deprecated
void start()
           throws RemoteException,
                  SpaceAlreadyStartedException
 Usage:
  spaceAdmin.start();
 
RemoteException - - Failed to start space.
SpaceAlreadyStartedException - - The space is already started
@Deprecated
void stop()
          throws RemoteException,
                 SpaceAlreadyStoppedException
 Usage:
  spaceAdmin.stop();
 
RemoteException - - Failed to stop space.
SpaceAlreadyStoppedException - - The space is already stopped
int getState()
             throws RemoteException
RemoteException - if a communication error occursISpaceState
  | 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||