public interface IRemoteJSpaceAdmin extends Remote
Usage:
IJSpace space = (IJSpace) SpaceFinder.find(spaceUrl);
IRemoteJSpaceAdmin spaceAdmin = (IRemoteJSpaceAdmin)space.getAdmin();
The code examples on each method assumes the above usage.
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
dropClass(String className,
SpaceContext sc)
Deprecated.
Since 16.2 - use GigaSpaceTypeManager#unregisterTypeDescriptor method instead
|
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. |
SpaceInstanceRemoteClassLoaderInfo |
getSpaceInstanceRemoteClassLoaderInfo()
Return the info about the space classloader
|
int |
getState()
Returns the particular condition of this space.
|
void |
ping()
Ping to space to see if alive.
|
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 |
updateClusterInfo()
trigger read of chunks map from zk and update clusterInfo
|
@Deprecated static final int REPLICATION_STATUS_ACTIVE
@Deprecated static final int REPLICATION_STATUS_DISCONNECTED
@Deprecated static final int REPLICATION_STATUS_DISABLED
String getName() throws RemoteException
Usage:
spaceAdmin.getName()
RemoteException
- Failed to get nameSpaceRuntimeInfo getRuntimeInfo() throws RemoteException
SpaceRuntimeInfo
.
Usage:
SpaceRuntimeInfo runtime = spaceAdmin.getRuntimeInfo();
List classNames = runtime.m_ClassNames;
List numOfEntries = runtime.m_NumOFEntries;
RemoteException
- if a communication error occursSpaceRuntimeInfo 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 occursSpaceConfig 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 occursvoid 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 occursSpaceCopyStatus 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 occursClusterPolicy getClusterPolicy() throws RemoteException
RemoteException
- if a communication error occurs@Deprecated 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 occursint getState() throws RemoteException
RemoteException
- if a communication error occursISpaceState
SpaceInstanceRemoteClassLoaderInfo getSpaceInstanceRemoteClassLoaderInfo() throws RemoteException
RemoteException
- if a communication error occursvoid updateClusterInfo() throws RemoteException
RemoteException
- if a communication error occursCopyright © GigaSpaces.