public interface IInternalRemoteJSpaceAdmin extends IRemoteJSpaceAdmin, NIOInfoProvider, OSInfoProvider, JVMInfoProvider, GridZoneProvider
REPLICATION_STATUS_ACTIVE, REPLICATION_STATUS_DISABLED, REPLICATION_STATUS_DISCONNECTED| Modifier and Type | Method and Description | 
|---|---|
SpaceMode | 
addSpaceModeListener(ISpaceModeListener listener)
Adds a listener to be called back with  
ISpaceModeListener mode changes. | 
SuspendType | 
addSpaceSuspendTypeListener(SuspendTypeChangedInternalListener listener)
Adds a listener to be called back with  
SuspendTypeChangedInternalListener suspend type changes. | 
int | 
countIncomingConnections()  | 
int | 
countTransactions(int type,
                 int status)  | 
void | 
disableStub()
disable remote. 
 | 
void | 
forceMoveToPrimary()
Forcefully make this space to be primary 
 | 
ITypeDesc | 
getClassDescriptor(String className)
Get the basic class information from the space directory. 
 | 
byte[] | 
getClusterConfigFile()
Returns a byte representation of the cluster configuration file. 
 | 
List<ITransportConnection> | 
getConnectionsInfo()
Deprecated. 
 
Since 10.1 - Use countIncomingConnections instead 
 | 
Map<String,LocalCacheDetails> | 
getLocalCacheDetails()  | 
Map<String,LocalViewDetails> | 
getLocalViewDetails()  | 
List<UnderTxnLockedObject> | 
getLockedObjects(Transaction txn)
getLockedObjects is called by the GUI. 
 | 
String | 
getReplicationDump()  | 
RuntimeHolder | 
getRuntimeHolder()  | 
SpaceMode | 
getSpaceMode()
Get the current  
SpaceMode which represents the current state of this participant in
 the election process. | 
List<TemplateInfo> | 
getTemplatesInfo(String className)
Returns a list of pending templates. 
 | 
TransactionInfo[] | 
getTransactionsInfo(int type,
                   int status)
Returns all the transactions with the specific parameters. 
 | 
boolean | 
isStartedWithinGSC()  | 
void | 
removeSpaceModeListener(ISpaceModeListener listener)
Removes this listener so that it no longer receives call backs of space mode changes. 
 | 
void | 
removeSpaceSuspendTypeListener(SuspendTypeChangedInternalListener listener)
Removes this listener so that it no longer receives call backs of space suspend type changes. 
 | 
void | 
restart()
Deprecated. 
 
To restart a space, restart the corresponding processing unit instance 
 | 
void | 
setClusterConfigFile(byte[] config)
set the cluster configuration according to the given byte representation of the configuration
 file. 
 | 
SpaceCopyStatus | 
spaceCopy(IRemoteSpace remoteProxy,
         String remoteSpaceUrl,
         String remoteSpaceName,
         ITemplatePacket template,
         boolean includeNotifyTemplates,
         int chunkSize,
         SpaceContext spaceContext,
         SpaceContext remoteSpaceContext)
Given ISpaceInternal of a remote space, Copy all entries/notify templates from the space. 
 | 
SpaceCopyStatus | 
spaceCopy(String remoteUrl,
         ITemplatePacket template,
         boolean includeNotifyTemplates,
         int chunkSize)
Given Url of a remote space, Copy all entries/notify templates from the space. 
 | 
SpaceCopyStatus | 
spaceCopy(String remoteUrl,
         ITemplatePacket template,
         boolean includeNotifyTemplates,
         int chunkSize,
         SpaceContext sc)
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 
 | 
dropClass, getClassTypeInfo, getClusterPolicy, getConfig, getName, getReplicationStatus, getRuntimeInfo, getRuntimeInfo, getSpaceInstanceRemoteClassLoaderInfo, getState, ping, spaceCopy, spaceCopydisableLRMIMonitoring, enableLRMIMonitoring, fetchLRMIMonitoringDetails, getNIODetails, getNIOStatisticsgetCurrentTimestamp, getOSDetails, getOSStatisticsgetJVMDetails, getJVMStatistics, runGcgetZonesvoid disableStub()
          throws RemoteException
RemoteException - if a communication error occursbyte[] getClusterConfigFile()
                     throws RemoteException
RemoteException - if a communication error occursvoid setClusterConfigFile(byte[] config)
                   throws RemoteException
config - byte representation of the configuration fileRemoteException - if a communication error occursRuntimeHolder getRuntimeHolder() throws RemoteException
RemoteExceptionboolean isStartedWithinGSC()
                    throws RemoteException
