/** * Set the instead of trigger definition. Only one of either the triggerDefinition or enabled should be specified. * @param vdbName * @param vdbVersion * @param schema * @param viewName * @param triggerEvent * @param triggerDefinition * @param enabled */ @Replicated(remoteOnly=true) void setInsteadOfTriggerDefinition(String vdbName, String vdbVersion, String schema, String viewName, Table.TriggerEvent triggerEvent, String triggerDefinition, Boolean enabled);
@Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Replicated annotation = method.getAnnotation(Replicated.class); Object result = null; try { if (replicatableEventDistributor == null || (annotation != null && annotation.remoteOnly())) { result = method.invoke(ed, args); } if (replicatableEventDistributor != null) { result = method.invoke(replicatableEventDistributor, args); } } catch (InvocationTargetException e) { throw e.getTargetException(); } return result; } });
/** * Set the procedure definition * @param vdbName * @param vdbVersion * @param schema * @param procName * @param definition */ @Replicated(remoteOnly=true) void setProcedureDefinition(String vdbName, String vdbVersion, String schema, String procName, String definition);
/** * Set the column stats * @param vdbName * @param vdbVersion * @param schemaName * @param tableName * @param columnName * @param stats */ @Replicated(remoteOnly=true) void setColumnStats(String vdbName, String vdbVersion, String schemaName, String tableName, String columnName, ColumnStats stats);
/** * Set the given property value * @param vdbName * @param vdbVersion * @param uuid * @param name * @param value */ @Replicated(remoteOnly=true) void setProperty(String vdbName, String vdbVersion, String uuid, String name, String value);
/** * Set the view definition * @param vdbName * @param vdbVersion * @param schema * @param viewName * @param definition */ @Replicated(remoteOnly=true) void setViewDefinition(String vdbName, String vdbVersion, String schema, String viewName, String definition);
/** * Notify that the table data has changed. * @param vdbName * @param vdbVersion * @param schema * @param tableNames */ @Replicated(remoteOnly=true) void dataModification(String vdbName, String vdbVersion, String schema, String... tableNames);
/** * Set the table stats * @param vdbName * @param vdbVersion * @param schemaName * @param tableName * @param stats */ @Replicated(remoteOnly=true) void setTableStats(String vdbName, String vdbVersion, String schemaName, String tableName, TableStats stats);
@Replicated void failedLoad(String matTableName);
@Replicated(asynch=false, timeout=5000) boolean needsLoading(String matTableName, Serializable loadingAddress, boolean firstPass, boolean refresh, boolean invalidate);
@Replicated(asynch=false, timeout=5000) boolean needsLoading(String matTableName, Serializable loadingAddress, boolean firstPass, boolean refresh, boolean invalidate);
/** * Update the given materialized view row. * The tuple is expected to be in table order, which has the primary key first. * Deletes need to only send the key, not the entire row contents. * * @param vdbName * @param vdbVersion * @param schema * @param viewName * @param tuple * @param delete */ @Replicated(remoteOnly=true) void updateMatViewRow(String vdbName, String vdbVersion, String schema, String viewName, List<?> tuple, boolean delete);
@Replicated(replicateState=ReplicationMode.PULL) TupleBuffer getTupleBuffer(String id);
@Replicated(asynch=false, timeout=5000) boolean needsLoading(String matTableName, Serializable loadingAddress, boolean firstPass, boolean refresh, boolean invalidate);
@Replicated void failedLoad(String matTableName);
@Replicated(replicateState=ReplicationMode.PULL) TupleBuffer getTupleBuffer(String id);
@Replicated void failedLoad(String matTableName);
@Replicated(replicateState=ReplicationMode.PUSH) void loaded(String matTableName, TempTable table);
@Replicated(replicateState=ReplicationMode.PUSH) void loaded(String matTableName, TempTable table);
@Replicated(replicateState=ReplicationMode.PUSH) void loaded(String matTableName, TempTable table);