RemoteExceptionSpaceCopyStatus spaceCopy(String remoteUrl, ITemplatePacket 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 - EntryPacket 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 occursSpaceCopyStatus spaceCopy(String remoteUrl, ITemplatePacket template, boolean includeNotifyTemplates, int chunkSize, SpaceContext sc) throws RemoteException
 Usage:
   SpaceCopyStatus copyStatus = spaceAdmin.spaceCopy( sourceSpaceURL, template, false );
   System.out.println("Copy-Status: " + copyStatus );
 remoteUrl - url of remote space to copy fromtemplate - EntryPacket template or null.includeNotifyTemplates - - if true ALL notify templates will be copied toochunkSize - Chunk size (batch) for this copy operation.sc - SpaceContext for security check in the server side.RemoteException - if a communication error occursSpaceCopyStatus spaceCopy(IRemoteSpace remoteProxy, String remoteSpaceUrl, String remoteSpaceName, ITemplatePacket template, boolean includeNotifyTemplates, int chunkSize, SpaceContext spaceContext, SpaceContext remoteSpaceContext) throws RemoteException
 Usage:
   SpaceCopyStatus copyStatus = spaceAdmin.spaceCopy( remoteProxy, remoteURL, remoteName,
 template, false 1000, sc);
   System.out.println("Copy-Status: " + copyStatus );
 remoteProxy - ISpaceInternal, a proxy to the remote space to copy fromremoteSpaceUrl - the remote space url.remoteSpaceName - the remote space name.template - A template for identified entries that should be copied.includeNotifyTemplates - - if true ALL notify templates will be copied toochunkSize - Chunk size (batch) for this copy operation.spaceContext - SpaceContext for security check in the server side.remoteSpaceContext - remoteSpaceContext for security check in the server side.RemoteException - if a communication error occursTransactionInfo[] getTransactionsInfo(int type, int status) throws RemoteException
type - TransactionInfo.Types.LOCAL, TransactionInfo.Types.JINI or
               TransactionInfo.Types.XA. Use TransactionInfo.Types.All for all types;status - can be one of the status defined in TransactionConstantsRemoteException - if a communication error occursint countTransactions(int type,
                      int status)
               throws RemoteException
RemoteExceptionList<TemplateInfo> getTemplatesInfo(String className) throws RemoteException
className - name of the class to searchRemoteException@Deprecated List<ITransportConnection> getConnectionsInfo() throws RemoteException
RemoteExceptionint countIncomingConnections()
                      throws RemoteException
RemoteExceptionList<UnderTxnLockedObject> getLockedObjects(Transaction txn) throws RemoteException
txn - - the Transaction that locks the Objects.RemoteExceptionSpaceMode getSpaceMode() throws RemoteException
SpaceMode which represents the current state of this participant in
 the election process.  In case of a non-clustered participant, where no election process
 takes place, the return value is always SpaceMode.PRIMARY. 
SpaceMode of the space.RemoteException - if an exception occurred executing this remote method.SpaceMode addSpaceModeListener(ISpaceModeListener listener) throws RemoteException
ISpaceModeListener mode changes. The change (
 SpaceMode ) represents the result of an election process of this
 participant space. The returned value represents the current state of this participant in the
 election process.  In case of a non-clustered participant, the return value is always
 SpaceMode.PRIMARY. Hence, no election process will take place and the listener will
 not be called.
listener - a listener to be called back on space mode changes.SpaceMode of the space.RemoteException - if an exception occurred executing this remote method.ISpaceModeListener, 
SpaceModevoid removeSpaceModeListener(ISpaceModeListener listener) throws RemoteException
listener - a listener to be removed.RemoteException - if an exception occurred executing this remote method.addSpaceModeListener(ISpaceModeListener)ITypeDesc getClassDescriptor(String className) throws RemoteException
 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 occursvoid forceMoveToPrimary()
                 throws RemoteException
RemoteExceptionString getReplicationDump() throws RemoteException
RemoteExceptionMap<String,LocalCacheDetails> getLocalCacheDetails() throws RemoteException
RemoteExceptionMap<String,LocalViewDetails> getLocalViewDetails() throws RemoteException
RemoteException@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@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.SuspendType addSpaceSuspendTypeListener(SuspendTypeChangedInternalListener listener)
SuspendTypeChangedInternalListener suspend type changes.listener - - SuspendTypeChangedInternalListener that will receive notification when a space suspend type changes (SuspendType)void removeSpaceSuspendTypeListener(SuspendTypeChangedInternalListener listener)
listener - - SuspendTypeChangedInternalListener that will stop receiving notification when a space suspend type changes (SuspendType)Copyright © GigaSpaces.